/* ==================== 全局样式 ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  color: #1F2937;
  background: #F9FAFB;
  overflow: hidden;
  user-select: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
}

input, select {
  font-family: inherit;
  outline: none;
}

/* ==================== 布局 ==================== */
.app-container {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 顶部状态栏 */
.top-bar {
  position: relative;
  height: 48px;
  background: linear-gradient(90deg, #1E3A5F 0%, #2D5A87 100%);
  color: white;
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 100;
  flex-shrink: 0;
}

.top-bar .company-name {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
  white-space: nowrap;
}

.top-bar .hud-stats {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
}

.hud-secondary { display: contents; }
.hud-more-toggle, .hud-time-mobile { display: none; }

.hud-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.hud-stat .stat-label {
  font-size: 11px;
  opacity: 0.7;
  letter-spacing: 0.5px;
}

.hud-stat .stat-value {
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.hud-stat button.stat-value { color: inherit; }
button.hud-stat { color: inherit; }
.hud-stat button:focus-visible, button.hud-stat:focus-visible { outline: 2px solid #FCD34D; outline-offset: 2px; }

.hud-stat .stat-value.money {
  color: #FCD34D;
}

.hud-stat .stat-value.rep {
  color: #6EE7B7;
}

/* 新闻播报栏 */
.news-ticker-bar {
  height: 32px;
  background: #FFFBEB;
  border-bottom: 1px solid #FDE68A;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
  overflow: hidden;
  flex-shrink: 0;
}

.ticker-label {
  font-size: 12px;
  font-weight: 600;
  color: #B45309;
  white-space: nowrap;
  padding-right: 12px;
  border-right: 1px solid #FDE68A;
}

.ticker-track {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.ticker-track span {
  font-size: 12px;
  color: #92400E;
  white-space: nowrap;
  display: inline-block;
  transform: translateY(100%);
  opacity: 0;
  width: 100%;
  text-align: left;
}

/* 主内容区 */
.main-content {
  flex: 1;
  display: flex;
  overflow: hidden;
  position: relative;
}

/* 侧边栏 */
.sidebar {
  width: 320px;
  background: white;
  border-right: 1px solid #E5E7EB;
  display: flex;
  flex-direction: column;
  z-index: 50;
  position: relative;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.sidebar.collapsed {
  transform: translateX(-100%);
  margin-right: -320px;
}

.sidebar-toggle {
  position: absolute;
  top: 60px;
  right: -14px;
  width: 28px;
  height: 48px;
  background: white;
  border: 1px solid #E5E7EB;
  border-left: none;
  border-radius: 0 6px 6px 0;
  font-size: 16px;
  color: #6B7280;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 60;
  cursor: pointer;
  box-shadow: 2px 0 6px rgba(0,0,0,0.08);
  transition: all 0.2s;
}

.sidebar-toggle:hover {
  background: #F3F4F6;
  color: #374151;
  right: -16px;
}

.sidebar.collapsed .sidebar-toggle {
  right: -42px;
}

.sidebar-tabs {
  display: flex;
  border-bottom: 1px solid #E5E7EB;
  background: #FAFAFA;
}

.sidebar-tab {
  flex: 1;
  padding: 10px 4px;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  color: #6B7280;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
}

.sidebar-tab:hover {
  color: #374151;
  background: #F3F4F6;
}

.sidebar-tab.active {
  color: #2563EB;
  border-bottom-color: #2563EB;
  background: white;
}

.sidebar-panel {
  flex: 1;
  overflow-y: auto;
  display: none;
}

.sidebar-header {
  padding: 12px 16px;
  border-bottom: 1px solid #F3F4F6;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: white;
  z-index: 1;
}

.sidebar-header h3 {
  font-size: 14px;
  font-weight: 600;
}

/* 列表项 */
.list-item {
  padding: 12px 16px;
  border-bottom: 1px solid #F3F4F6;
  cursor: pointer;
  transition: background 0.15s;
}

.list-item:hover {
  background: #F9FAFB;
}

.list-item.selected {
  background: #EFF6FF;
  border-left: 3px solid #2563EB;
  padding-left: 13px;
}

/* 受事件影响的航线需求高亮 */
.event-demand-highlight {
  color: #ff6b35 !important;
  font-weight: 600;
}

.route-event-badge {
  display: inline-block;
  margin-left: 6px;
  font-size: 12px;
  vertical-align: middle;
}

.item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.item-title {
  font-weight: 600;
  font-size: 13px;
}

.item-badge {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 500;
}

.item-badge.parked {
  background: #FEF3C7;
  color: #92400E;
}

.item-badge.flying {
  background: #DBEAFE;
  color: #1E40AF;
}

.item-badge.turnaround {
  background: #D1FAE5;
  color: #065F46;
}

.level-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  color: white;
  font-weight: 500;
}

.item-details {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #6B7280;
  margin-bottom: 8px;
}

.item-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.item-distance {
  font-size: 12px;
  color: #6B7280;
}

.max-level {
  font-size: 12px;
  color: #9CA3AF;
}

/* 搜索框 */
.search-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  font-size: 13px;
}

.search-input:focus {
  border-color: #3B82F6;
}

/* 航线搜索 - 出发/到达双输入框 */
.route-search-row {
  display: flex;
  align-items: flex-end;
  gap: 6px;
}
.route-kind-filter {
  width: 100%;
  margin-top: 8px;
  padding: 6px 8px;
  border: 1px solid #D1D5DB;
  border-radius: 4px;
  background: #fff;
  color: #374151;
  font-size: 12px;
}
.group-overview-totals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #E5E7EB;
  margin-bottom: 16px;
}
.group-overview-totals > div { display: flex; flex-direction: column; gap: 4px; }
.group-overview-totals span { color: #6B7280; font-size: 12px; }
.group-overview-totals strong { color: #111827; font-size: 19px; }
@media (max-width: 520px) { .group-overview-totals { grid-template-columns: 1fr; } }
.route-item-cargo { border-left: 3px solid #059669; }
.route-cargo-badge {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 5px;
  border: 1px solid #059669;
  border-radius: 3px;
  color: #047857;
  font-size: 10px;
  font-weight: 600;
  vertical-align: middle;
}
.route-cargo-metrics { flex-wrap: wrap; gap: 4px 10px; }

.cargo-order-summary { padding: 10px 12px; background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 8px; }
.cargo-order-summary-head { display: flex; justify-content: space-between; align-items: center; color: #334155; font-size: 13px; }
.cargo-order-summary-head span, .cargo-order-summary-note { color: #64748B; font-size: 12px; }
.cargo-order-tier-list { display: flex; gap: 5px; margin: 10px 0; }
.cargo-order-tier { min-width: 26px; padding: 3px 6px; border-radius: 4px; text-align: center; font-size: 11px; font-weight: 700; }
.cargo-order-tier.unlocked { color: #166534; background: #DCFCE7; }
.cargo-order-tier.locked { color: #64748B; background: #E2E8F0; }
.cargo-order-preview-list { display: grid; gap: 5px; margin: 8px 0; }
.cargo-order-preview { display: flex; justify-content: space-between; gap: 8px; padding: 6px 8px; color: #475569; background: #fff; border: 1px solid #E2E8F0; border-radius: 5px; font-size: 11px; }
.cargo-order-preview b { color: #047857; }
.cargo-order-summary-actions { display: flex; gap: 8px; margin-top: 10px; }
.route-freight-source, .route-freight-extra {
  color: #4B5563;
  font-size: 11px;
  line-height: 1.5;
}
.route-freight-extra { padding: 8px 4px 0; }
.route-cargo-detail { margin-top: 8px; }
.route-cargo-dialog { padding: 8px; }
.legend-route-line {
  display: inline-block;
  width: 18px;
  height: 0;
  border-top: 2px dashed #9CA3AF;
}
.legend-route-cargo { border-top: 3px solid #059669; }
.route-search-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 7px;
  flex-shrink: 0;
}
.route-search-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  position: relative;
  min-width: 0;
}
.route-search-label {
  font-size: 11px;
  color: #6B7280;
  font-weight: 500;
}
.route-search-swap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-bottom: 4px;
  flex-shrink: 0;
  background: #F3F4F6;
  border: none;
  border-radius: 6px;
  color: #6B7280;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.route-search-swap:hover {
  background: #E0E7FF;
  color: #4F46E5;
}

/* 航线详情 */
#route-detail {
  padding: 12px 16px;
  background: #F9FAFB;
  border-bottom: 1px solid #E5E7EB;
}

#route-detail h4 {
  font-size: 13px;
  margin-bottom: 8px;
  color: #374151;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.detail-grid > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.detail-label {
  font-size: 11px;
  color: #9CA3AF;
}

.detail-value {
  font-size: 13px;
  font-weight: 500;
  color: #374151;
}

/* 地图区域 */
.map-container {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: #F3F4F6;
}

#map-canvas {
  display: block;
  cursor: grab;
  width: 100%;
  height: 100%;
}

#map-canvas:active {
  cursor: grabbing;
}

/* 地图图例 */
.map-legend {
  position: absolute;
  bottom: 70px;
  left: 16px;
  background: rgba(255, 255, 255, 0.72);
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 11px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  z-index: 10;
  max-width: 130px;
  backdrop-filter: blur(4px);
}

.map-legend h4 {
  font-size: 11px;
  margin-bottom: 6px;
  color: #374151;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
  font-size: 11px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid white;
}

.legend-divider {
  height: 1px;
  background: rgba(229, 231, 235, 0.8);
  margin: 6px 0 6px 0;
}

.legend-region-swatch {
  width: 16px;
  height: 10px;
  border-radius: 2px;
  border: 1px solid;
  flex-shrink: 0;
}

.legend-item.locked span:last-child {
  color: #9CA3AF;
  text-decoration: line-through;
  opacity: 0.6;
}

.legend-btn {
  width: 100%;
  padding: 4px 6px;
  background: rgba(243, 244, 246, 0.8);
  border: 1px solid rgba(229, 231, 235, 0.8);
  border-radius: 5px;
  font-size: 11px;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1.3;
}

.legend-btn:hover {
  background: #E5E7EB;
  border-color: #D1D5DB;
}

.legend-btn:active {
  background: #D1D5DB;
}

.legend-note {
  font-size: 11px;
  color: #9CA3AF;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed #E5E7EB;
}

.legend-toggle-btn {
  width: 100%;
  padding: 5px 8px;
  margin-bottom: 8px;
  font-size: 11px;
  border: 1px solid #D1D5DB;
  border-radius: 4px;
  background: white;
  color: #4B5563;
  cursor: pointer;
  transition: all 0.15s;
}

.legend-toggle-btn:hover {
  background: #F3F4F6;
  border-color: #9CA3AF;
  color: #1F2937;
}

/* 底部控制栏 */
.bottom-bar {
  height: 52px;
  background: white;
  border-top: 1px solid #E5E7EB;
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 16px;
  z-index: 50;
  flex-shrink: 0;
}

.time-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s;
  background: #F3F4F6;
  color: #374151;
  border: 1px solid #E5E7EB;
}

.btn:hover {
  background: #E5E7EB;
}

.btn:active {
  background: #D1D5DB;
}

.btn.active {
  background: #2563EB;
  color: white;
  border-color: #2563EB;
}

.btn-primary {
  background: #2563EB;
  color: white;
  border-color: #2563EB;
}

.btn-primary:hover {
  background: #1D4ED8;
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-danger {
  background: #FEE2E2;
  color: #DC2626;
  border-color: #FECACA;
}

.btn-danger:hover {
  background: #FECACA;
}

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

.btn-xs {
  padding: 3px 8px;
  font-size: 11px;
}

.speed-btns {
  display: flex;
  gap: 2px;
  background: #F3F4F6;
  padding: 2px;
  border-radius: 6px;
}

.speed-btn {
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 4px;
  color: #6B7280;
}

.speed-btn.active {
  background: white;
  color: #2563EB;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  font-weight: 600;
}

.save-controls {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

/* 底部提示 */
.map-hint {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  z-index: 10;
  pointer-events: none;
  white-space: nowrap;
}

/* ==================== 弹窗 ==================== */
.dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.dialog {
  background: white;
  border-radius: 12px;
  min-width: 500px;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.dialog-header {
  padding: 16px 20px;
  border-bottom: 1px solid #E5E7EB;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dialog-header h3 {
  font-size: 16px;
  font-weight: 600;
}

/* 浮动可拖拽面板（非模态，可穿透点击） */
.dialog-overlay.floating-panel {
  background: transparent !important;
  pointer-events: none !important;
}
.dialog-overlay.floating-panel .dialog {
  pointer-events: auto;
}
.dialog-overlay.floating-panel .dialog.is-dragged {
  position: absolute;
}
.dialog-overlay.floating-panel .dialog-header {
  cursor: move;
  user-select: none;
}

/* 需求堆积条形图 */
.demand-bar-chart {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.demand-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.demand-bar-label {
  width: 60px;
  color: #6B7280;
  flex-shrink: 0;
}
.demand-bar-track {
  flex: 1;
  height: 22px;
  background: #F3F4F6;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  position: relative;
}
.demand-bar-fill {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: white;
  min-width: 0;
  transition: width 0.3s ease;
}
.demand-bar-total {
  background: linear-gradient(90deg, #6366F1, #8B5CF6);
}
.demand-bar-met {
  background: linear-gradient(90deg, #10B981, #059669);
}
.demand-bar-remaining {
  background: linear-gradient(90deg, #3B82F6, #2563EB);
}
.demand-bar-other {
  background: #E5E7EB;
}
.demand-bar-transfer {
  background: linear-gradient(90deg, #A855F7, #9333EA);
}
.demand-legend {
  display: flex;
  gap: 14px;
  margin-top: 8px;
  font-size: 11px;
  color: #6B7280;
  flex-wrap: wrap;
}
.demand-legend span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  display: inline-block;
}
.legend-dot.legend-met { background: #10B981; }
.legend-dot.legend-remaining { background: #3B82F6; }
.legend-dot.legend-other { background: #E5E7EB; }
.legend-dot.legend-transfer { background: linear-gradient(90deg, #A855F7, #9333EA); }

/* 已取消航班样式 */
.schedule-item.schedule-cancelled {
  opacity: 0.5;
  background: #F9FAFB;
}
.schedule-item.schedule-cancelled .sch-time,
.schedule-item.schedule-cancelled .sch-route {
  text-decoration: line-through;
  color: #9CA3AF;
}
.issue-cancelled {
  background: #FEF3C7 !important;
  color: #D97706 !important;
}

/* btn-warning */
.btn-warning {
  background: #F59E0B;
  color: white;
}
.btn-warning:hover {
  background: #D97706;
}
.btn-success {
  background: #10B981;
  color: white;
}
.btn-success:hover {
  background: #059669;
}

/* 调机/换机弹窗下拉 */
.ferry-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 10;
  display: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.ferry-dropdown .ferry-option {
  padding: 8px 12px;
  cursor: pointer;
  font-size: 13px;
}
.ferry-dropdown .ferry-option:hover {
  background: #F3F4F6;
}

/* 快线等级按钮组 */
.express-level-buttons {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.express-level-buttons .btn-xs {
  flex: 1;
  min-width: 80px;
  justify-content: center;
}

/* 健康度条 */
.health-bar-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 12px;
}
.health-bar-track {
  flex: 1;
  height: 6px;
  background: #E5E7EB;
  border-radius: 3px;
  overflow: hidden;
}
.health-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s ease;
}
.health-bar-text {
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  min-width: 72px;
}
.health-badge {
  font-size: 11px;
  font-weight: 600;
}
.health-badge.breathing {
  animation: health-breathe 2s ease-in-out infinite;
}
@keyframes health-breathe {
  0%, 100% { opacity: 1; filter: brightness(1); }
  50% { opacity: 0.5; filter: brightness(1.3); }
}

/* 检修中"检"字徽章 */
.health-bar-wrap {
  position: relative;
}
.inspect-badge {
  position: absolute;
  top: 6px;
  right: -4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #3B82F6;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px #fff, 0 0 6px rgba(59,130,246,0.6);
  z-index: 3;
  line-height: 1;
}
.breathing-scale {
  animation: inspect-breathe 1.6s ease-in-out infinite;
}
@keyframes inspect-breathe {
  0%, 100% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 2px #fff, 0 0 6px rgba(59,130,246,0.6); }
  50% { transform: scale(1.15); opacity: 0.85; box-shadow: 0 0 0 2px #fff, 0 0 14px rgba(59,130,246,0.9); }
}

/* 快线徽章 */
.express-badge {
  display: inline-block;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 600;
  border-radius: 4px;
  background: #DBEAFE;
  color: #1D4ED8;
  margin-left: 6px;
  vertical-align: middle;
}
.express-badge.premium {
  background: #FCE7F3;
  color: #BE185D;
}

.dialog-close {
  font-size: 20px;
  color: #9CA3AF;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.dialog-close:hover {
  background: #F3F4F6;
  color: #374151;
}

.dialog-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.dialog-footer {
  padding: 12px 20px;
  border-top: 1px solid #E5E7EB;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* 时刻表弹窗 */
.day-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #F3F4F6;
}

.day-tab {
  flex: 1;
  padding: 8px 0;
  text-align: center;
  font-size: 12px;
  color: #6B7280;
  border-radius: 6px;
  font-weight: 500;
}

.day-tab:hover {
  background: #F3F4F6;
}

.day-tab.active {
  background: #2563EB;
  color: white;
}

.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.schedule-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 14px;
  background: #F9FAFB;
  border-radius: 8px;
  border: 1px solid #F3F4F6;
}

.schedule-item.schedule-conflict {
  background: #FEF2F2;
  border-color: #FECACA;
}

.schedule-conflict-badge {
  display: inline-block;
  padding: 2px 6px;
  background: #DC2626;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
  margin-left: 4px;
}

.sch-time {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
}

.dep-time {
  font-size: 15px;
  font-weight: 600;
  color: #2563EB;
  font-variant-numeric: tabular-nums;
}

.arr-time {
  font-size: 12px;
  color: #6B7280;
  font-variant-numeric: tabular-nums;
}

.sch-route {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.route-arrow {
  color: #9CA3AF;
}

.route-temp-badge {
  display: inline-block;
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 4px;
  letter-spacing: 0.5px;
}

.sch-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 11px;
  color: #9CA3AF;
  min-width: 70px;
}

.sch-actions {
  display: flex;
  gap: 4px;
}

.sch-checkbox-col {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  flex-shrink: 0;
}

.sch-seg-checkbox {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #DC2626;
}

.sch-select-bar {
  display: flex;
  align-items: center;
  padding: 4px 2px 8px 2px;
  font-size: 12px;
}

.link-btn {
  background: none;
  border: none;
  color: #2563EB;
  cursor: pointer;
  font-size: 12px;
  padding: 0;
}
.link-btn:hover {
  text-decoration: underline;
}

.btn-outline-danger {
  background: #fff;
  color: #DC2626;
  border: 1px solid #DC2626;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.btn-outline-danger:hover {
  background: #FEF2F2;
}

.schedule-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

/* 航线选项列表 */
.route-option-list {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  margin-top: 8px;
  background: white;
}

.route-option {
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  border-bottom: 1px solid #F3F4F6;
  font-size: 13px;
  transition: background 0.15s;
}

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

.route-option:hover {
  background: #F3F4F6;
}

.route-option.selected {
  background: #EFF6FF;
  color: #2563EB;
}

.route-option.route-option-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  color: #9CA3AF;
  background: #F9FAFB;
}

.route-option.route-option-disabled:hover {
  background: #F3F4F6;
}

/* 输入建航线下拉菜单 */
.cri-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 200px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 100;
  display: none;
  margin-top: 2px;
}

.cri-dropdown.visible {
  display: block;
}

.cri-dropdown-item {
  padding: 8px 10px;
  cursor: pointer;
  font-size: 13px;
  border-bottom: 1px solid #F3F4F6;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cri-dropdown-item:hover {
  background: #EFF6FF;
}

.cri-dropdown-item .cri-iata {
  font-size: 11px;
  color: #6B7280;
  background: #F3F4F6;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: monospace;
}

.route-search-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-top: 4px;
}

.route-search-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.route-search-label {
  font-size: 11px;
  color: #6B7280;
  font-weight: 500;
  padding-left: 2px;
}

.route-search-arrow {
  flex-shrink: 0;
  padding-bottom: 8px;
  font-size: 14px;
  color: #9CA3AF;
  font-weight: 600;
}
  font-weight: 500;
}

.route-option-dist {
  font-size: 12px;
  color: #9CA3AF;
}

.route-option-name {
  min-width: 0;
}

.route-option-reason {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.5;
  color: #92400E;
  overflow-wrap: anywhere;
}

.route-option:has(.route-option-reason) {
  gap: 12px;
  opacity: 1;
}

.route-option:has(.route-option-reason) .route-option-dist {
  flex-shrink: 0;
}

.route-option.selected .route-option-dist {
  color: #60A5FA;
}

.route-option-empty {
  padding: 16px;
  text-align: center;
  color: #9CA3AF;
  font-size: 12px;
}

/* 购买飞机弹窗 —— 竖表形式 */
.buy-aircraft-dialog {
  width: 1120px;
  max-width: 94vw;
  max-height: 85vh;
}

.buy-aircraft-body {
  padding: 0;
  display: flex;
  flex-direction: column;
  max-height: calc(85vh - 56px);
}

.buy-money-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  border-radius: 10px;
  color: #0c4a6e;
}
.buy-money-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.buy-money-icon {
  font-size: 18px;
  color: #0284c7;
}
.buy-money-label {
  color: #0369a1;
  font-size: 14px;
  font-weight: 600;
}
.buy-money-bar strong {
  font-size: 22px;
  font-weight: bold;
  color: #15803d;
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0.5px;
}

/* 购买面板：关闭按钮在最右 */
.buy-aircraft-dialog .dialog-header {
  justify-content: flex-start;
  gap: 12px;
}
.buy-aircraft-dialog .dialog-close {
  margin-left: auto;
}
/* 购买面板：表头左对齐 */
.buy-aircraft-dialog .aircraft-table thead th {
  text-align: left;
}

.buy-aircraft-body .form-group {
  padding: 16px 24px 0 24px;
  margin-bottom: 12px;
}

.aircraft-table-wrap {
  flex: 1;
  /* 不设 overflow：否则它会成为表头 sticky 的滚动包含块，而真正滚动的是外层 .dialog-body，导致表头吸不住 */
  padding: 0 24px 20px 24px;
}

.aircraft-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  /* 去掉 overflow:hidden：它会让 table 成为 sticky 包含块，破坏表头吸附 */
}

.aircraft-table thead th {
  position: sticky;
  top: 0;
  background: #F8FAFC;
  color: #475569;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 14px;
  border-bottom: 2px solid #E5E7EB;
  z-index: 2;
  text-align: left;
}

.aircraft-table td {
  padding: 11px 14px;
  border-bottom: 1px solid #F1F5F9;
  text-align: center;
  color: #334155;
}

.aircraft-table .col-num,
.aircraft-table .col-price .price-value,
.aircraft-table .col-model .col-model {
  text-align: left !important;
  font-weight: 600;
  color: #1E293B;
  font-size: 13px;
}

.model-name-cell {
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-weight: 600;
  color: #1E293B;
}

.col-cat .cat-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
}

.cat-regional { background: #F3E8FF; color: #7C3AED; }
.cat-narrow { background: #DBEAFE; color: #1D4ED8; }
.cat-midWide { background: #CFFAFE; color: #0E7490; }
.cat-largeWide { background: #D1FAE5; color: #047857; }
.cat-quad { background: #FEF3C7; color: #B45309; }

.col-num {
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  color: #475569;
}

.col-price {
  text-align: right !important;
  font-weight: 600;
  color: #1D4ED8;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  padding-right: 16px !important;
}

.col-price .price-value {
  font-size: 14px;
  font-weight: 700;
  color: #1D4ED8;
}

.col-action {
  padding-right: 16px !important;
  text-align: right !important;
}

.buy-row-btn {
  background: #2563EB;
  color: white;
  border: none;
  padding: 6px 16px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.buy-row-btn:hover:not(.disabled):not(:disabled) {
  background: #1D4ED8;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

.buy-row-btn:active:not(.disabled):not(:disabled) {
  transform: translateY(0);
}

.buy-row-btn.disabled,
.buy-row-btn:disabled {
  background: #E5E7EB;
  color: #9CA3AF;
  cursor: not-allowed;
}

.price-inflation {
  font-size: 10px;
  color: #D97706;
  font-weight: 600;
  background: #FEF3C7;
  padding: 1px 7px;
  border-radius: 10px;
  font-family: system-ui, -apple-system, sans-serif;
  font-variant-numeric: normal;
  letter-spacing: 0;
}

.form-group {
  margin-bottom: 16px;
  position: relative;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
  color: #374151;
}

.form-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #D1D5DB;
  border-radius: 6px;
  font-size: 13px;
}

.form-input:focus {
  border-color: #3B82F6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #D1D5DB;
  border-radius: 6px;
  font-size: 13px;
  background: white;
}

.day-checkbox-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.day-checkbox {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border: 1px solid #D1D5DB;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
}

.day-checkbox:has(input:checked) {
  background: #EFF6FF;
  border-color: #3B82F6;
  color: #2563EB;
}

.day-checkbox:has(input:disabled) {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 存档列表 */
.save-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 400px;
  overflow-y: auto;
}

.save-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  transition: border-color 0.15s;
}

.save-item:hover {
  border-color: #93C5FD;
}

.save-info {
  flex: 1;
}

.save-name {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.save-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  padding: 1px 6px;
  border-radius: 10px;
  background: #E5E7EB;
  color: #6B7280;
}

.save-tag.auto {
  background: #DBEAFE;
  color: #2563EB;
}

.save-meta {
  font-size: 12px;
  color: #6B7280;
  margin-bottom: 2px;
}

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

.detail-card {
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 12px 14px;
}

.detail-card-title {
  font-weight: 600;
  font-size: 13px;
  color: #374151;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid #E5E7EB;
}

.transfer-help-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #E5E7EB;
  color: #6B7280;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}
.transfer-help-icon:hover {
  background: #7C3AED;
  color: white;
}

.detail-card-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 3px 0;
  color: #6B7280;
}

.detail-card-row b {
  color: #111827;
  font-weight: 600;
}

/* ===== 换乘需求 ===== */
.transfer-demand-row {
  padding-left: 10px;
  color: #7C3AED;
  border-left: 2px solid #DDD6FE;
}
.transfer-demand-row b {
  color: #6D28D9;
}
.transfer-demand-detail {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 2px 0 5px 12px;
  margin-bottom: 3px;
  border-left: 2px solid #DDD6FE;
}
.td-item {
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  padding: 1px 0;
}
.td-item b { font-weight: 600; }
.td-r1 { color: #6D28D9; }
.td-r1 b { color: #5B21B6; }
.td-r2 { color: #0E7490; }
.td-r2 b { color: #155E75; }

.flights-section-title {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin: 8px 0 10px;
}

.route-flight-list {
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  overflow: hidden;
}

.route-flight-header {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr 1fr;
  background: #F3F4F6;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #4B5563;
  gap: 8px;
}

.route-flight-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr 1fr;
  padding: 8px 12px;
  font-size: 13px;
  border-top: 1px solid #F3F4F6;
  color: #374151;
  gap: 8px;
}

.route-flight-row:hover {
  background: #F9FAFB;
}

.route-weekly-table-wrap {
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  overflow: auto;
  max-height: 420px;
}

.route-weekly-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  color: #374151;
}

.route-weekly-table thead th {
  background: #F3F4F6;
  padding: 8px 10px;
  font-weight: 600;
  color: #4B5563;
  text-align: center;
  font-size: 12px;
  position: sticky;
  top: 0;
  z-index: 1;
  border-bottom: 1px solid #E5E7EB;
}

.route-weekly-table tbody td {
  padding: 7px 10px;
  text-align: center;
  border-bottom: 1px solid #F3F4F6;
  font-size: 13px;
}

.route-weekly-table tbody tr:hover {
  background: #F9FAFB;
}

.route-weekly-table .ac-cell {
  text-align: left;
}

.route-weekly-table .time-cell {
  font-variant-numeric: tabular-nums;
  font-size: 12px;
}

.route-weekly-table .wday-col {
  width: 32px;
  padding: 7px 4px;
}

.wday-dot {
  color: #2563EB;
  font-size: 14px;
  line-height: 1;
}

.quick-add-bar {
  position: absolute;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid #D1D5DB;
  border-radius: 10px;
  padding: 10px 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 500;
  pointer-events: auto;
}

.quick-add-hint {
  font-size: 13px;
  color: #374151;
  font-weight: 500;
}

.quick-add-actions {
  display: flex;
  gap: 8px;
}

.segments-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.segment-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: #EEF2FF;
  border: 1px solid #C7D2FE;
  color: #3730A3;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.segment-pill .seg-num {
  background: #6366F1;
  color: #fff;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

.segment-arrow {
  color: #9CA3AF;
  font-size: 14px;
}

.verify-status {
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 0;
}

.verify-status.success {
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.verify-status.warning {
  background: #FFFBEB;
  color: #92400E;
  border: 1px solid #FDE68A;
}

.verify-status.error {
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

/* 链式修改进度条 */
.chain-indicator {
  background: linear-gradient(135deg, #DBEAFE, #E0E7FF);
  color: #1E40AF;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 12px;
  text-align: center;
  border: 1px solid #BFDBFE;
}

/* 航线锁定显示 */
.route-locked-display {
  background: #F3F4F6;
  border: 1px dashed #D1D5DB;
  border-radius: 6px;
  padding: 10px 12px;
}
.route-locked-name {
  font-size: 14px;
  color: #111827;
  margin-bottom: 4px;
}
.route-locked-desc {
  font-size: 12px;
  color: #6B7280;
}

.save-actions {
  display: flex;
  gap: 6px;
}

/* 机场航班列表 */
.airport-flight-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.airport-flight-item {
  display: flex;
  gap: 12px;
  padding: 8px 12px;
  background: #F9FAFB;
  border-radius: 6px;
  font-size: 13px;
  align-items: center;
}

.flight-time {
  font-weight: 600;
  color: #2563EB;
  min-width: 50px;
  font-variant-numeric: tabular-nums;
}

.flight-ac {
  color: #374151;
  min-width: 120px;
}

.flight-route {
  color: #6B7280;
  flex: 1;
}

.flight-dist {
  color: #9CA3AF;
  font-size: 12px;
}

.airport-flight-item.arrival .flight-time {
  color: #059669;
}

.airport-flight-sub-title {
  font-size: 11px;
  color: #9CA3AF;
  margin-bottom: 8px;
  margin-top: -4px;
}

.airport-info-summary {
  margin-bottom: 12px;
}

.airport-flight-title {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
  padding-top: 4px;
}

/* 机场升级详情 */
.airport-section-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, #E5E7EB, transparent);
  margin: 16px 0;
}

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

.airport-detail-level {
  font-size: 13px;
  margin-bottom: 8px;
}

.airport-detail-specs {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: #6B7280;
}

.airport-upgrade-box {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: 8px;
  padding: 12px;
}

.airport-upgrade-box.maxed {
  background: #F3F4F6;
  border-color: #E5E7EB;
  color: #9CA3AF;
  text-align: center;
  padding: 20px 12px;
}

.upgrade-title {
  font-size: 13px;
  font-weight: 600;
  color: #166534;
  margin-bottom: 8px;
}

.upgrade-changes {
  font-size: 12px;
  color: #166534;
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 10px;
}

.upgrade-changes span {
  color: #9CA3AF;
}

.upgrade-changes b {
  color: #166534;
}

.upgrade-cost {
  font-size: 12px;
  color: #6B7280;
  margin-bottom: 10px;
}

.upgrade-cost b {
  color: #D97706;
  font-size: 13px;
}

.upgrade-inflation {
  font-size: 11px;
  color: #9CA3AF;
  margin-bottom: 10px;
  padding: 4px 8px;
  background: #F3F4F6;
  border-radius: 6px;
  text-align: center;
}

.upgrade-btn {
  width: 100%;
}

/* 机场点数升级项目 */
.airport-point-upgrade-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 10px 0;
}

.point-balance {
  font-size: 12px;
  color: #6B7280;
  font-weight: 400;
}

.point-balance b {
  color: #D97706;
  font-weight: 700;
}

.point-upgrade-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  margin-bottom: 6px;
}

.point-upgrade-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.point-upgrade-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #374151;
}

.point-upgrade-value {
  font-weight: 600;
  color: #111827;
}

/* 升级按钮：背景+进度条覆盖 */
.btn-point-upgrade {
  position: relative;
  height: 26px;
  border: 1px solid #D1D5DB;
  border-radius: 6px;
  background: #FFFFFF;
  color: #374151;
  font-size: 11px;
  cursor: pointer;
  overflow: hidden;
  padding: 0;
  user-select: none;
}

.btn-point-upgrade:hover {
  border-color: #9CA3AF;
  background: #F9FAFB;
}

.btn-point-upgrade:active {
  background: #F3F4F6;
}

.btn-point-upgrade.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-point-upgrade .btn-point-text {
  position: relative;
  z-index: 2;
  display: block;
  line-height: 24px;
  text-align: center;
  font-weight: 500;
}

.btn-point-upgrade .btn-point-progress {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background: linear-gradient(90deg, #FEF3C7, #FCD34D);
  z-index: 1;
}

.point-upgrade-hint {
  font-size: 11px;
  color: #9CA3AF;
  text-align: center;
  margin-top: 2px;
}

/* 航线快线升级按钮 */
.btn-express-upgrade {
  position: relative;
  width: 100%;
  height: 32px;
  border: 1px solid #3B82F6;
  border-radius: 6px;
  background: #EFF6FF;
  color: #1D4ED8;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  overflow: hidden;
  padding: 0;
  user-select: none;
}

.btn-express-upgrade:hover {
  background: #DBEAFE;
}

.btn-express-upgrade.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  border-color: #94A3B8;
  background: #F1F5F9;
  color: #64748B;
}

.btn-express-upgrade .btn-point-text {
  position: relative;
  z-index: 2;
  display: block;
  line-height: 30px;
  text-align: center;
}

.btn-express-upgrade .btn-point-progress {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background: linear-gradient(90deg, #DBEAFE, #93C5FD);
  z-index: 1;
}

.express-max-hint {
  font-size: 12px;
  color: #10B981;
  text-align: center;
  padding: 6px 0;
  background: #F0FDF4;
  border-radius: 6px;
}

.express-max-hint.disabled {
  color: #9CA3AF;
  background: #F3F4F6;
}

/* 航线创建确认 */
.route-confirm-box {
  text-align: center;
  padding: 10px 0;
}

.route-confirm-name {
  font-size: 20px;
  font-weight: 600;
  color: #1F2937;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.route-confirm-arrow {
  color: #3B82F6;
  font-size: 24px;
}

.route-confirm-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 16px;
}

.route-confirm-stats > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.route-confirm-money {
  font-size: 12px;
  color: #6B7280;
  padding-top: 12px;
  border-top: 1px solid #F3F4F6;
}

.route-confirm-money b {
  color: #2563EB;
}

/* 动态事件面板 */
.panel-section-title {
  font-size: 11px;
  font-weight: 600;
  color: #9CA3AF;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 12px 16px 8px;
}

.event-card {
  margin: 0 12px 10px;
  padding: 12px;
  border-radius: 8px;
  border-left: 4px solid #EF4444;
  background: #FEF2F2;
}

.event-card.upcoming {
  border-left-color: #8B5CF6;
  background: #F5F3FF;
}

.event-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.event-card-title {
  font-weight: 600;
  font-size: 13px;
  color: #991B1B;
}

.event-card.upcoming .event-card-title {
  color: #5B21B6;
}

.event-card-boost {
  font-size: 11px;
  font-weight: 600;
  background: #FCA5A5;
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
}

.event-card-boost.upcoming-boost {
  background: #C4B5FD;
}

.event-card-desc {
  font-size: 12px;
  color: #991B1B;
  opacity: 0.8;
  margin-bottom: 8px;
  line-height: 1.4;
}

.event-card.upcoming .event-card-desc {
  display: none;
}

.event-card-info {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #B91C1C;
  margin-bottom: 10px;
}

.event-card.upcoming .event-card-info {
  color: #7C3AED;
  margin-bottom: 0;
}

.event-target {
  border-top: 1px solid #FECACA;
  padding-top: 8px;
}

.event-target-header {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #991B1B;
  margin-bottom: 6px;
}

.event-progress-bar {
  height: 6px;
  background: #FECACA;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 6px;
}

.event-progress-fill {
  height: 100%;
  background: #EF4444;
  border-radius: 3px;
  transition: width 0.3s;
}

.event-progress-fill.complete {
  background: #10B981;
}

.event-complete-badge {
  font-size: 11px;
  color: #059669;
  font-weight: 600;
  text-align: right;
}

.event-card-reward {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #991B1B;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #FECACA;
}

.event-module-tabs {
  display: flex;
  gap: 4px;
  padding: 8px 12px;
  border-bottom: 1px solid #E5E7EB;
  background: #F9FAFB;
}

.event-module-tab {
  flex: 1;
  padding: 6px 8px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid #D1D5DB;
  border-radius: 6px;
  background: white;
  color: #6B7280;
  cursor: pointer;
  transition: all 0.2s;
}

.event-module-tab:hover {
  border-color: #3B82F6;
  color: #3B82F6;
}

.event-module-tab.active {
  background: #3B82F6;
  border-color: #3B82F6;
  color: white;
}

.event-card-module-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(239, 68, 68, 0.15);
  color: #B91C1C;
  margin-bottom: 6px;
}

/* 事件通知 */
#event-container {
  position: fixed;
  top: 80px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 500;
  pointer-events: none;
}

.event-notification {
  background: white;
  border-left: 4px solid #EF4444;
  border-radius: 8px;
  padding: 12px 16px;
  min-width: 280px;
  max-width: 360px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  pointer-events: auto;
  position: relative;
  animation: slideIn 0.3s ease-out;
  transition: all 0.3s;
}

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

.event-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
  color: #1F2937;
}

.event-body {
  font-size: 12px;
  color: #6B7280;
  line-height: 1.6;
}

.event-body > div {
  margin-bottom: 2px;
}

.event-close {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 18px;
  color: #9CA3AF;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 20px;
  height: 20px;
}

.event-close:hover {
  color: #374151;
}

/* Toast */
.toast {
  position: fixed;
  top: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: rgba(31, 41, 55, 0.95);
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
  opacity: 0;
  transition: all 0.3s;
  z-index: 2000;
  pointer-events: none;
  max-width: 80%;
  text-align: center;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast-error {
  background: rgba(220, 38, 38, 0.95);
}

/* 空状态 */
.empty-state {
  padding: 30px 20px;
  text-align: center;
  color: #9CA3AF;
  font-size: 13px;
  line-height: 1.6;
}

.empty-state small {
  font-size: 11px;
  color: #D1D5DB;
}

/* 滚动条 */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #D1D5DB;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #9CA3AF;
}

/* 响应式小调整 */
@media (max-width: 900px) {
  .hud-stats {
    gap: 14px;
  }
  .hud-stat .stat-label {
    font-size: 10px;
  }
  .hud-stat .stat-value {
    font-size: 13px;
  }
  .sidebar {
    width: 280px;
  }
  .sidebar.collapsed {
    margin-right: -280px;
  }
}

@media (max-width: 1279px) {
  .top-bar {
    height: 82px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 36px;
    grid-template-rows: 28px 40px;
    gap: 2px 8px;
    padding: 5px 12px 7px;
    overflow: visible;
  }
  .top-bar > div:first-child { grid-column: 1; grid-row: 1; min-width: 0; }
  .top-bar .company-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
  #hud-edit-name-btn { display: none; }
  .top-bar .hud-stats {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    align-items: center;
    justify-content: stretch;
    gap: 8px;
    width: 100%;
    min-width: 0;
  }
  .top-bar .hud-stats > .hud-stat { min-width: 0; align-items: flex-start; gap: 1px; }
  .top-bar .hud-stats > .hud-stat .stat-label { font-size: 10px; }
  .top-bar .hud-stats > .hud-stat .stat-value { max-width: 100%; font-size: 13px; white-space: nowrap; }
  #hud-time { display: none; }
  .hud-time-mobile { display: inline; }
  .hud-more-toggle {
    display: flex;
    position: absolute;
    top: 6px;
    right: 12px;
    width: 36px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.32);
    border-radius: 6px;
    color: #fff;
    font-size: 22px;
    line-height: 1;
  }
  .hud-more-toggle:hover, .hud-more-toggle[aria-expanded="true"] { background: rgba(255,255,255,.16); }
  .hud-more-toggle:focus-visible { outline: 2px solid #FCD34D; outline-offset: 2px; }
  .top-bar .hud-secondary {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: min(55vh, 360px);
    overflow-y: auto;
    padding: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    background: #173650;
    border-top: 1px solid rgba(255,255,255,.18);
    box-shadow: 0 12px 20px rgba(15,23,42,.22);
  }
  .top-bar .hud-secondary.is-open { display: grid; }
  .top-bar .hud-secondary .hud-stat {
    min-width: 0;
    min-height: 48px;
    align-items: flex-start;
    justify-content: center;
    padding: 5px 8px !important;
    margin: 0 !important;
    border: 1px solid rgba(255,255,255,.14) !important;
    border-radius: 5px;
    text-align: left;
  }
  .top-bar .hud-secondary .stat-label, .top-bar .hud-secondary .stat-value { white-space: nowrap; }
}

@media (max-width: 600px) {
  .main-content .sidebar {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(320px, calc(100vw - 48px));
    box-shadow: 4px 0 16px rgba(15,23,42,.16);
  }
  .main-content .sidebar.collapsed { margin-right: 0; box-shadow: none; }
  .map-container { min-width: 0; width: 100%; }
  .map-hint { display: none; }
  .map-legend { bottom: 8px; left: 8px; max-width: 120px; padding: 6px; }
  .map-legend h4, .map-legend .legend-item, .map-legend .legend-divider { display: none; }
  .bottom-bar { overflow-x: auto; overflow-y: hidden; white-space: nowrap; padding: 0 12px; }
  .bottom-bar > * { flex: 0 0 auto; }
  #route-detail-dialog .dialog { min-width: 0 !important; width: calc(100vw - 20px); max-width: 560px; }
  #route-detail-dialog .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #route-detail-dialog .detail-value { overflow-wrap: anywhere; }
}

/* 收入统计弹窗 */
.revenue-table {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}

.revenue-row {
  display: grid;
  grid-template-columns: 1.3fr repeat(6, 1fr);
  padding: 8px 10px;
  font-size: 12px;
  border-bottom: 1px solid #F3F4F6;
  align-items: center;
  gap: 4px;
}

.revenue-row.cols-8 {
  grid-template-columns: 1.3fr repeat(7, 1fr);
}

.revenue-row span {
  text-align: center;
  white-space: nowrap;
}

.revenue-row span:first-child {
  text-align: left;
}

.revenue-row.header {
  background: #F9FAFB;
  color: #6B7280;
  font-weight: 600;
  font-size: 11px;
  border-radius: 6px 6px 0 0;
  border-bottom: 2px solid #E5E7EB;
}

.revenue-row.total {
  background: #FFFBEB;
  color: #92400E;
  font-weight: 600;
  border-radius: 0 0 6px 6px;
  border-bottom: none;
  border-top: 2px solid #E5E7EB;
}

.clickable {
  cursor: pointer;
  transition: opacity 0.2s;
}

.clickable:hover {
  opacity: 0.8;
}

/* 飞机列表筛选栏 */
.aircraft-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #F9FAFB;
  border-bottom: 1px solid #E5E7EB;
  font-size: 12px;
  color: #6B7280;
}

.filter-label {
  font-weight: 600;
}

.filter-select {
  flex: 1;
  padding: 4px 8px;
  border: 1px solid #D1D5DB;
  border-radius: 4px;
  background: #fff;
  font-size: 12px;
  cursor: pointer;
}

.filter-select:focus {
  outline: none;
  border-color: #3B82F6;
}

/* 列表分组标题 */
.list-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: #EFF6FF;
  color: #1E40AF;
  font-size: 12px;
  font-weight: 600;
  border-bottom: 1px solid #BFDBFE;
  position: sticky;
  top: 0;
  z-index: 1;
}

.group-count {
  background: #3B82F6;
  color: #fff;
  padding: 1px 8px;
  border-radius: 10px;
  font-size: 11px;
}

.group-arrow {
  display: inline-block;
  width: 14px;
  font-size: 10px;
  color: #60A5FA;
  transition: transform 0.15s;
}

/* 飞机基地行 */
.aircraft-base-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #6B7280;
  margin-top: 4px;
}

.base-label {
  flex-shrink: 0;
}

.base-select {
  flex: 1;
  padding: 3px 6px;
  border: 1px solid #D1D5DB;
  border-radius: 4px;
  background: #fff;
  font-size: 12px;
  cursor: pointer;
  max-width: 180px;
}

.base-select:focus {
  outline: none;
  border-color: #3B82F6;
}

/* ============ 游戏封面 ============ */
.cover-screen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100000;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(10,22,40,0.55) 0%, rgba(30,58,95,0.35) 50%, rgba(10,22,40,0.75) 100%),
    url('../assets/cover-bg.png') center/cover no-repeat,
    linear-gradient(180deg, #0a1628 0%, #1e3a5f 40%, #2d5a87 70%, #3b7fb3 100%);
  transition: opacity 0.8s ease-out;
}

.cover-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* 星星 */
.cover-stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 40% 70%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1.5px 1.5px at 60% 20%, rgba(255,255,255,0.9), transparent),
    radial-gradient(1px 1px at 80% 50%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 15% 80%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1.5px 1.5px at 90% 15%, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 33% 45%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 70% 85%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 50% 10%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1.5px 1.5px at 25% 60%, rgba(255,255,255,0.8), transparent);
  animation: twinkle 4s ease-in-out infinite alternate;
}

@keyframes twinkle {
  from { opacity: 0.6; }
  to { opacity: 1; }
}

/* 云层 */
.cover-clouds {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cover-cloud {
  position: absolute;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.05) 50%, transparent 70%);
  border-radius: 50%;
  filter: blur(30px);
}

.cloud-1 {
  width: 400px;
  height: 120px;
  top: 20%;
  left: -200px;
  animation: drift-x 60s linear infinite;
}

.cloud-2 {
  width: 500px;
  height: 150px;
  top: 55%;
  left: -250px;
  animation: drift-x 80s linear infinite;
  animation-delay: -20s;
}

.cloud-3 {
  width: 350px;
  height: 100px;
  top: 75%;
  left: -180px;
  animation: drift-x 50s linear infinite;
  animation-delay: -30s;
}

@keyframes drift-x {
  from { transform: translateX(0); }
  to { transform: translateX(calc(100vw + 600px)); }
}

/* 航迹云 */
.cover-contrails {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.contrail {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.6) 30%, rgba(255,255,255,0.8) 50%, rgba(255,255,255,0.6) 70%, transparent 100%);
  border-radius: 2px;
  filter: blur(1px);
}

.contrail-1 {
  width: 300px;
  top: 25%;
  left: -350px;
  animation: contrail-fly 15s linear infinite;
}

.contrail-2 {
  width: 250px;
  top: 45%;
  left: -300px;
  animation: contrail-fly 20s linear infinite;
  animation-delay: -8s;
}

.contrail-3 {
  width: 200px;
  top: 70%;
  left: -250px;
  animation: contrail-fly 18s linear infinite;
  animation-delay: -12s;
}

@keyframes contrail-fly {
  0% { transform: translateX(0) translateY(0); opacity: 0; }
  10% { opacity: 0.8; }
  90% { opacity: 0.6; }
  100% { transform: translateX(calc(100vw + 400px)) translateY(-40px); opacity: 0; }
}

.cover-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: #fff;
  animation: fade-up 1.5s ease-out;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cover-title-wrap {
  margin-bottom: 60px;
}

.cover-title {
  font-size: 72px;
  font-weight: 300;
  letter-spacing: 16px;
  margin: 0 0 20px 0;
  text-shadow: 0 0 40px rgba(100, 180, 255, 0.5), 0 4px 16px rgba(0, 0, 0, 0.3);
  background: linear-gradient(180deg, #ffffff 0%, #a8d0ff 50%, #7ab3ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding-left: 16px; /* 补偿 letter-spacing 末尾空格 */
}

.cover-subtitle {
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 8px;
  color: rgba(200, 220, 255, 0.85);
  margin-bottom: 12px;
}

.cover-tagline {
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 2px;
  color: rgba(180, 210, 255, 0.6);
}

.cover-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 80px;
}

.cover-btn {
  padding: 14px 48px;
  font-size: 16px;
  font-weight: 500;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  letter-spacing: 4px;
  transition: all 0.3s ease;
}

.cover-btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}

.cover-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(59, 130, 246, 0.6);
}

.cover-btn-primary:active {
  transform: translateY(0);
}

.cover-btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.cover-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.cover-btn-secondary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.cover-footer {
  font-size: 12px;
  color: rgba(180, 210, 255, 0.4);
  letter-spacing: 4px;
}

/* ============ 公司声誉弹窗 ============ */
.rep-section {
  padding: 8px 0;
}

.rep-section-title {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.rep-base-score {
  font-size: 28px;
  font-weight: 700;
  color: #2563EB;
  margin-bottom: 12px;
}

.rep-total-score {
  font-size: 28px;
  font-weight: 700;
  color: #059669;
}

.rep-total-sub {
  font-size: 13px;
  font-weight: 400;
  color: #9CA3AF;
  margin-left: 6px;
}

.rep-formula {
  font-size: 12px;
  color: #6B7280;
  line-height: 1.8;
  background: #F9FAFB;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 12px;
}

.rep-formula sup {
  font-size: 10px;
}

.rep-delay-stats {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.rep-delay-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.rep-delay-label {
  color: #7F1D1D;
  font-weight: 500;
}

.rep-delay-value {
  font-weight: 600;
}

.rep-subtitle {
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}

.rep-history-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rep-history-item {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  padding: 6px 8px;
  background: #F9FAFB;
  border-radius: 6px;
}

.rep-history-date {
  color: #9CA3AF;
  font-size: 11px;
}

.rep-history-action {
  color: #374151;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rep-history-delta {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.rep-bonus-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}

.rep-bonus-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  background: #F0FDF4;
  border-radius: 6px;
  font-size: 12px;
}

.rep-bonus-name {
  color: #166534;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rep-bonus-amount {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.rep-bonus-remain {
  color: #6B7280;
  font-size: 11px;
}

.rep-bonus-total {
  font-size: 13px;
  color: #374151;
  text-align: right;
  padding-top: 6px;
  border-top: 1px dashed #E5E7EB;
}

.rep-divider {
  height: 1px;
  background: #E5E7EB;
  margin: 8px -4px;
}

.rep-empty {
  font-size: 12px;
  color: #9CA3AF;
  text-align: center;
  padding: 16px 0;
}


/* ============ 状态分类徽章 ============ */
.status-flying { color: #3B82F6; background: rgba(59,130,246,0.1); border-color: rgba(59,130,246,0.3); }
.status-boarding { color: #F59E0B; background: rgba(245,158,11,0.1); border-color: rgba(245,158,11,0.3); }
.status-maintenance { color: #6B7280; background: rgba(107,114,128,0.1); border-color: rgba(107,114,128,0.3); }
.status-idle { color: #10B981; background: rgba(16,185,129,0.1); border-color: rgba(16,185,129,0.3); }

/* ============ 延误徽章 ============ */
.delay-badge {
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 3px;
  margin-left: 4px;
  font-weight: 500;
}
.delay-low { color: #F59E0B; background: rgba(245,158,11,0.1); }
.delay-high { color: #EF4444; background: rgba(239,68,68,0.1); }

/* ============ 机场停靠计数 ============ */
.parked-count.parked-full {
  color: #EF4444;
  font-weight: 600;
}

/* ============ 时刻表修改模式 ============ */
.schedule-edit-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.schedule-edit-footer {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
}
.schedule-warning {
  border-left: 3px solid #F59E0B !important;
  background: rgba(245,158,11,0.05);
}
.sch-issues {
  grid-column: 1 / -1;
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px dashed #E5E7EB;
}
.seg-issue {
  font-size: 11px;
  padding: 2px 0;
}
.issue-error { color: #EF4444; }
.issue-warning { color: #F59E0B; }

/* ============ 日期卡片选择 ============ */
.weekday-card-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.weekday-card {
  flex: 1;
  min-width: 44px;
  padding: 8px 4px;
  text-align: center;
  border: 1.5px solid #D1D5DB;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
  background: #fff;
  user-select: none;
}
.weekday-card:hover {
  border-color: #3B82F6;
  background: #EFF6FF;
}
.weekday-card.selected {
  border-color: #3B82F6;
  background: #3B82F6;
  color: #fff;
  font-weight: 600;
}

/* ============ 日期Tab告警标记 ============ */
.tab-alert {
  display: inline-block;
  width: 14px;
  height: 14px;
  line-height: 14px;
  text-align: center;
  border-radius: 50%;
  font-size: 10px;
  font-weight: bold;
  margin-left: 3px;
  color: #fff;
}
.tab-alert.error { background: #EF4444; }
.tab-alert.warning { background: #F59E0B; }

/* ============ 状态小药丸 ============ */
.status-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  border: 1px solid;
}

/* ============ 延误面板 ============ */
.delay-summary {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}
.delay-summary-item {
  flex: 1;
  background: #F9FAFB;
  border-radius: 8px;
  padding: 12px 16px;
  text-align: center;
}
.delay-summary-label {
  display: block;
  font-size: 12px;
  color: #6B7280;
  margin-bottom: 4px;
}
.delay-summary-value {
  display: block;
  font-size: 22px;
  font-weight: 600;
  color: #F59E0B;
}
.delay-list-title {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}
.delay-list {
  max-height: 300px;
  overflow-y: auto;
}
.delay-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-bottom: 1px solid #F3F4F6;
}
.delay-item:last-child { border-bottom: none; }
.delay-ac-name {
  font-weight: 600;
  color: #1F2937;
  min-width: 100px;
}
.delay-ac-model {
  flex: 1;
  color: #6B7280;
  font-size: 12px;
}
.delay-val {
  font-size: 12px;
  font-weight: 500;
}
.delay-val.delay-low { color: #F59E0B; }
.delay-val.delay-high { color: #EF4444; }
.delay-reason {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  color: #9CA3AF;
  flex: 2;
  text-align: right;
}

/* ============ HUD 延误项 ============ */
#hud-delay-stat.clickable {
  cursor: pointer;
}
#hud-delay-stat:hover {
  background: rgba(255,255,255,0.1);
}

/* ============ 航油系统 ============ */
#hud-fuel-stat.clickable {
  cursor: pointer;
}
#hud-fuel-stat:hover {
  background: rgba(255,255,255,0.1);
}
.fuel-section {
  background: #F9FAFB;
  border-radius: 10px;
  padding: 16px;
}
.fuel-section-title {
  font-size: 15px;
  font-weight: 600;
  color: #1F2937;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.fuel-price-now {
  font-size: 13px;
  font-weight: 500;
  color: #3B82F6;
  margin-left: auto;
}
.fuel-price-countdown {
  font-size: 12px;
  color: #9CA3AF;
}
.fuel-status-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}
.fuel-status-item {
  text-align: center;
}
.fuel-status-label {
  display: block;
  font-size: 12px;
  color: #6B7280;
  margin-bottom: 4px;
}
.fuel-status-value {
  display: block;
  font-size: 18px;
  font-weight: 600;
  color: #1F2937;
}
.fuel-progress-bar {
  height: 10px;
  background: #E5E7EB;
  border-radius: 5px;
  overflow: hidden;
}
.fuel-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10B981, #3B82F6);
  border-radius: 5px;
  transition: width 0.3s ease;
  width: 100%;
}
.fuel-progress-fill.fuel-low {
  background: linear-gradient(90deg, #EF4444, #F59E0B);
}
.fuel-chart {
  background: #fff;
  border-radius: 8px;
  padding: 8px;
  text-align: center;
}
#fuel-chart-canvas {
  width: 100%;
  max-width: 560px;
  height: 120px;
}
.fuel-upgrade-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.fuel-upgrade-info {
  font-size: 13px;
  color: #4B5563;
  line-height: 1.8;
}
.fuel-buy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.fuel-buy-input {
  padding: 8px 12px;
  border: 1px solid #D1D5DB;
  border-radius: 6px;
  font-size: 14px;
  width: 160px;
  outline: none;
}
.fuel-buy-input:focus {
  border-color: #3B82F6;
}

/* ============ 维修/检修 ============ */
.maint-panel {
  background: #F9FAFB;
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.maint-panel-title {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  padding-bottom: 8px;
  border-bottom: 1px solid #E5E7EB;
}
/* 检修托管 */
.inspection-managed-area {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.inspection-managed-btn {
  font-size: 11px;
  padding: 3px 10px;
  border: 1px solid #D97706;
  background: #FFFBEB;
  color: #B45309;
  border-radius: 5px;
  cursor: pointer;
  white-space: nowrap;
  font-weight: 600;
}
.inspection-managed-btn:hover {
  background: #FEF3C7;
}
.inspection-managed-btn.active {
  background: #ECFDF5;
  border-color: #10B981;
  color: #047857;
  cursor: default;
}
.inspection-managed-progress {
  display: inline-flex;
  align-items: center;
}
.inspection-managed-bar {
  display: inline-block;
  width: 90px;
  height: 8px;
  background: #E5E7EB;
  border-radius: 4px;
  overflow: hidden;
}
.inspection-managed-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #34D399, #10B981);
  border-radius: 4px;
  transition: width 0.3s ease;
}
.maint-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  overflow-x: hidden;
}
.maint-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: #fff;
  border-radius: 6px;
  font-size: 13px;
}
.maint-item-name {
  font-weight: 600;
  color: #2563EB;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-style: dotted;
  min-width: 130px;
  flex-shrink: 0;
}
.maint-item-model {
  flex: 1;
  color: #6B7280;
  font-size: 12px;
  min-width: 120px;
}
.maint-item-val {
  font-size: 12px;
  font-weight: 500;
  min-width: 60px;
  text-align: right;
}
.maint-item-btn {
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 4px;
  border: 1px solid #D1D5DB;
  background: #fff;
  cursor: pointer;
  color: #374151;
}
.maint-item-btn:hover {
  background: #F3F4F6;
}
.maint-item-btn.primary {
  background: #3B82F6;
  color: #fff;
  border-color: #3B82F6;
}
.maint-item-btn.primary:hover {
  background: #2563EB;
}
.maint-item-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 检修面板：表头 */
.maint-item-header {
  background: transparent;
  font-size: 11px;
  font-weight: 600;
  color: #6B7280;
  padding: 6px 10px;
  border-bottom: 1px solid #E5E7EB;
  margin-bottom: 4px;
}
.maint-item-header .maint-item-name,
.maint-item-header .maint-item-model,
.maint-item-header .maint-item-val,
.maint-item-header .maint-item-airport-col,
.maint-item-header .maint-item-action-col {
  text-decoration: none;
  color: #6B7280;
  font-weight: 600;
  cursor: default;
  text-align: left;
}

/* 机场选择列 & 操作列 */
.maint-item-airport-col {
  min-width: 280px;
  flex: 1.2;
  display: flex;
  align-items: center;
}
.maint-item-action-col {
  min-width: 90px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
}

/* 维修列表项 */
.repair-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 10px;
  background: #fff;
  border-radius: 6px;
}
.repair-item-main {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.repair-item-model {
  flex: 1;
  color: #6B7280;
  font-size: 12px;
  min-width: 80px;
}
.repair-item-health {
  font-size: 13px;
  font-weight: 600;
  min-width: 42px;
  text-align: right;
}
.repair-item-status {
  font-size: 11px;
  font-weight: 500;
  min-width: 90px;
  text-align: right;
  white-space: nowrap;
}
.repair-progress-bar {
  width: 100%;
  height: 4px;
  background: #E5E7EB;
  border-radius: 2px;
  overflow: hidden;
}
.repair-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3B82F6, #60A5FA);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.book-inspection-select {
  width: 100%;
  min-width: 0;
  padding: 4px 8px;
  font-size: 12px;
  border: 1px solid #D1D5DB;
  border-radius: 4px;
  background: #fff;
  color: #374151;
  cursor: pointer;
}
.book-inspection-select:focus {
  outline: none;
  border-color: #3B82F6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}
.book-inspection-select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 飞机详情弹窗 */
.aircraft-detail-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid #F3F4F6;
  font-size: 13px;
}
.aircraft-detail-row:last-child { border-bottom: none; }
.aircraft-detail-label {
  color: #6B7280;
}
.aircraft-detail-value {
  color: #1F2937;
  font-weight: 500;
}
.aircraft-detail-value.good { color: #10B981; }
.aircraft-detail-value.warn { color: #F59E0B; }
.aircraft-detail-value.bad { color: #EF4444; }

/* 预约检修机场选择 */
.inspection-airport-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  margin-bottom: 6px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.15s;
}
.inspection-airport-option:hover {
  border-color: #3B82F6;
  background: #EFF6FF;
}
.inspection-airport-option.selected {
  border-color: #3B82F6;
  background: #DBEAFE;
}
.inspection-airport-option.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.inspection-airport-name { font-weight: 500; color: #1F2937; }
.inspection-airport-info { font-size: 12px; color: #6B7280; }

/* ========== FAQ帮助面板 ========== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.faq-item {
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item:hover {
  border-color: #93C5FD;
}

.faq-question {
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #1F2937;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  background: #F9FAFB;
  transition: background 0.2s;
}

.faq-question:hover {
  background: #EFF6FF;
}

.faq-question .faq-icon {
  font-size: 14px;
  color: #6B7280;
  transition: transform 0.25s ease;
  flex-shrink: 0;
  margin-left: 12px;
}

.faq-item.faq-open .faq-question .faq-icon {
  transform: rotate(45deg);
  color: #2563EB;
}

.faq-item.faq-open .faq-question {
  background: #EFF6FF;
  color: #1E40AF;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 16px;
  font-size: 13px;
  line-height: 1.7;
  color: #4B5563;
  background: #fff;
}

.faq-item.faq-open .faq-answer {
  max-height: 400px;
  padding: 12px 16px 14px;
  border-top: 1px solid #E5E7EB;
}

#help-dialog-body::-webkit-scrollbar {
  width: 6px;
}

#help-dialog-body::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 3px;
}

#help-dialog-body::-webkit-scrollbar-track {
  background: transparent;
}

/* 全员健康维护面板 */
.health-boost-panel {
  background: linear-gradient(135deg, #ECFDF5, #D1FAE5);
  border: 1px solid #A7F3D0;
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.health-boost-info {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
}
.health-boost-title {
  font-size: 15px;
  font-weight: 700;
  color: #065F46;
  margin-bottom: 4px;
}
.health-boost-desc {
  font-size: 12px;
  color: #047857;
  line-height: 1.5;
}
.health-boost-price {
  font-size: 18px;
  font-weight: 800;
  color: #DC2626;
  line-height: 1.2;
}
.health-boost-next {
  font-size: 11px;
  color: #6B7280;
  margin-top: 3px;
}
.health-boost-btn {
  flex-shrink: 0;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  background: #059669;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.health-boost-btn:hover:not(:disabled) {
  background: #047857;
  transform: translateY(-1px);
}
.health-boost-btn:disabled {
  background: #9CA3AF;
  cursor: not-allowed;
  opacity: 0.6;
}

/* 换机对话框列表项 */
.swap-aircraft-item {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  gap: 12px;
}
.swap-aircraft-item > div:first-child {
  flex: 1;
}
.swap-aircraft-item .swap-select-btn {
  flex-shrink: 0;
}

/* ========== 客舱布局弹窗 ========== */
.cabin-aircraft-info {
  background: #F3F4F6;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 14px;
}
.cabin-aircraft-info strong {
  color: #111827;
}
.cabin-capacity-bar {
  width: 100%;
  height: 12px;
  background: #E5E7EB;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 6px;
}
.cabin-capacity-fill {
  height: 100%;
  background: linear-gradient(90deg, #3B82F6, #2563EB);
  border-radius: 6px;
  transition: width 0.15s ease;
  width: 100%;
}
.cabin-capacity-label {
  font-size: 12px;
  color: #6B7280;
  margin-bottom: 16px;
  text-align: right;
}
.cabin-sliders {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 16px;
  width: 100%;
}
.cabin-slider-row {
  display: grid;
  grid-template-columns: 110px 1fr 50px;
  align-items: center;
  gap: 12px;
  width: 100%;
}
.cabin-slider-label {
  font-size: 13px;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  white-space: nowrap;
  overflow: hidden;
}
.cabin-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.cabin-tag-F { background: #DC2626; }
.cabin-tag-J { background: #D97706; }
.cabin-tag-S { background: #2563EB; }
.cabin-tag-Y { background: #6B7280; }
.cabin-slider-control {
  display: flex;
  align-items: center;
  width: 100%;
}
.cabin-slider-value {
  text-align: right;
  flex-shrink: 0;
  font-size: 13px;
  color: #374151;
  white-space: nowrap;
}
.cabin-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: #E5E7EB;
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}
.cabin-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #2563EB;
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.cabin-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #2563EB;
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.cabin-slider[data-class="F"]::-webkit-slider-thumb { background: #DC2626; }
.cabin-slider[data-class="J"]::-webkit-slider-thumb { background: #D97706; }
.cabin-slider[data-class="S"]::-webkit-slider-thumb { background: #2563EB; }
.cabin-slider[data-class="F"]::-moz-range-thumb { background: #DC2626; }
.cabin-slider[data-class="J"]::-moz-range-thumb { background: #D97706; }
.cabin-slider[data-class="S"]::-moz-range-thumb { background: #2563EB; }
.cabin-seat-count {
  font-weight: 700;
  color: #111827;
  min-width: 30px;
  text-align: right;
  font-size: 14px;
}
.cabin-y-row {
  opacity: 0.7;
}
.cabin-y-count {
  color: #6B7280;
}
.cabin-cost-display {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}
.cabin-cost-display strong {
  color: #1D4ED8;
  font-size: 16px;
}

/* 飞机列表客舱布局徽章 */
.cabin-layout-badge {
  font-size: 11px;
  color: #6B7280;
  background: #F3F4F6;
  padding: 2px 8px;
  border-radius: 4px;
  margin-right: auto;
  font-family: monospace;
}

/* ========== 包机模块颜色主题 ========== */
.module-charter .btn-primary {
  background: #D97706;
  border-color: #D97706;
}
.module-charter .btn-primary:hover {
  background: #B45309;
}
.module-charter .btn-primary:disabled {
  background: #D97706;
  border-color: #D97706;
  opacity: 0.5;
}
/* 超链接颜色 */
.module-charter a,
.module-charter .clickable-reg-name {
  color: #D97706 !important;
}
/* 选中状态/标签颜色 */
.module-charter .route-item.active,
.module-charter .airport-item.active {
  border-left-color: #D97706;
  background: #FEF3C7;
}
/* 表格选中行 */
.module-charter .route-weekly-table tr:hover {
  background: #FEF3C7;
}
/* 按钮选中/激活状态 */
.module-charter .legend-btn.active {
  background: #D97706;
  color: white;
  border-color: #D97706;
}
/* 下拉选框聚焦 */
.module-charter select:focus,
.module-charter input:focus {
  border-color: #D97706;
  outline-color: #D97706;
}
/* 标签页激活 */
.module-charter .tab.active {
  color: #D97706;
  border-bottom-color: #D97706;
}

/* ========== 货运模块颜色主题（预留扩展，主色#059669） ========== */
.module-cargo .btn-primary {
  background: #059669;
  border-color: #059669;
}
.module-cargo .btn-primary:hover {
  background: #047857;
}
.module-cargo .btn-primary:disabled {
  background: #059669;
  border-color: #059669;
  opacity: 0.5;
}
.module-cargo a,
.module-cargo .clickable-reg-name {
  color: #059669 !important;
}
.module-cargo .route-item.active,
.module-cargo .airport-item.active {
  border-left-color: #059669;
  background: #D1FAE5;
}
.module-cargo .route-weekly-table tr:hover {
  background: #D1FAE5;
}
.module-cargo .legend-btn.active {
  background: #059669;
  color: white;
  border-color: #059669;
}
.module-cargo select:focus,
.module-cargo input:focus {
  border-color: #059669;
  outline-color: #059669;
}
.module-cargo .tab.active {
  color: #059669;
  border-bottom-color: #059669;
}

/* ========== 通用图例按钮激活状态 ========== */
.legend-btn.active {
  background: #2563EB;
  color: #fff;
  border-color: #2563EB;
}

/* ========== 包机订单系统 ========== */
.order-level-group {
  margin-bottom: 8px;
}
.order-level-header {
  user-select: none;
  transition: background 0.2s;
}
.order-level-header:hover {
  filter: brightness(0.97);
}
.order-card {
  transition: all 0.2s ease;
}
.order-card:hover {
  transform: translateX(2px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* 价格谈判升级按钮动画 */
#btn-charter-neg-upgrade {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
#btn-charter-neg-upgrade:hover:not(:disabled) {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}
#btn-charter-neg-upgrade:active:not(:disabled) {
  transform: scale(0.95);
}
#btn-charter-neg-upgrade:disabled {
  cursor: not-allowed;
}

/* 升级成功闪光动画 */
@keyframes neg-upgrade-flash {
  0% { background-color: #F59E0B; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  50% { background-color: #10B981; box-shadow: 0 0 12px 4px rgba(16, 185, 129, 0.5); }
  100% { background-color: #F59E0B; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
#btn-charter-neg-upgrade.neg-upgrade-success {
  animation: neg-upgrade-flash 0.8s ease-out;
}

/* 按钮点击波纹效果 */
@keyframes neg-ripple {
  0% { transform: scale(0); opacity: 1; }
  100% { transform: scale(4); opacity: 0; }
}
.neg-ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  pointer-events: none;
  animation: neg-ripple 0.6s ease-out;
}

/* 已接受订单高亮呼吸效果 */
@keyframes order-accepted-pulse {
  0%, 100% { box-shadow: 0 0 4px rgba(16, 185, 129, 0.2); }
  50% { box-shadow: 0 0 10px rgba(16, 185, 129, 0.35); }
}
.order-card.order-accepted {
  animation: order-accepted-pulse 2s ease-in-out infinite;
}

/* ========== 订单排班面板 ========== */
.scheduling-order-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid #D1D5DB;
  border-radius: 4px;
  margin-bottom: 6px;
  cursor: grab;
  font-size: 12px;
  transition: all 0.15s;
}
.scheduling-order-item:hover {
  background: #F0F9FF;
  border-color: #3B82F6;
}
.scheduling-order-item:active {
  cursor: grabbing;
}
.scheduling-order-item.dragging {
  opacity: 0.5;
}
.scheduling-order-item .order-route {
  font-weight: 600;
  flex: 1;
}
.scheduling-order-item .order-time {
  color: #6B7280;
  font-size: 11px;
}
.scheduling-order-item .remove-btn {
  color: #EF4444;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 14px;
}
.scheduling-order-item .remove-btn:hover {
  background: #FEE2E2;
}
.scheduling-aircraft-option {
  padding: 8px 10px;
  cursor: pointer;
  font-size: 12px;
  border-bottom: 1px solid #F3F4F6;
}
.scheduling-aircraft-option:hover {
  background: #EFF6FF;
}
.scheduling-aircraft-option.selected {
  background: #DBEAFE;
}
.scheduling-preview-flight {
  padding: 4px 0;
  border-bottom: 1px dashed #E5E7EB;
}
.scheduling-preview-flight:last-child {
  border-bottom: none;
}
.scheduling-preview-flight.transition {
  color: #9CA3AF;
  font-style: italic;
}

/* 包机模块航班行背景（30%透明度金色） */
.flight-row-charter {
  background-color: rgba(217, 119, 6, 0.3) !important;
}

/* ==================== 时刻表甘特图视图（7天周视图） ==================== */
.gantt-container {
  width: 100%;
  font-size: 12px;
  user-select: none;
}

/* ===== 多选操作栏 ===== */
.gantt-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  margin-bottom: 4px;
  border-bottom: 1px solid #F3F4F6;
  flex-wrap: wrap;
  gap: 6px;
}
.gantt-action-left {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.gantt-action-hint {
  font-size: 11px;
  color: #9CA3AF;
}
.gantt-sel-count {
  font-size: 12px;
  color: #2563EB;
  font-weight: 600;
  margin-right: 4px;
}

/* ===== 缩放栏 ===== */
.gantt-zoom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0;
  margin-bottom: 6px;
}
.gantt-zoom-left {
  display: flex;
  align-items: center;
  gap: 6px;
}
.gantt-zoom-title {
  font-size: 12px;
  color: #6B7280;
  font-weight: 500;
}
.gantt-zoom-label {
  font-size: 11px;
  color: #6B7280;
  min-width: 40px;
  text-align: center;
}
.gantt-zoom-hint {
  font-size: 11px;
  color: #9CA3AF;
}

/* ===== 周视图包装 ===== */
.gantt-week-wrapper {
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  overflow: hidden;
}

/* ===== 星期表头 ===== */
.gantt-week-header {
  display: flex;
  border-bottom: 2px solid #E5E7EB;
  background: #F9FAFB;
}
.gantt-corner-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #6B7280;
  font-size: 12px;
  border-right: 1px solid #E5E7EB;
  background: #F3F4F6;
}
.gantt-day-header {
  width: 98px;
  flex-shrink: 0;
  padding: 6px 4px;
  text-align: center;
  cursor: pointer;
  border-right: 1px solid #E5E7EB;
  transition: background 0.15s;
}
.gantt-day-header:last-child { border-right: none; }
.gantt-day-header:hover { background: #EFF6FF; }
.gantt-day-name {
  font-weight: 600;
  font-size: 13px;
  color: #374151;
}
.gantt-day-count {
  font-size: 11px;
  color: #9CA3AF;
  margin-top: 2px;
}

/* ===== 滚动区域 ===== */
.gantt-week-hscroll {
  overflow-x: auto;
  overflow-y: auto;
  max-height: 560px;
}
.gantt-week-body {
  position: relative;
}

/* ===== 时间列（sticky left） ===== */
.gantt-time-col {
  position: absolute;
  left: 0;
  top: 0;
  background: #F9FAFB;
  border-right: 1px solid #E5E7EB;
  z-index: 5;
}
.gantt-hour-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: #E5E7EB;
}
.gantt-time-label {
  position: absolute;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 10px;
  color: #6B7280;
  font-weight: 500;
}

/* ===== 天列区域 ===== */
.gantt-day-cols {
  position: absolute;
  top: 0;
  display: flex;
}
.gantt-day-col {
  position: relative;
  border-right: 1px solid #F3F4F6;
  background: #fff;
}
.gantt-day-col:last-child { border-right: none; }
.gantt-day-col.active {
  background: #F0F7FF;
}

/* ===== 航班条 ===== */
.gantt-bar {
  position: absolute;
  left: 4px;
  right: 4px;
  border-radius: 4px;
  padding: 3px 6px;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  overflow: hidden;
  z-index: 3;
  transition: box-shadow 0.15s, transform 0.1s;
  border: 1px solid rgba(0,0,0,0.1);
}
.gantt-bar:hover {
  box-shadow: 0 3px 10px rgba(0,0,0,0.25);
  transform: scale(1.01);
  z-index: 6;
}
.gantt-bar-selected {
  outline: 2px solid #F59E0B;
  outline-offset: 1px;
  z-index: 4;
}
.gantt-bar-from {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.gantt-bar-to {
  font-size: 10px;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0.92;
  padding-left: 4px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.gantt-bar-time {
  font-size: 9px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0.85;
  margin-top: 1px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* ===== 跨天航班 ===== */
.gantt-crossday {
  border-bottom: 2px dashed rgba(255,255,255,0.7);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.gantt-continuation {
  border-top: 2px dashed rgba(255,255,255,0.7);
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
.gantt-cont-label {
  position: absolute;
  top: 1px;
  right: 3px;
  font-size: 9px;
  background: rgba(34,197,94,0.9);
  color: #fff;
  padding: 0 4px;
  border-radius: 2px;
  font-weight: 700;
  line-height: 14px;
}

.gantt-temp-badge {
  position: absolute;
  bottom: 2px;
  right: 3px;
  font-size: 9px;
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: #fff;
  padding: 0 4px;
  border-radius: 2px;
  font-weight: 700;
  line-height: 13px;
  letter-spacing: 0.5px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* ===== 校验标记 ===== */
.gantt-verify-error {
  border: 3px solid #DC2626 !important;
  box-shadow: 0 0 0 1px rgba(220,38,38,0.3), 0 0 14px rgba(220,38,38,0.7), inset 0 0 8px rgba(220,38,38,0.15);
  animation: gantt-error-pulse 1.5s ease-in-out infinite;
}
.gantt-verify-warning {
  border: 3px solid #D97706 !important;
  box-shadow: 0 0 0 1px rgba(217,119,6,0.3), 0 0 14px rgba(217,119,6,0.7), inset 0 0 8px rgba(217,119,6,0.15);
}
@keyframes gantt-error-pulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(220,38,38,0.3), 0 0 14px rgba(220,38,38,0.7), inset 0 0 8px rgba(220,38,38,0.15); }
  50% { box-shadow: 0 0 0 2px rgba(220,38,38,0.5), 0 0 22px rgba(220,38,38,0.9), inset 0 0 12px rgba(220,38,38,0.25); }
}
.gantt-verify-icon {
  position: absolute;
  top: -9px;
  left: -7px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  line-height: 22px;
  color: #fff;
  z-index: 8;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4), 0 0 0 2px #fff;
}
.gantt-verify-icon.error { background: linear-gradient(135deg, #EF4444, #DC2626); }
.gantt-verify-icon.warning { background: linear-gradient(135deg, #F59E0B, #D97706); }
.gantt-cancelled {
  opacity: 0.45;
  text-decoration: line-through;
}

/* ===== 日期表头校验圆点 ===== */
.gantt-day-verify {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-left: 3px;
  vertical-align: middle;
}
.gantt-day-verify.error { background: #EF4444; box-shadow: 0 0 4px rgba(239,68,68,0.6); }
.gantt-day-verify.warning { background: #F59E0B; box-shadow: 0 0 4px rgba(245,158,11,0.6); }

/* ===== 间隔填充 ===== */
.gantt-turnaround {
  position: absolute;
  left: 4px;
  right: 4px;
  z-index: 1;
  border-radius: 2px;
  box-sizing: border-box;
  border-left: 1px dashed transparent;
  border-right: 1px dashed transparent;
}
.gantt-interval-yellow {
  background: repeating-linear-gradient(45deg, rgba(254,243,199,0.7), rgba(254,243,199,0.7) 5px, rgba(253,224,71,0.5) 5px, rgba(253,224,71,0.5) 10px);
  border-left-color: #F59E0B;
  border-right-color: #F59E0B;
}
.gantt-interval-blue {
  background: repeating-linear-gradient(45deg, rgba(219,234,254,0.6), rgba(219,234,254,0.6) 5px, rgba(147,197,253,0.4) 5px, rgba(147,197,253,0.4) 10px);
  border-left-color: #3B82F6;
  border-right-color: #3B82F6;
}
.gantt-interval-green {
  background: repeating-linear-gradient(45deg, rgba(220,252,231,0.6), rgba(220,252,231,0.6) 5px, rgba(134,239,172,0.4) 5px, rgba(134,239,172,0.4) 10px);
  border-left-color: #22C55E;
  border-right-color: #22C55E;
}

/* ===== 当前时间线 ===== */
.gantt-now-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: #EF4444;
  z-index: 5;
  box-shadow: 0 0 6px rgba(239,68,68,0.7);
}
.gantt-now-line::before {
  content: '';
  position: absolute;
  left: -3px;
  top: -3px;
  width: 8px;
  height: 8px;
  background: #EF4444;
  border-radius: 50%;
}

/* ===== Tooltip ===== */
.gantt-tooltip {
  position: fixed;
  background: rgba(17,24,39,0.96);
  color: #fff;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 12px;
  z-index: 10000;
  pointer-events: none;
  min-width: 200px;
  max-width: 280px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
}
.gantt-tip-title {
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  color: #FBBF24;
}
.gantt-tip-row {
  display: flex;
  justify-content: space-between;
  padding: 2px 0;
  font-size: 11px;
}
.gantt-tip-row span:first-child {
  color: #9CA3AF;
}
.gantt-tip-row span:last-child {
  color: #fff;
  font-weight: 500;
}
.gantt-tip-issues {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.gantt-tip-issue {
  font-size: 11px;
  padding: 2px 0;
}
.gantt-tip-issue.error { color: #FCA5A5; }
.gantt-tip-issue.warning { color: #FCD34D; }
.gantt-tip-hint {
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 10px;
  color: #6B7280;
  text-align: center;
}

/* ========== 机队管理（订单托管） ========== */
.fleet-management-panel {
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  background: #FAFAFA;
  overflow: hidden;
  flex-shrink: 0;
}
.fleet-management-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #F3F4F6;
  border-bottom: 1px solid #E5E7EB;
  cursor: pointer;
  user-select: none;
}
.fleet-management-header:hover { background: #E5E7EB; }
.fleet-total-badge {
  font-size: 11px;
  background: #3B82F6;
  color: #fff;
  padding: 1px 7px;
  border-radius: 8px;
  font-weight: 600;
}
.fleet-toggle-icon {
  font-size: 12px;
  color: #6B7280;
  transition: transform 0.2s;
}
.fleet-management-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.fleet-available-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fleet-available-title {
  font-size: 12px;
  color: #6B7280;
}
.fleet-available-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 40px;
  padding: 8px;
  background: #fff;
  border: 1px dashed #D1D5DB;
  border-radius: 6px;
}
.fleet-available-aircraft-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: #FEF3C7;
  border: 1px solid #FCD34D;
  border-radius: 4px;
  font-size: 11px;
  color: #92400E;
  cursor: grab;
  user-select: none;
  transition: all 0.15s;
}
.fleet-available-aircraft-item:hover { background: #FDE68A; }
.fleet-available-aircraft-item:active { cursor: grabbing; }
.fleet-available-aircraft-item.dragging { opacity: 0.5; }
.fleet-levels {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fleet-level-card {
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  padding: 8px 10px;
  background: #fff;
  min-height: 60px;
  transition: all 0.15s;
}
.fleet-level-card.drag-over {
  border-color: #3B82F6;
  background: #EFF6FF;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}
.fleet-level-card.locked {
  background: #F9FAFB;
  opacity: 0.75;
  cursor: not-allowed;
}
.fleet-level-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
}
.fleet-aircraft-card {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: 4px;
  font-size: 11px;
  color: #1E40AF;
  margin: 2px;
}
.fleet-aircraft-card .fleet-remove {
  color: #EF4444;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
  border-radius: 3px;
}
.fleet-aircraft-card .fleet-remove:hover { color: #B91C1C; background: #FEE2E2; }

/* 玩家自建机场标记 */
.airport-item.player-built .level-badge {
  background: linear-gradient(135deg, #F59E0B, #D97706) !important;
}
.built-badge {
  font-size: 14px;
  margin-left: 4px;
  cursor: help;
}

/* ========== 手动排班折叠区域 ========== */
.manual-scheduling-panel {
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  background: #FAFAFA;
  overflow: hidden;
  flex-shrink: 0;
}
.manual-scheduling-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #F3F4F6;
  border-bottom: 1px solid #E5E7EB;
  cursor: pointer;
  user-select: none;
}
.manual-scheduling-header:hover {
  background: #E5E7EB;
}
.manual-scheduling-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ========== 新建机场功能 ========== */
.btn-build-airport {
  background: linear-gradient(135deg, #10B981, #059669);
  color: #fff;
  border: none;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-build-airport:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}
.btn-build-airport:active {
  transform: translateY(0);
}

.build-airport-types {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.build-airport-type-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 2px solid #E5E7EB;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  background: #fff;
}
.build-airport-type-card:hover {
  border-color: #3B82F6;
  background: #EFF6FF;
  transform: translateX(4px);
}
.build-airport-type-card.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.build-airport-type-card.disabled:hover {
  border-color: #E5E7EB;
  background: #fff;
  transform: none;
}
.build-airport-type-icon {
  font-size: 28px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  flex-shrink: 0;
}
.build-airport-type-info {
  flex: 1;
}
.build-airport-type-name {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 4px;
}
.build-airport-type-stats {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: #6B7280;
}
.build-airport-type-stats span {
  display: flex;
  align-items: center;
  gap: 3px;
}
.build-airport-type-cost {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.build-airport-type-money {
  font-size: 16px;
  font-weight: 700;
  color: #DC2626;
  line-height: 1.1;
}
.build-airport-type-points {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #6D28D9;
  background: #F5F3FF;
  border: 1px solid #DDD6FE;
  padding: 2px 8px;
  border-radius: 10px;
  line-height: 1.1;
}
.build-points-icon {
  display: block;
}

/* 建造模式提示 */
.build-mode-hint {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  background: rgba(17, 24, 39, 0.95);
  color: #fff;
  padding: 12px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  min-width: 400px;
}
.build-mode-hint-content {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.build-mode-hint-icon {
  font-size: 20px;
}
.build-mode-hint-text {
  flex: 1;
  font-size: 13px;
}
.build-mode-hint-text kbd {
  background: #374151;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 12px;
  border: 1px solid #4B5563;
}
.build-mode-cancel {
  background: #EF4444;
  color: #fff;
  border: none;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s;
}
.build-mode-cancel:hover {
  background: #DC2626;
}
.build-progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  overflow: hidden;
}
.build-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10B981, #34D399);
  border-radius: 3px;
  width: 0%;
  transition: width 0.1s linear;
}

/* 建造准星光标 */
.build-crosshair-cursor {
  cursor: crosshair !important;
}

/* 玩家自建机场标记 */
.airport-item.player-built .level-badge {
  background: linear-gradient(135deg, #F59E0B, #D97706) !important;
}
.airport-item.player-built::after {
  content: '🏗️';
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 14px;
}

/* ========== 资产与市值面板 ========== */
.asset-summary-row {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
}
.asset-summary-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px;
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
}
.asset-summary-item:last-child {
  background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
  border-color: #BFDBFE;
}
.asset-summary-label {
  font-size: 12px;
  color: #6B7280;
  margin-bottom: 4px;
}
.asset-summary-value {
  font-size: 20px;
  font-weight: 700;
  color: #1D4ED8;
}
.asset-summary-value.mv {
  color: #1E40AF;
}
.asset-summary-formula {
  font-size: 10px;
  color: #6B7280;
  margin-top: 4px;
}
.mv-chart-container {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  padding: 10px;
  margin-bottom: 12px;
}
.mv-chart-title {
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}
.mv-chart {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.mv-chart-wrap {
  position: relative;
  width: 100%;
}
.mv-chart .mv-dot {
  transition: r 0.12s ease;
}
.mv-point:hover .mv-dot {
  r: 5;
}
.mv-tooltip {
  position: absolute;
  pointer-events: none;
  z-index: 20;
  background: rgba(17, 24, 39, 0.92);
  color: #fff;
  padding: 5px 9px;
  border-radius: 5px;
  font-size: 11px;
  line-height: 1.5;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.mv-tip-date {
  color: #93C5FD;
  font-weight: 600;
}
.mv-tip-val {
  font-weight: 600;
}
.mv-chart-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #9CA3AF;
  margin-top: 4px;
}
.asset-section-divider {
  height: 1px;
  background: #E5E7EB;
  margin: 12px 0;
}

/* ========== 购机确认面板 ========== */
.buy-confirm-dialog {
  min-width: 480px;
}
.buy-confirm-price-summary {
  margin-top: 16px;
  padding: 12px;
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
}
.buy-confirm-price-summary .price-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 13px;
  color: #374151;
}
.buy-confirm-price-summary .price-row.total {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 2px solid #E5E7EB;
  font-weight: 700;
  font-size: 15px;
  color: #1D4ED8;
}
#buy-confirm-cabin-config {
  margin-top: 8px;
}
#buy-confirm-cabin-config .cabin-slider-row {
  margin-bottom: 8px;
}

/* ========== 里程碑系统 ========== */
.ms-dialog {
  width: 960px;
  max-width: 94vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
}
.ms-summary {
  flex-shrink: 0;
  padding: 10px 18px;
  margin: 0;
  background: linear-gradient(90deg, #F5F3FF, #EDE9FE);
  border-bottom: 1px solid #DDD6FE;
  font-size: 13px;
  font-weight: 600;
  color: #5B21B6;
}
.ms-body {
  overflow-y: auto;
  padding: 14px 18px 20px;
  background: #F9FAFB;
}
.ms-cat {
  margin-bottom: 18px;
}
.ms-cat-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding-bottom: 5px;
  border-bottom: 2px solid #E5E7EB;
}
.ms-cat-name {
  font-size: 14px;
  font-weight: bold;
  color: #374151;
}
.ms-cat-count {
  font-size: 11px;
  font-weight: 600;
  color: #6B7280;
  background: #F3F4F6;
  padding: 1px 8px;
  border-radius: 10px;
}
.ms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.ms-card {
  border-radius: 8px;
  padding: 9px 11px;
  border: 1px solid #E5E7EB;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: box-shadow 0.15s, transform 0.15s;
}
.ms-card.ms-todo {
  opacity: 0.92;
}
.ms-card.ms-done {
  background: #ECFDF5;
  border-color: #A7F3D0;
  box-shadow: 0 0 0 1px rgba(16,185,129,0.15);
}
.ms-card.ms-done:hover {
  box-shadow: 0 2px 10px rgba(16,185,129,0.25);
}
.ms-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.ms-card-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
}
.ms-card-icon svg {
  display: block;
  width: 40px;
  height: 40px;
}
.ms-icon {
  font-size: 15px;
  line-height: 1;
}
.ms-card-name {
  font-size: 13px;
  font-weight: bold;
  color: #111827;
  line-height: 1.3;
  flex: 1;
  min-width: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ms-card.ms-done .ms-card-name {
  color: #047857;
}
.ms-card-desc {
  font-size: 11px;
  color: #6B7280;
  line-height: 1.45;
  min-height: 30px;
}
.ms-card.ms-done .ms-card-desc {
  color: #059669;
}
.ms-prog {
  height: 5px;
  background: #E5E7EB;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 2px;
}
.ms-prog-bar {
  height: 100%;
  background: linear-gradient(90deg, #8B5CF6, #7C3AED);
  border-radius: 3px;
  transition: width 0.3s;
}
.ms-prog-text {
  font-size: 10px;
  color: #9CA3AF;
  text-align: right;
}
.ms-card-reward {
  font-size: 10px;
  font-weight: 600;
  color: #059669;
  margin-top: 2px;
}
.ms-card-reward.ms-reward-todo {
  color: #9CA3AF;
}
/* 卡片原位更新时保持玩家的列表滚动位置。 */
#panel-aircrafts { overflow-anchor: none; }

/* ===== 购买飞机面板：二手机市场风格卡片 ===== */
.economy-kicker {
  font-size: 12px;
  font-weight: bold;
  color: #059669;
  letter-spacing: 1px;
}
.buy-cards-grid {
  display: block;
  padding: 4px 4px 16px;
}
.buy-cat-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 10px 0 8px;
}
.buy-cat-head:first-child { margin-top: 0; }
.buy-cat-count { font-size: 12px; color: #9CA3AF; }
.buy-cat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}
.buy-card {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  transition: box-shadow .15s, border-color .15s;
}
.buy-card:hover { border-color: #BFDBFE; box-shadow: 0 4px 14px rgba(59,130,246,.12); }
.buy-card.is-locked { background: #F9FAFB; }
.buy-card-top { display: flex; justify-content: center; align-items: center; }
.buy-card-name { font-size: 17px; font-weight: bold; color: #111827; }
.buy-card-cat {
  font-size: 11px; color: #6B7280; background: #F3F4F6;
  padding: 2px 8px; border-radius: 999px;
}
.buy-card-spec { font-size: 12px; color: #6B7280; line-height: 1.5; }
.buy-card-price { display: flex; align-items: baseline; gap: 6px; margin-top: 2px; }
.buy-price-value { font-size: 24px; font-weight: 800; color: #16A34A; }
.buy-price-unit { font-size: 13px; color: #6B7280; }
.buy-price-inflation {
  font-size: 11px; color: #DC2626; background: #FEF2F2;
  padding: 1px 6px; border-radius: 999px;
}
.buy-card-btn {
  margin-top: 4px;
  padding: 9px 0;
  border: none;
  border-radius: 7px;
  background: #2563EB;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.buy-card-btn:hover { background: #1D4ED8; }
.buy-card-btn.disabled, .buy-card-btn:disabled {
  background: #E5E7EB; color: #9CA3AF; cursor: not-allowed;
}

/* 矮续段（凌晨很早到达）：标签缩小贴顶，不撑高、不压下方航班 */
.gantt-cont-short { overflow: visible; }
.gantt-cont-short .gantt-cont-label {
  top: 0;
  right: 2px;
  line-height: 11px;
  padding: 0 3px;
}

/* 航线详情：两列卡片（左客流 / 右基础信息+快线），面板收窄 */
.route-detail-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
#route-detail-dialog .dialog {
  width: 780px;
  max-width: 94vw;
}

/* 去升级机场（快线未开通时） */
.go-upgrade-airport { margin-top: 4px; }
.go-upgrade-hint { font-size: 12px; color: #B45309; margin-bottom: 8px; }
.go-upgrade-row { display: flex; gap: 8px; align-items: center; }
.go-upgrade-select {
  flex: 1; padding: 6px 8px; font-size: 12px;
  border: 1px solid #D1D5DB; border-radius: 6px; background: #fff;
}
.go-upgrade-row .btn-sm { padding: 6px 12px; font-size: 12px; white-space: nowrap; }
/* 语言切换 */
.lang-switcher {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1000;
}
.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 20px;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all 0.2s;
}
.lang-btn:hover {
  background: rgba(255,255,255,0.25);
}
.lang-dropdown {
  position: absolute;
  top: 42px;
  right: 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  overflow: hidden;
  min-width: 160px;
}
.lang-option {
  padding: 10px 16px;
  cursor: pointer;
  font-size: 13px;
  color: #374151;
  transition: background 0.15s;
}
.lang-option:hover {
  background: #F3F4F6;
}
.start-region-dialog {
  width: min(760px, calc(100vw - 24px));
  min-width: 0;
  max-height: min(88vh, 800px);
  display: flex;
  flex-direction: column;
}
#start-region-dialog { z-index: 100001; }
.start-region-dialog .dialog-body { overflow-y: auto; }
.start-region-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 22px; }
.start-region-group h4 { font-size: 13px; color: #374151; margin: 0 0 8px; }
.start-region-choices { display: grid; gap: 7px; }
.start-region-choice {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  width: 100%;
  min-height: 54px;
  padding: 9px 11px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
  color: #111827;
  cursor: pointer;
  text-align: left;
}
.start-region-choice:hover { border-color: #64748b; background: #f8fafc; }
.start-region-choice.selected { border-color: #2563eb; background: #eff6ff; box-shadow: inset 3px 0 #2563eb; }
.start-region-choice:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
.start-region-choice strong { font-size: 13px; line-height: 1.3; }
.start-region-choice small { font-size: 11px; color: #64748b; line-height: 1.3; }
.start-region-footer { display: flex; align-items: center; gap: 8px; }
.start-region-footer #start-region-selected { margin-right: auto; font-size: 12px; color: #475569; }
@media (max-width: 620px) {
  .start-region-list { grid-template-columns: minmax(0, 1fr); }
  .start-region-footer { flex-wrap: wrap; }
  .start-region-footer #start-region-selected { flex-basis: 100%; }
}

/* V2.0封面底图：隐藏装饰动画 */
.cover-screen .cover-stars,
.cover-screen .cover-clouds,
.cover-screen .cover-contrails { display: none !important; }


/* V2.0购买面板图片列 */
.aircraft-category-row td {
  background: linear-gradient(90deg, #DBEAFE 0%, #FFFFFF 100%);
  color: #1E3A5F;
  font-weight: 600;
  font-size: 13px;
  padding: 8px 16px;
  text-align: center !important;
  font-family: Arial, "Microsoft YaHei", "SimHei", sans-serif;
}
.aircraft-category-row .cat-name {
  font-weight: 600;
  margin-right: 8px;
}
.aircraft-category-row .cat-count {
  font-size: 11px;
  font-weight: 400;
  background: rgba(59,130,246,0.15);
  padding: 2px 10px;
  border-radius: 12px;
}

/* 购买面板字体：英文数字Arial，中文黑体 */
.buy-aircraft-dialog .aircraft-table {
  font-family: Arial, "Microsoft YaHei", "SimHei", sans-serif;
}
.buy-aircraft-dialog .aircraft-table td,
.buy-aircraft-dialog .aircraft-table th {
  font-family: Arial, "Microsoft YaHei", "SimHei", sans-serif;
}

.col-photo { width: 64px; padding: 4px 8px !important; }
.col-photo img { width: 56px; height: 28px; object-fit: contain; display: block; margin: 0 auto; }


/* ========== 货运模块 Arial 字体 ========== */
.cargo-dialog, .cargo-dialog *,
#cargo-aircraft-market-dialog, #cargo-aircraft-market-dialog *,
.cargo-order-card, .cargo-order-card *,
.cargo-route-card, .cargo-route-card *,
.cargo-airport-card, .cargo-airport-card *,
.cargo-purchase-detail, .cargo-purchase-detail *,
.cargo-requirement-label, .cargo-requirement-progress, .cargo-requirement-status,
.cargo-market-filters, .cargo-market-filters *,
.cargo-section-title, .cargo-section-title *,
.cargo-auto-types, .cargo-auto-types *,
.cargo-auto-switches, .cargo-auto-switches *,
#cargo-automation-form, #cargo-automation-form *,
#cargo-automation-log, #cargo-automation-log *,
.cargo-market-offer, .cargo-market-offer *,
.market-offer, .market-offer * {
  font-family: Arial, 'Microsoft YaHei', SimHei, sans-serif;
}

/* 货运模块数字和英文强制Arial */
.cargo-dialog .col-num,
.cargo-dialog .col-price,
.cargo-dialog .price-value,
.cargo-dialog .model-name-cell,
.cargo-dialog .cat-tag,
#cargo-aircraft-market-dialog .col-num,
#cargo-aircraft-market-dialog .col-price,
#cargo-aircraft-market-dialog .price-value {
  font-family: Arial, sans-serif;
}
