/* ===== BMW Brand Design System ===== */
/* BMW Blue: #0066B1 / Dark: #004F7A / Light: #E8F1F8 */
/* Silver: #C8D0D8 / Dark text: #1A1A1A / BG: #F0F3F7 */

/* ===== 基础重置 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: #F0F3F7;
  color: #1A1A1A;
  -webkit-font-smoothing: antialiased;
}
input, button, select, textarea { font-family: inherit; font-size: inherit; }
button { cursor: pointer; border: none; background: none; }

/* ===== 登录页 ===== */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #004F7A 0%, #0066B1 50%, #0080CC 100%);
  padding: 20px;
}
.login-container { width: 100%; max-width: 400px; }
.login-logo { text-align: center; margin-bottom: 30px; }
.logo-circle {
  width: 76px; height: 76px; border-radius: 50%;
  background: #fff; border: 3px solid #fff;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px; font-size: 22px; font-weight: 700; color: #0066B1;
  letter-spacing: -1px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.login-logo h1 { color: #fff; font-size: 22px; margin-bottom: 4px; font-weight: 600; letter-spacing: 2px; }
.login-logo p { color: rgba(255,255,255,0.85); font-size: 13px; letter-spacing: 1px; }
.login-card {
  background: #fff; border-radius: 4px; padding: 24px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
}
.login-notice {
  text-align: center; padding: 16px 0; color: #8C96A0; font-size: 13px;
  border-bottom: 1px solid #EDF0F3; margin-bottom: 16px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.login-error { color: #c62828; }
.login-error .error-text { font-size: 14px; line-height: 1.5; }
.btn-retry {
  margin-top: 8px; padding: 8px 24px; border-radius: 4px;
  background: #0066B1; color: #fff; border: none; font-size: 13px;
  cursor: pointer; letter-spacing: 1px;
}
.btn-retry:hover { background: #004F7A; }
.loading-spinner {
  width: 28px; height: 28px; border-radius: 50%;
  border: 3px solid #E0E6EB; border-top-color: #0066B1;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.demo-title { font-size: 12px; color: #8C96A0; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 1px; }
.user-list { display: flex; flex-direction: column; gap: 8px; }
.user-chip {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; border-radius: 4px;
  border: 1px solid #E0E6EB; transition: all 0.2s; background: #FAFBFC;
}
.user-chip:hover { border-color: #0066B1; background: #F0F6FC; }
.user-avatar, .user-avatar-sm {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, #0066B1, #004F7A);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 600; flex-shrink: 0;
}
.user-avatar-sm { width: 32px; height: 32px; font-size: 14px; }
.user-info { flex: 1; display: flex; flex-direction: column; }
.user-name { font-size: 15px; font-weight: 600; color: #1A1A1A; }
.user-company { font-size: 12px; color: #8C96A0; }
.user-role {
  font-size: 11px; padding: 2px 10px; border-radius: 2px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
}
.role-admin { background: #F0F6FC; color: #0066B1; }
.role-acceptor { background: #FFF7E6; color: #B8860B; }
.role-employee { background: #F0F7F0; color: #2E7D32; }

/* ===== 主应用框架 ===== */
.main-app { min-height: 100vh; display: flex; flex-direction: column; max-width: 600px; margin: 0 auto; background: #F0F3F7; }
.app-header {
  background: #fff; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 2px solid #0066B1; position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 8px rgba(0,102,177,0.08);
}
.header-left { display: flex; align-items: center; gap: 8px; }
.back-btn { font-size: 22px; color: #0066B1; line-height: 1; font-weight: 300; }
.header-title { font-size: 17px; font-weight: 600; color: #1A1A1A; }
.header-right { position: relative; }
.user-badge {
  display: flex; align-items: center; gap: 6px; cursor: pointer;
  padding: 4px 8px; border-radius: 4px; transition: background 0.2s;
}
.user-badge:hover { background: #F0F3F7; }
.user-badge span { font-size: 13px; color: #4A5A6A; font-weight: 500; }
.dropdown-menu {
  position: absolute; top: 100%; right: 0; margin-top: 4px;
  background: #fff; border-radius: 4px; box-shadow: 0 4px 24px rgba(0,0,0,0.12);
  overflow: hidden; min-width: 120px; z-index: 200;
  border: 1px solid #E0E6EB;
}
.dropdown-item { padding: 12px 16px; font-size: 14px; border-bottom: 1px solid #EDF0F3; color: #4A5A6A; }
.dropdown-item:last-child { border-bottom: none; }
.dropdown-item:hover { background: #F0F6FC; color: #0066B1; }
.dropdown-item.logout { color: #C62828; }

/* ===== 内容区 ===== */
.app-content { flex: 1; overflow-y: auto; padding-bottom: 80px; }

/* ===== 首页 ===== */
.welcome-banner {
  background: linear-gradient(135deg, #004F7A 0%, #0066B1 100%);
  color: #fff; padding: 28px 20px; border-radius: 0 0 4px 4px;
  margin-bottom: 16px; position: relative; overflow: hidden;
}
.welcome-banner::after {
  content: ''; position: absolute; right: -20px; top: -20px;
  width: 120px; height: 120px; border-radius: 50%;
  background: rgba(255,255,255,0.06);
}
.welcome-banner::before {
  content: ''; position: absolute; right: 30px; bottom: -30px;
  width: 80px; height: 80px; border-radius: 50%;
  background: rgba(255,255,255,0.04);
}
.welcome-banner h2 { font-size: 24px; margin-bottom: 4px; font-weight: 600; position: relative; z-index: 1; }
.welcome-banner p { font-size: 13px; opacity: 0.9; position: relative; z-index: 1; }
.quick-actions { display: flex; gap: 12px; padding: 0 16px; margin-bottom: 20px; }
.action-card {
  flex: 1; background: #fff; border-radius: 4px; padding: 20px 12px;
  text-align: center; position: relative; transition: transform 0.15s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06); border: 1px solid #EDF0F3;
}
.action-card:active { transform: scale(0.97); }
.action-card.primary { background: linear-gradient(135deg, #0066B1, #004F7A); color: #fff; border: none; }
.action-card.accent { background: linear-gradient(135deg, #0080CC, #0066B1); color: #fff; border: none; }
.action-icon { font-size: 28px; display: block; margin-bottom: 8px; }
.action-card span:not(.action-badge) { font-size: 13px; font-weight: 600; }
.action-badge {
  position: absolute; top: 8px; right: 8px;
  background: #C62828; color: #fff; font-size: 11px;
  min-width: 18px; height: 18px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 5px; font-weight: 600;
}
.action-badge.alert { animation: pulse 1.5s infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.15); } }

.role-section { padding: 0 16px; margin-bottom: 20px; }
.section-title {
  font-size: 15px; font-weight: 600; margin-bottom: 12px; color: #1A1A1A;
  display: flex; align-items: center; justify-content: space-between;
  border-left: 3px solid #0066B1; padding-left: 10px;
}
.admin-grid { display: flex; gap: 10px; }
.admin-card {
  flex: 1; background: #fff; border-radius: 4px; padding: 18px 8px;
  text-align: center; box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: transform 0.15s; border: 1px solid #EDF0F3;
}
.admin-card:active { transform: scale(0.97); }
.admin-icon { font-size: 24px; display: block; margin-bottom: 6px; }
.admin-card span { font-size: 12px; color: #4A5A6A; }

.home-stats { padding: 0 16px; }
.stats-row { display: flex; background: #fff; border-radius: 4px; overflow: hidden; border: 1px solid #EDF0F3; }
.stat-item {
  flex: 1; text-align: center; padding: 16px 8px;
  border-right: 1px solid #EDF0F3;
}
.stat-item:last-child { border-right: none; }
.stat-num { display: block; font-size: 24px; font-weight: 700; color: #0066B1; }
.stat-label { display: block; font-size: 11px; color: #8C96A0; margin-top: 4px; text-transform: uppercase; letter-spacing: 0.5px; }

/* ===== 表单 ===== */
.form-view { padding: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-size: 14px; font-weight: 600; color: #1A1A1A; margin-bottom: 6px;
}
.required { color: #C62828; }
.optional-tag { font-size: 11px; color: #8C96A0; font-weight: normal; }
.auto-tag { font-size: 11px; color: #0066B1; font-weight: normal; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px; border: 1px solid #D0D6DB; border-radius: 4px;
  font-size: 14px; transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: #0066B1; box-shadow: 0 0 0 3px rgba(0,102,177,0.12);
}
.input-auto { background: #F5F7FA; color: #6B7785; }
.input-error { border-color: #C62828 !important; }
.error-text { font-size: 12px; color: #C62828; margin-top: 4px; display: block; }
.location-input { display: flex; gap: 8px; }
.location-input input { flex: 1; }
.locate-btn {
  padding: 0 16px; background: #0066B1; color: #fff;
  border-radius: 4px; font-size: 13px; white-space: nowrap;
  display: flex; align-items: center; gap: 2px; font-weight: 500;
}
.locate-btn:active { opacity: 0.85; }

/* 照片上传 */
.photo-upload { display: flex; flex-wrap: wrap; gap: 10px; }
.photo-preview {
  position: relative; width: 90px; height: 90px; border-radius: 4px; overflow: hidden;
}
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.remove-photo {
  position: absolute; top: 2px; right: 2px;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(0,0,0,0.6); color: #fff; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.photo-add {
  width: 90px; height: 90px; border: 2px dashed #C8D0D8; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: border-color 0.2s; background: #FAFBFC;
}
.photo-add:hover { border-color: #0066B1; }
.photo-add span { font-size: 32px; color: #C8D0D8; }

.submit-btn {
  width: 100%; padding: 14px; background: linear-gradient(135deg, #0066B1, #004F7A);
  color: #fff; border-radius: 4px; font-size: 16px; font-weight: 600;
  margin-top: 8px; transition: opacity 0.2s; letter-spacing: 1px;
}
.submit-btn:disabled { opacity: 0.5; }
.submit-btn:active { opacity: 0.85; }

/* ===== 列表 ===== */
.list-view { padding: 12px 16px; }
.filter-bar {
  display: flex; gap: 8px; margin-bottom: 12px; overflow-x: auto;
  -webkit-overflow-scrolling: touch; padding-bottom: 4px;
}
.filter-btn {
  padding: 6px 16px; border-radius: 20px; background: #fff; font-size: 13px;
  color: #6B7785; white-space: nowrap; border: 1px solid #E0E6EB; transition: all 0.2s; font-weight: 500;
}
.filter-btn.active { background: #0066B1; color: #fff; border-color: #0066B1; }
.filter-select {
  padding: 6px 12px; border-radius: 20px; background: #fff; font-size: 13px;
  color: #6B7785; border: 1px solid #E0E6EB; flex-shrink: 0;
}

.list-notice {
  background: #F0F6FC; border: 1px solid #B8D4E8; border-radius: 4px;
  padding: 10px 14px; font-size: 13px; color: #0066B1; margin-bottom: 12px; font-weight: 500;
}

.report-list { display: flex; flex-direction: column; gap: 10px; }
.report-card {
  background: #fff; border-radius: 4px; padding: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05); transition: transform 0.15s;
  border: 1px solid #EDF0F3;
}
.report-card:active { transform: scale(0.98); }
.report-card.highlight {
  border-left: 4px solid #0066B1;
}
.report-card.mini { padding: 12px; }
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.plate-badge {
  background: #1A1A1A; padding: 4px 14px; border-radius: 2px;
  font-size: 15px; font-weight: 700; letter-spacing: 1px; color: #fff;
}
.status-tag { font-size: 12px; padding: 3px 10px; border-radius: 2px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.status-pending { background: #FFF3E0; color: #E65100; }
.status-assigned { background: #FFEBEE; color: #C62828; }
.status-accepted { background: #F0F6FC; color: #0066B1; }
.status-completed { background: #F0F7F0; color: #2E7D32; }

.card-body { display: flex; flex-direction: column; gap: 6px; }
.card-row { display: flex; font-size: 13px; }
.card-row .label { color: #8C96A0; width: 60px; flex-shrink: 0; }
.card-row .value { color: #1A1A1A; flex: 1; word-break: break-all; }
.result-entered_repair { color: #2E7D32; font-weight: 600; }
.result-not_entered { color: #C62828; font-weight: 600; }
.result-considering { color: #B8860B; font-weight: 600; }

.card-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 10px; padding-top: 10px; border-top: 1px solid #EDF0F3;
}
.card-footer .time { font-size: 12px; color: #B0B8C0; }
.report-no { font-size: 11px; color: #C8D0D8; font-family: 'Courier New', monospace; }
.accept-btn {
  padding: 6px 16px; background: linear-gradient(135deg, #0066B1, #004F7A);
  color: #fff; border-radius: 4px; font-size: 13px; font-weight: 600;
  transition: transform 0.15s;
}
.accept-btn:active { transform: scale(0.95); }
.result-btn {
  padding: 6px 16px; background: #0066B1; color: #fff;
  border-radius: 4px; font-size: 13px; font-weight: 600;
}

.empty-state { text-align: center; padding: 60px 20px; }
.empty-icon { font-size: 48px; margin-bottom: 12px; }
.empty-state p { color: #8C96A0; font-size: 14px; margin-bottom: 16px; }
.empty-mini { text-align: center; padding: 20px; color: #C8D0D8; font-size: 13px; }

.link-btn { color: #0066B1; font-size: 14px; font-weight: 600; }
.link-btn-sm { font-size: 12px; color: #0066B1; font-weight: 500; padding: 2px 8px; border-radius: 2px; background: #F0F6FC; }

/* ===== 配置页 ===== */
.config-view { padding: 16px; }
.add-btn {
  width: 100%; padding: 12px; border: 1.5px dashed #0066B1; color: #0066B1;
  border-radius: 4px; font-size: 14px; font-weight: 600; margin-bottom: 16px;
  transition: background 0.2s; background: #fff;
}
.add-btn:active { background: #F0F6FC; }
.store-list { display: flex; flex-direction: column; gap: 10px; }
.store-card { background: #fff; border-radius: 4px; padding: 16px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); border: 1px solid #EDF0F3; }
.store-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.store-name { font-size: 15px; font-weight: 600; color: #1A1A1A; }
.store-region { font-size: 12px; color: #8C96A0; margin-left: 6px; }
.store-actions { display: flex; gap: 6px; }
.icon-btn {
  width: 32px; height: 32px; border-radius: 4px; background: #F5F7FA;
  display: flex; align-items: center; justify-content: center; font-size: 14px;
  transition: background 0.2s;
}
.icon-btn:hover { background: #E8EDF2; }
.icon-btn.danger:hover { background: #FFEBEE; }
.store-body { }
.store-address { font-size: 13px; color: #6B7785; margin-bottom: 8px; }
.store-stats { display: flex; gap: 12px; font-size: 12px; color: #8C96A0; }

/* ===== 搜索栏 ===== */
.search-bar { display: flex; gap: 8px; margin-bottom: 12px; }
.search-bar input {
  flex: 1; padding: 10px 14px; border: 1px solid #D0D6DB; border-radius: 4px; font-size: 14px; background: #fff;
}
.search-bar input:focus { outline: none; border-color: #0066B1; box-shadow: 0 0 0 3px rgba(0,102,177,0.12); }
.search-bar button {
  padding: 0 16px; background: #0066B1; color: #fff; border-radius: 4px; font-size: 14px; font-weight: 500;
}

/* ===== 数据看板 ===== */
.dashboard-view { padding: 16px; }
.dash-overview { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.dash-card {
  flex: 1; min-width: 80px; background: #fff; border-radius: 4px; padding: 16px 12px;
  text-align: center; box-shadow: 0 1px 4px rgba(0,0,0,0.06); border: 1px solid #EDF0F3;
}
.dash-card.big { flex: 2; background: linear-gradient(135deg, #0066B1, #004F7A); color: #fff; border: none; }
.dash-num { display: block; font-size: 26px; font-weight: 700; }
.dash-label { display: block; font-size: 11px; color: #8C96A0; margin-top: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.dash-card.big .dash-num { color: #fff; }
.dash-card.big .dash-label { color: rgba(255,255,255,0.85); }

.dash-section { background: #fff; border-radius: 4px; padding: 16px; margin-bottom: 16px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); border: 1px solid #EDF0F3; }

/* 状态分布条 */
.dist-bar { display: flex; height: 36px; border-radius: 4px; overflow: hidden; margin-bottom: 12px; }
.dist-item {
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 12px; font-weight: 600; min-width: 0;
  transition: width 0.5s;
}
.dist-item.pending { background: #FFA726; }
.dist-item.assigned { background: #EF5350; }
.dist-item.accepted { background: #0066B1; }
.dist-item.completed { background: #43A047; }
.dist-legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: #6B7785; }
.dist-legend span { display: flex; align-items: center; gap: 4px; }
.dot { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.dot.pending { background: #FFA726; }
.dot.assigned { background: #EF5350; }
.dot.accepted { background: #0066B1; }
.dot.completed { background: #43A047; }

/* 趋势图 */
.trend-chart { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.trend-bars { display: flex; align-items: flex-end; gap: 8px; min-width: 400px; height: 160px; padding-bottom: 20px; }
.trend-col { display: flex; flex-direction: column; align-items: center; flex: 1; min-width: 50px; }
.trend-bar-wrapper { flex: 1; display: flex; align-items: flex-end; width: 100%; }
.trend-bar {
  width: 100%; max-width: 32px; margin: 0 auto;
  background: linear-gradient(180deg, #0080CC, #004F7A);
  border-radius: 2px 2px 0 0; display: flex; align-items: flex-start; justify-content: center;
  padding-top: 4px; min-height: 20px; transition: height 0.5s;
}
.trend-num { font-size: 11px; color: #fff; font-weight: 600; }
.trend-period { font-size: 10px; color: #8C96A0; margin-top: 4px; }
.trend-mom { font-size: 10px; margin-top: 2px; }
.trend-mom.positive { color: #C62828; }
.trend-mom.negative { color: #2E7D32; }

/* 表格 */
.table-view { overflow-x: auto; }
.table-row {
  display: flex; padding: 10px 8px; border-bottom: 1px solid #EDF0F3; font-size: 13px;
  align-items: center; gap: 4px;
}
.table-row.header { font-weight: 600; color: #8C96A0; font-size: 12px; border-bottom: 2px solid #0066B1; text-transform: uppercase; letter-spacing: 0.5px; }
.table-row span { flex: 1; text-align: center; min-width: 42px; }
.table-row .store-cell { text-align: left; flex: 1.5; }
.table-row.clickable { transition: background 0.2s; cursor: pointer; }
.table-row.clickable:hover { background: #F0F6FC; }
.highlight-green { color: #2E7D32; font-weight: 600; }
.highlight-red { color: #C62828; font-weight: 600; }
.highlight-orange { color: #B8860B; font-weight: 600; }

/* ===== 处理结果分类统计 ===== */
.result-breakdown {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #EDF0F3;
}
.sub-title {
  font-size: 13px;
  color: #6B7785;
  margin-bottom: 8px;
  font-weight: 500;
}
.result-stats {
  display: flex;
  gap: 8px;
}
.result-stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 4px;
  border-radius: 4px;
  background: #F5F7FA;
  border: 1px solid #E0E6EB;
}
.result-stat-item.entered {
  background: #F0F7F0;
  border-color: #C8E6C9;
}
.result-stat-item.not-entered {
  background: #FFEBEE;
  border-color: #FFCDD2;
}
.result-stat-item.considering {
  background: #FFF8E1;
  border-color: #FFE0B2;
}
.result-stat-item .result-icon {
  font-size: 20px;
  margin-bottom: 4px;
}
.result-stat-item .result-num {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}
.result-stat-item.entered .result-num { color: #2E7D32; }
.result-stat-item.not-entered .result-num { color: #C62828; }
.result-stat-item.considering .result-num { color: #B8860B; }
.result-stat-item .result-label {
  font-size: 11px;
  color: #6B7785;
  margin-top: 2px;
}

/* ===== 弹窗 ===== */
.modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,31,51,0.5); z-index: 1000;
  display: flex; align-items: flex-end; justify-content: center;
  animation: fadeIn 0.2s;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-content {
  background: #fff; width: 100%; max-width: 600px; max-height: 85vh;
  border-radius: 4px 4px 0 0; overflow: hidden; display: flex; flex-direction: column;
  animation: slideUp 0.3s;
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 2px solid #0066B1; flex-shrink: 0; background: #fff;
}
.modal-header h3 { font-size: 17px; font-weight: 600; color: #1A1A1A; }
.close-btn { font-size: 24px; color: #8C96A0; line-height: 1; }
.modal-body { overflow-y: auto; padding: 20px; }

/* 详情弹窗 */
.detail-modal .modal-body { }
.detail-section { margin-bottom: 20px; }
.detail-section h4 { font-size: 14px; color: #0066B1; margin-bottom: 10px; font-weight: 600; border-left: 3px solid #0066B1; padding-left: 8px; }
.detail-row {
  display: flex; padding: 8px 0; border-bottom: 1px solid #EDF0F3; font-size: 13px;
}
.detail-row .label { width: 80px; color: #8C96A0; flex-shrink: 0; }
.detail-row .value { flex: 1; color: #1A1A1A; word-break: break-all; }
.detail-row .value.plate { font-weight: 700; font-size: 15px; }

.detail-photos { display: flex; flex-wrap: wrap; gap: 8px; }
.detail-photos img { width: 80px; height: 80px; border-radius: 4px; object-fit: cover; }

/* 时间线 */
.timeline { position: relative; padding-left: 20px; }
.timeline-item { position: relative; padding-bottom: 16px; padding-left: 12px; border-left: 2px solid #EDF0F3; }
.timeline-item:last-child { border-left-color: transparent; }
.timeline-dot {
  position: absolute; left: -7px; top: 2px;
  width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff;
}
.timeline-dot.dot-pending { background: #FFA726; }
.timeline-dot.dot-assigned { background: #EF5350; }
.timeline-dot.dot-accepted { background: #0066B1; }
.timeline-dot.dot-completed { background: #43A047; }
.timeline-content { display: flex; flex-direction: column; gap: 2px; }
.timeline-status { font-size: 13px; font-weight: 600; color: #1A1A1A; }
.timeline-operator { font-size: 12px; color: #8C96A0; }
.timeline-note { font-size: 12px; color: #6B7785; }
.timeline-time { font-size: 11px; color: #B0B8C0; }

/* 消息记录 */
.msg-list { display: flex; flex-direction: column; gap: 10px; }
.msg-item {
  background: #F5F7FA; border-radius: 4px; padding: 10px 12px;
  display: flex; flex-direction: column; gap: 4px; border: 1px solid #EDF0F3;
}
.msg-target { font-size: 13px; font-weight: 600; color: #0066B1; }
.msg-time { font-size: 11px; color: #B0B8C0; }
.msg-content { font-size: 12px; color: #4A5A6A; white-space: pre-wrap; font-family: monospace; line-height: 1.5; }

.detail-actions { display: flex; gap: 10px; margin-top: 8px; }
.action-btn { flex: 1; padding: 12px; border-radius: 4px; font-size: 14px; font-weight: 600; }
.action-btn.primary { background: linear-gradient(135deg, #0066B1, #004F7A); color: #fff; }

/* 结果弹窗 */
.result-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.result-option {
  display: flex; align-items: center; gap: 12px; padding: 14px;
  border: 2px solid #EDF0F3; border-radius: 4px; cursor: pointer;
  transition: all 0.2s; background: #FAFBFC;
}
.result-option:hover { border-color: #0066B1; }
.result-option.selected { border-color: #0066B1; background: #F0F6FC; }
.result-option input { display: none; }
.result-icon { font-size: 24px; }
.result-text { font-size: 15px; font-weight: 600; color: #1A1A1A; }

/* 联系人 */
.contact-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.contact-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; background: #F5F7FA; border-radius: 4px; border: 1px solid #EDF0F3;
}
.contact-info { display: flex; flex-direction: column; gap: 2px; }
.contact-name { font-size: 14px; font-weight: 600; color: #1A1A1A; }
.contact-phone { font-size: 12px; color: #6B7785; }
.contact-role { font-size: 11px; color: #8C96A0; }
.contact-wecom { font-size: 11px; color: #B0B8C0; }
.divider { border: none; border-top: 1px solid #EDF0F3; margin: 16px 0; }

/* 穿透查询 */
.drilldown-modal .modal-body { }

/* 图片预览 */
.photo-viewer {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.9); z-index: 2000;
  display: flex; align-items: center; justify-content: center;
}
.photo-viewer img { max-width: 95%; max-height: 95%; border-radius: 4px; }

/* ===== 地图选位弹窗 ===== */
.map-modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6); z-index: 2500;
  display: flex; align-items: center; justify-content: center;
}
.map-modal {
  background: #fff; border-radius: 8px; overflow: hidden;
  width: 92%; max-width: 500px; max-height: 90vh;
  display: flex; flex-direction: column;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.map-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; background: #0066B1; color: #fff;
  font-size: 16px; font-weight: 600;
}
.map-close-btn {
  background: none; border: none; color: #fff;
  font-size: 18px; cursor: pointer; padding: 2px 8px;
}
.map-container {
  width: 100%; height: 320px; flex-shrink: 0;
}
.map-modal-footer {
  padding: 14px 18px; display: flex; flex-direction: column; gap: 10px;
}
.map-address-row { display: flex; gap: 8px; }
.map-address-input {
  flex: 1; padding: 10px 12px; border: 1px solid #d0d5dd;
  border-radius: 4px; font-size: 14px;
}
.map-address-input:focus { border-color: #0066B1; outline: none; }
.map-coords {
  font-size: 12px; color: #8a94a6;
}
.map-confirm-btn {
  padding: 10px; background: #0066B1; color: #fff; border: none;
  border-radius: 4px; font-size: 15px; font-weight: 500;
  cursor: pointer; width: 100%;
}
.map-confirm-btn:active { background: #004F7A; }

/* Toast */
.toast {
  position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%);
  background: rgba(0,31,51,0.9); color: #fff; padding: 10px 24px;
  border-radius: 4px; font-size: 14px; z-index: 3000;
  animation: toastIn 0.3s;
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ===== TabBar ===== */
.tab-bar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 600px;
  display: flex; background: #fff; border-top: 1px solid #EDF0F3;
  z-index: 100; padding: 6px 0;
}
.tab-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: #8C96A0; transition: color 0.2s;
}
.tab-item.active { color: #0066B1; }
.tab-icon { font-size: 22px; }
.tab-label { font-size: 11px; font-weight: 500; }
