/* ===== 集装箱追踪系统 - 深色主题 ===== */
:root {
  --bg-base: #0f1419;
  --bg-surface: #161d26;
  --bg-elevated: #1e2730;
  --bg-hover: #243140;
  --border: #2a3644;
  --border-light: #364456;
  --text-primary: #e8eef5;
  --text-secondary: #9fb2c5;
  --text-muted: #6b7d92;
  --accent: #00d4ff;
  --accent-dim: #0099bb;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --purple: #8b5cf6;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --radius: 12px;
  --radius-sm: 8px;
  --sidebar-w: 240px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  overflow: hidden;
  height: 100vh;
}

/* ===== 布局 ===== */
.app {
  display: flex;
  height: 100vh;
}

/* 侧边栏 */
.sidebar {
  width: var(--sidebar-w);
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.sidebar-header {
  padding: 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-logo {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.sidebar-title h1 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.sidebar-title p {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.nav {
  padding: 12px 10px;
  flex: 1;
  overflow-y: auto;
}

.nav-section {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1px;
  padding: 16px 12px 8px;
  font-weight: 600;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 14px;
  transition: all 0.15s;
  margin-bottom: 2px;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
}

.nav-item:hover { background: var(--bg-hover); color: var(--text-primary); }

.nav-item.active {
  background: linear-gradient(90deg, rgba(0,212,255,0.12), transparent);
  color: var(--accent);
  border-left: none;
}

.nav-item .icon { font-size: 17px; width: 22px; text-align: center; }
.nav-item .badge {
  margin-left: auto;
  background: var(--bg-elevated);
  color: var(--text-secondary);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
}
.nav-item.active .badge { background: var(--accent-dim); color: #fff; }

.sidebar-footer {
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-footer .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 8px var(--success); }

/* 主内容区 */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.topbar {
  height: 64px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  flex-shrink: 0;
}

.topbar-title { font-size: 18px; font-weight: 600; }
.topbar-sub { font-size: 12px; color: var(--text-muted); margin-left: 4px; }

.search-box {
  margin-left: auto;
  position: relative;
  width: 320px;
}
.search-box input {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 9px 14px 9px 38px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}
.search-box input:focus { border-color: var(--accent); }
.search-box .search-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); font-size: 14px;
}

.topbar-time {
  font-size: 12px; color: var(--text-secondary);
  background: var(--bg-elevated);
  padding: 8px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.content {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

/* ===== 视图切换 ===== */
.view { display: none; }
.view.active { display: block; animation: fadeIn 0.25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ===== 卡片 ===== */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.card-title { font-size: 15px; font-weight: 600; }
.card-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ===== 统计卡片 ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: transform 0.15s, border-color 0.15s;
}
.stat-card:hover { transform: translateY(-2px); border-color: var(--border-light); }

.stat-card .stat-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 14px;
}
.stat-value { font-size: 30px; font-weight: 700; line-height: 1; }
.stat-label { font-size: 13px; color: var(--text-secondary); margin-top: 6px; }
.stat-trend { font-size: 12px; margin-top: 10px; display: flex; align-items: center; gap: 4px; }
.stat-trend.up { color: var(--success); }
.stat-trend.down { color: var(--danger); }

/* ===== 预警面板 ===== */
.alert-panel {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.alert-panel:empty { display: none; }

/* 送达状态标签 */
.delivery-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.delivery-pending { background: rgba(245,158,11,0.15); color: #fcd34d; }
.delivery-transit { background: rgba(0,212,255,0.12); color: #67e8f9; }
.delivery-delivering { background: rgba(139,92,246,0.15); color: #c4b5fd; }
.delivery-complete { background: rgba(16,185,129,0.12); color: #6ee7b7; }

/* ===== 合规申报标签 (月度订单) ===== */
.compliance-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

/* ISF */
.isf-ok { background: rgba(16,185,129,0.12); color: #6ee7b7; }
.isf-pending { background: rgba(245,158,11,0.15); color: #fcd34d; }
.isf-no { background: rgba(239,68,68,0.12); color: #fca5a5; }

/* 关税 7501 */
.tariff-done { background: rgba(16,185,129,0.15); color: #34d399; }
.tariff-filed { background: rgba(0,212,255,0.12); color: #67e8f9; }
.tariff-pending { background: rgba(245,158,11,0.12); color: #fbbf24; }
.tariff-empty { background: rgba(107,125,146,0.12); color: #94a3b8; }

/* LACEY / FDA */
.lacey-ok { background: rgba(139,92,246,0.12); color: #a78bfa; }
.lacey-no { background: rgba(239,68,68,0.10); color: #f87171; }

.btn-sm {
  padding: 6px 14px;
  font-size: 12px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-family: inherit;
  transition: all 0.15s;
}

.btn-sm:hover {
  background: var(--accent);
  color: #001a22;
}

.alert-card {
  flex: 1;
  min-width: 200px;
  padding: 14px 18px;
  border-radius: var(--radius);
  border: 1px solid;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  display: flex;
  align-items: center;
  gap: 14px;
}
.alert-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.alert-card .ac-icon { font-size: 28px; flex-shrink: 0; }
.alert-card .ac-body { flex: 1; min-width: 0; }
.alert-card .ac-count { font-size: 28px; font-weight: 700; line-height: 1; }
.alert-card .ac-label { font-size: 13px; margin-top: 4px; opacity: 0.85; }
.alert-card .ac-hint { font-size: 11px; margin-top: 4px; opacity: 0.6; }

.alert-danger {
  background: rgba(239,68,68,0.12);
  border-color: rgba(239,68,68,0.35);
  color: #fca5a5;
}
.alert-danger .ac-count { color: #ef4444; }

.alert-warning {
  background: rgba(245,158,11,0.1);
  border-color: rgba(245,158,11,0.3);
  color: #fcd34d;
}
.alert-warning .ac-count { color: #f59e0b; }

.alert-info {
  background: rgba(0,212,255,0.08);
  border-color: rgba(0,212,255,0.25);
  color: #67e8f9;
}
.alert-info .ac-count { color: #00d4ff; }

/* ETA 剩余天数徽章 */
.eta-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.eta-overdue { background: rgba(239,68,68,0.18); color: #fca5a5; }
.eta-urgent { background: rgba(239,68,68,0.1); color: #f87171; }
.eta-warning { background: rgba(245,158,11,0.15); color: #fcd34d; }
.eta-safe { background: rgba(16,185,129,0.12); color: #6ee7b7; }
.eta-na { background: rgba(107,125,146,0.12); color: var(--text-muted); }

/* ===== 表格 ===== */
.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th {
  text-align: left;
  padding: 12px 14px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

td {
  padding: 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  white-space: nowrap;
}

tr:hover td { background: rgba(255,255,255,0.02); }
tr { cursor: pointer; transition: background 0.1s; }

/* 详情页内联可编辑字段 */
.edit-field {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  gap: 12px;
}
.edit-field label {
  width: 110px;
  min-width: 110px;
  font-size: 13px;
  color: var(--text-secondary);
  text-align: right;
}
.edit-input {
  flex: 1;
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 13px;
  font-family: inherit;
  padding: 8px 10px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.edit-input:hover {
  border-color: rgba(0,212,255,0.3);
}
.edit-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(0,212,255,0.15);
}
.edit-input[readonly] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 保存修改按钮 */
.btn-save-detail {
  transition: background 0.15s;
}
.btn-save-detail:hover {
  background: #00bbe6 !important;
  color: #000 !important;
}

/* 保留旧样式以兼容 */
.btn-detail-edit { display: none; }
.detail-edit-overlay { display: none; }

.container-id { font-family: 'Courier New', monospace; color: var(--accent); font-weight: 600; }

/* 状态标签 */
.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

/* 进度条 */
.progress-bar {
  width: 100px;
  height: 6px;
  background: var(--bg-elevated);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--purple));
  border-radius: 3px;
  transition: width 0.4s;
}
.progress-text { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }

/* ===== 网格布局 ===== */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }

/* ===== 地图 ===== */
#map-view { height: calc(100vh - 160px); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }

.leaflet-container { background: #0a1018; }

.port-popup .port-name { font-weight: 700; font-size: 14px; color: var(--text-primary); }
.port-popup .port-info { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }

.container-popup { min-width: 220px; }
.container-popup .cp-header { font-weight: 700; color: var(--accent); font-family: monospace; margin-bottom: 8px; }
.container-popup .cp-row { display: flex; justify-content: space-between; font-size: 12px; padding: 3px 0; color: var(--text-secondary); }
.container-popup .cp-row span:last-child { color: var(--text-primary); font-weight: 500; }
.container-popup .cp-btn {
  margin-top: 10px; width: 100%; padding: 8px;
  background: var(--accent-dim); color: #fff;
  border: none; border-radius: 6px; cursor: pointer;
  font-size: 12px; font-weight: 600; font-family: inherit;
}
.container-popup .cp-btn:hover { background: var(--accent); }

/* 图例 */
.map-legend {
  position: absolute;
  bottom: 20px; left: 20px;
  background: rgba(22,29,38,0.95);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  z-index: 1000;
  backdrop-filter: blur(8px);
  font-size: 12px;
}
.map-legend h4 { font-size: 12px; margin-bottom: 8px; color: var(--text-primary); }
.legend-item { display: flex; align-items: center; gap: 8px; margin: 5px 0; color: var(--text-secondary); }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; }

/* ===== 详情视图 ===== */
.detail-back {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: none; color: var(--text-secondary);
  cursor: pointer; font-size: 13px; font-family: inherit;
  margin-bottom: 16px; padding: 6px 0;
}
.detail-back:hover { color: var(--accent); }

.detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}
.detail-id { font-size: 22px; font-weight: 700; font-family: monospace; color: var(--accent); }
.detail-meta { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

.detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; margin-bottom: 16px; }

.info-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.info-row:last-child { border-bottom: none; }
.info-row .label { color: var(--text-muted); }
.info-row .value { color: var(--text-primary); font-weight: 500; }

/* 时间线 */
.timeline { position: relative; padding-left: 28px; }
.timeline::before {
  content: ''; position: absolute; left: 9px; top: 8px; bottom: 8px;
  width: 2px; background: var(--border);
}
.timeline-item { position: relative; padding-bottom: 22px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute; left: -28px; top: 2px;
  width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; border: 2px solid var(--bg-surface);
  z-index: 1;
}
.timeline-date { font-size: 12px; color: var(--text-muted); }
.timeline-title { font-size: 14px; font-weight: 600; margin: 3px 0; }
.timeline-desc { font-size: 12px; color: var(--text-secondary); }
.timeline-loc { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* 大进度条 */
.big-progress {
  height: 10px; background: var(--bg-elevated); border-radius: 5px;
  overflow: hidden; margin: 10px 0 6px;
}
.big-progress-fill {
  height: 100%; background: linear-gradient(90deg, var(--accent), var(--purple));
  border-radius: 5px; transition: width 0.5s;
}

.route-visual {
  display: flex; align-items: center; gap: 12px;
  margin: 16px 0;
}
.route-node {
  flex: 0 0 auto;
  text-align: center;
}
.route-node .rn-port { font-size: 13px; font-weight: 600; }
.route-node .rn-city { font-size: 11px; color: var(--text-muted); }
.route-line { flex: 1; height: 3px; background: var(--border); border-radius: 2px; position: relative; }
.route-line .ship-icon {
  position: absolute; top: 50%; transform: translate(-50%,-50%);
  font-size: 18px;
}

/* ===== 表单 ===== */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { margin-bottom: 16px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  display: block; font-size: 12px; color: var(--text-secondary);
  margin-bottom: 6px; font-weight: 500;
}
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--accent); }
.form-field textarea { resize: vertical; min-height: 70px; }

/* 计算字段（只读） */
.calc-field {
  font-weight: 700 !important;
  font-size: 16px !important;
  color: var(--accent) !important;
  text-align: center;
  cursor: default !important;
  letter-spacing: 1px;
}
.field-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  text-align: center;
}

.btn {
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-primary { background: var(--accent); color: #001a22; }
.btn-primary:hover { background: #33ddff; }
.btn-secondary { background: var(--bg-elevated); color: var(--text-primary); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--border-light); }

/* ===== 图表容器 ===== */
.chart-card { margin-bottom: 16px; }
.chart-wrap { position: relative; height: 260px; }

/* ===== Toast ===== */
.toast-container {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  display: flex; flex-direction: column; gap: 10px;
}
.toast {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 3px solid var(--success);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  font-size: 13px;
  box-shadow: var(--shadow);
  animation: slideIn 0.25s ease;
  display: flex; align-items: center; gap: 10px;
  min-width: 280px;
}
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: none; opacity: 1; } }

/* 滚动条 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-light); }

/* 空状态 */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state .es-icon { font-size: 48px; margin-bottom: 12px; }

/* 生命周期流转器 */
.lifecycle {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 16px;
}
.lifecycle-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 14px;
}
.lifecycle-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0;
}
.lc-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 4px;
  border-radius: 8px;
  border: 2px solid transparent;
  min-width: 60px;
  transition: all 0.3s;
}
.lc-node.current {
  background: rgba(0, 212, 255, 0.05);
}
.lc-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: block;
  transition: all 0.3s;
}
.lc-node.pending .lc-dot { opacity: 0.3; }
.lc-label {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  white-space: nowrap;
}
.lc-node.current .lc-label { color: var(--text-primary); font-weight: 600; }
.lc-node.done .lc-label { color: #6ee7b7; }
.lc-line {
  flex: 1;
  height: 2px;
  min-width: 12px;
  transition: background 0.3s;
}
/* 分支节点（二选一互斥） */
.lc-branch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 80px;
  position: relative;
}
.lc-branch-line {
  width: 2px;
  height: 10px;
  background: #2a3040;
}
.lc-branch-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lc-node.branch {
  border-color: transparent;
  min-width: 70px;
  padding: 5px 4px;
}
.lc-node.branch.done {
  border-color: #10b981;
}
.lc-node.branch.done .lc-label {
  color: #6ee7b7;
  font-weight: 600;
}
.lc-node.branch .lc-label {
  font-size: 10px;
}
.btn-lifecycle-advance {
  transition: all 0.2s;
}
.btn-lifecycle-advance:hover {
  filter: brightness(1.2);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,212,255,0.3);
}

/* ===== 抵港分支选择面板 ===== */
.branch-choice {
  margin-top: 14px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(245,158,11,0.08), rgba(0,212,255,0.05));
  border: 1px solid rgba(245,158,11,0.4);
  border-radius: 10px;
  animation: pulseBorder 2s ease-in-out infinite;
}
@keyframes pulseBorder {
  0%, 100% { border-color: rgba(245,158,11,0.4); box-shadow: 0 0 0 0 rgba(245,158,11,0.2); }
  50% { border-color: rgba(245,158,11,0.8); box-shadow: 0 0 0 6px rgba(245,158,11,0.05); }
}
.bc-title {
  font-size: 15px;
  font-weight: 700;
  color: #fbbf24;
  margin-bottom: 4px;
}
.bc-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.bc-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.bc-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  color: var(--text-primary);
  transition: all 0.2s;
}
.bc-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}
.bc-lastmile:hover {
  border-color: #00d4ff;
  background: rgba(0,212,255,0.08);
}
.bc-monthly:hover {
  border-color: #10b981;
  background: rgba(16,185,129,0.08);
}
.bc-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  pointer-events: none;
}
.bc-lastmile .bc-icon { background: rgba(0,212,255,0.2); color: #00d4ff; }
.bc-monthly .bc-icon { background: rgba(16,185,129,0.2); color: #10b981; }
.bc-body { flex: 1; pointer-events: none; }
.bc-name {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}
.bc-hint {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* 抵港待选择提示标签（表格用） */
.pending-choice-tag {
  display: inline-block;
  padding: 3px 8px;
  background: rgba(245,158,11,0.15);
  color: #fbbf24;
  border: 1px solid rgba(245,158,11,0.4);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  animation: blink 1.5s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* 响应式 */
@media (max-width: 1100px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .grid-3-1, .detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .sidebar { display: none; }
  .stats-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}
