/* ===== 浅色简约主题 ===== */
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: #f6f7fb;
  color: #1f2937;
  font-size: 14px;
  line-height: 1.5;
}

/* ---- 主页专用：顶栏 & 画布 ---- */
.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 20px;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
}
.topbar .title { font-weight: 600; font-size: 16px; color: #111827; }
.topbar select, .topbar button, .topbar label, .topbar input {
  font-family: inherit;
  font-size: 13px;
}
.topbar .spacer { flex: 1; }
select, input[type=number], input[type=text], textarea {
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  padding: 6px 10px;
  color: #111827;
  transition: border-color 0.12s, box-shadow 0.12s;
  outline: none;
}
select:focus, input:focus, textarea:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}
.btn {
  border: 1px solid #d1d5db;
  background: #fff;
  color: #111827;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.12s;
}
.btn:hover { background: #f3f4f6; border-color: #9ca3af; }
.btn-primary {
  background: #3b82f6;
  border-color: #2563eb;
  color: #fff;
}
.btn-primary:hover { background: #2563eb; border-color: #1d4ed8; }
.btn-ghost { background: transparent; border-color: transparent; color: #6b7280; }
.btn-ghost:hover { background: #f3f4f6; color: #111827; }
.btn-danger {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fecaca;
}
.btn-danger:hover { background: #fecaca; border-color: #fca5a5; }
.btn-link {
  background: transparent;
  border: none;
  color: #2563eb;
  padding: 4px 8px;
  cursor: pointer;
  border-radius: 6px;
  font-size: 13px;
}
.btn-link:hover { background: #eff6ff; }

/* 仿真画布容器 */
.canvas-wrap {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 14px;
  background: linear-gradient(180deg, #e0f2fe 0%, #f0fdf4 100%);
  position: relative;
}
canvas#sim {
  width: 100%;
  max-width: 1280px;
  aspect-ratio: 16 / 7;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(15,23,42,0.06), 0 0 0 1px rgba(15,23,42,0.04) inset;
}

/* 控制面板 */
.controls {
  display: flex;
  gap: 10px;
  padding: 12px 20px 18px;
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  flex-wrap: wrap;
}
.ctrl-pair {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 6px 10px;
  background: #f9fafb;
}
.ctrl-pair label { font-size: 12px; color: #6b7280; }
.ctrl-pair .ctrl-val { font-weight: 600; color: #111827; min-width: 48px; text-align: right; }
.ctrl-btns { display: flex; gap: 4px; }
.ctrl-btns button {
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
}
.ctrl-btns button:hover { background: #eff6ff; border-color: #3b82f6; color: #1d4ed8; }
.ctrl-btns button.active {
  background: #3b82f6;
  color: #fff;
  border-color: #2563eb;
}

/* HUD */
.hud {
  position: absolute;
  top: 24px;
  left: 24px;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(6px);
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 4px 18px;
  font-size: 12px;
  color: #1f2937;
  font-variant-numeric: tabular-nums;
}
.hud .k { color: #6b7280; }
.hud .v { color: #111827; font-weight: 600; }
.hud .warn { color: #b91c1c; font-weight: 600; grid-column: 1 / 3; }

/* Checklist */
.cklist {
  position: absolute;
  top: 24px;
  right: 24px;
  max-width: 260px;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 12px;
  color: #1f2937;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.cklist h3 { margin: 0 0 6px; font-size: 13px; color: #111827; }
.cklist ul { margin: 0; padding: 0 0 0 18px; }
.cklist li.done { color: #047857; text-decoration: line-through; opacity: 0.75; }
.cklist li.active { color: #1d4ed8; font-weight: 600; }

/* 事件消息 */
.event-msg {
  position: absolute;
  left: 50%;
  top: 20%;
  transform: translateX(-50%);
  background: rgba(17,24,39,0.85);
  color: #fff;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
}
.event-msg.show { opacity: 1; transform: translate(-50%, 14px); }
.event-msg.ok    { background: rgba(16,185,129,0.92); }
.event-msg.bad   { background: rgba(220,38,38,0.92); }
.event-msg.warn  { background: rgba(245,158,11,0.92); }

/* =========================================================
   管理端 admin.html — v2 重构：两栏布局 + 表单合并 + 实时预览
   ========================================================= */
.admin-root {
  padding: 28px 24px 40px 332px;
  min-height: 100vh;
  background: #f5f7fa;
  box-sizing: border-box;
  overflow-x: hidden;
  max-width: 100%;
}

/* ── 左侧悬浮侧栏（可拖动） ── */
.admin-sidebar {
  position: fixed;
  left: 24px;
  top: 28px;
  width: 280px;
  height: calc(100vh - 56px);
  background: #ffffff;
  border: 1px solid #e0e6ed;
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
  z-index: 100;
}
.admin-sidebar.dragging {
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
  transition: none;
}
.admin-sidebar .sb-head {
  padding: 14px 16px 12px;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #fff;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.admin-sidebar .sb-head:active { cursor: grabbing; }
.admin-sidebar.dragging .sb-head { cursor: grabbing; }
.admin-sidebar .sb-head h1 {
  margin: 0;
  font-size: 15px;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 6px;
}
.admin-sidebar .sb-search {
  padding: 10px 12px;
  border-bottom: 1px solid #eef2f6;
}
.admin-sidebar .sb-search input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 13px;
  background: #f9fafb;
  outline: none;
  transition: all 0.15s;
}
.admin-sidebar .sb-search input:focus {
  border-color: #2563eb;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.admin-sidebar .sb-actions {
  display: flex;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid #eef2f6;
}
.admin-sidebar .sb-actions .btn {
  flex: 1;
  justify-content: center;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 600;
}
.admin-sidebar .sb-stats {
  padding: 6px 12px;
  font-size: 11px;
  color: #9ca3af;
  border-bottom: 1px solid #eef2f6;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.admin-sidebar .sb-list {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 8px 12px;
}
.admin-sidebar .sb-list::-webkit-scrollbar { width: 5px; }
.admin-sidebar .sb-list::-webkit-scrollbar-thumb { background: #cfd7df; border-radius: 3px; }
.admin-sidebar .sb-list::-webkit-scrollbar-track { background: transparent; }
.admin-sidebar .sb-list .ac-item {
  padding: 9px 12px;
  border-radius: 8px;
  cursor: pointer;
  color: #4b5563;
  border-left: 3px solid transparent;
  margin-bottom: 3px;
  transition: all 0.18s ease;
  font-weight: 500;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 9px;
}
.admin-sidebar .sb-list .ac-item .ac-icon {
  font-size: 14px;
  flex-shrink: 0;
  width: 18px;
  text-align: center;
  color: #6b7280;
}
.admin-sidebar .sb-list .ac-item.active .ac-icon { color: #2563eb; }
.admin-sidebar .sb-list .ac-item .ac-body {
  overflow: hidden;
}
.admin-sidebar .sb-list .ac-item .ac-name {
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-sidebar .sb-list .ac-item .ac-meta {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-sidebar .sb-list .ac-item:hover {
  background: #f0f4f8;
  color: #1d4ed8;
}
.admin-sidebar .sb-list .ac-item.active {
  background: #eff6ff;
  border-left: 3px solid #2563eb;
  color: #1d4ed8;
  font-weight: 600;
}
.admin-sidebar .sb-list .ac-item.active .ac-meta { color: #60a5fa; }

/* ── 右主编辑区 ── */
.admin-main {
  padding: 0;
  overflow: visible;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
.admin-main h2 {
  margin: 0 0 6px;
  font-size: 20px;
  color: #1a2332;
  font-weight: 700;
}
.admin-main .ac-id-line {
  color: #9ca3af;
  font-size: 12px;
  margin-bottom: 20px;
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e5e7eb;
}
/* 编辑器两栏网格布局：左列表单 + 右列预览 */
.editor-layout {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(380px, 1fr);
  gap: 20px;
  align-items: start;
}
.editor-left, .editor-right {
  min-width: 0;
}

/* ── 统一卡片 ── */
.form-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px 22px;
  margin-bottom: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.form-card .card-title {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.form-card .card-title .ct-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  flex-shrink: 0;
}
.ct-icon.i-info  { background: #eff6ff; color: #2563eb; }
.ct-icon.i-engine { background: #fef3c7; color: #d97706; }
.ct-icon.i-perf   { background: #f0fdf4; color: #16a34a; }
.ct-icon.i-visual { background: #fce7f3; color: #db2777; }
.form-section-title {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  margin: 14px 0 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 12px 14px;
  margin-bottom: 4px;
}
.form-grid.grid-2col {
  grid-template-columns: 1fr 1fr;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.field label {
  font-size: 12px;
  color: #4b5563;
  font-weight: 500;
}
/* 统一输入控件风格 */
.field input[type=text],
.field input[type=number],
.field textarea,
.field select {
  width: 100%;
  font-size: 13px;
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #f9fafb;
  color: #111827;
  outline: none;
  transition: all 0.15s;
}
.field input[type=text]:focus,
.field input[type=number]:focus,
.field textarea:focus,
.field select:focus {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.08);
}
.field textarea { min-height: 60px; resize: vertical; }
.field .hint {
  font-size: 11px;
  color: #9ca3af;
  line-height: 1.35;
}

/* ── 复选框 ── */
.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}
.check-row label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #1f2937;
  cursor: pointer;
}
.check-row input[type=checkbox] {
  width: 16px;
  height: 16px;
  accent-color: #2563eb;
  cursor: pointer;
}

/* ── 发动机类型 radio ── */
.engine-type-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.engine-type-group label {
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #f9fafb;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.12s;
}
.engine-type-group label:hover { background: #eff6ff; border-color: #93c5fd; }
.engine-type-group label input[type=radio] {
  accent-color: #2563eb;
}
.engine-type-group label:has(input[type=radio]:checked) {
  background: #eff6ff;
  border-color: #2563eb;
  color: #1d4ed8;
  font-weight: 600;
  box-shadow: 0 0 0 1px rgba(37,99,235,0.2);
}

/* ── 加力燃烧室开关（框子 + 圆点，与发动机类型统一） ── */
.ab-box {
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #f9fafb;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.12s;
  width: fit-content;
  margin-top: 10px;
}
.ab-box:hover { background: #eff6ff; border-color: #93c5fd; }
.ab-box input[type=checkbox] {
  appearance: none;
  -webkit-appearance: none;
  width: 15px;
  height: 15px;
  border: 2px solid #9ca3af;
  border-radius: 50%;
  margin: 0;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  box-sizing: border-box;
}
.ab-box input[type=checkbox]:checked {
  border-color: #2563eb;
  background: #2563eb;
  box-shadow: inset 0 0 0 3px #fff;
}
.ab-box:has(input[type=checkbox]:checked) {
  background: #eff6ff;
  border-color: #2563eb;
  color: #1d4ed8;
  font-weight: 600;
  box-shadow: 0 0 0 1px rgba(37,99,235,0.2);
}

/* ── 性能参数标签切换 ── */
.perf-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 16px;
  background: #f1f5f9;
  border-radius: 10px;
  padding: 3px;
}
.perf-tabs .perf-tab {
  flex: 1;
  padding: 7px 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
}
.perf-tabs .perf-tab:hover { color: #1d4ed8; }
.perf-tabs .perf-tab.active {
  background: #fff;
  color: #1d4ed8;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.perf-panel { display: none; }
.perf-panel.active { display: block; }

/* ── 跑道性能 ── */
.runway-row {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 13px;
}
.runway-row .rw-icon {
  font-size: 20px;
  flex-shrink: 0;
}
.runway-row .rw-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  flex: 1;
}
.runway-row .rw-item {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.runway-row .rw-item .rw-val {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.runway-row .rw-item .rw-val input {
  width: 80px;
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  text-align: right;
  background: transparent;
  border: none;
  border-bottom: 2px solid #d1d5db;
  border-radius: 0;
  padding: 4px 6px;
  outline: none;
  transition: border-color 0.15s;
}
.runway-row .rw-item .rw-val input:focus {
  border-bottom-color: #2563eb;
}
.runway-row .rw-item .rw-val .rw-unit {
  font-size: 12px;
  color: #6b7280;
}

/* ── V 速度网格 ── */
.vspeed-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.vspeed-cell {
  text-align: center;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 8px;
  transition: border-color 0.15s;
}
.vspeed-cell:focus-within { border-color: #2563eb; background: #eff6ff; }
.vspeed-cell .vs-label {
  font-size: 12px;
  font-weight: 700;
  color: #2563eb;
  margin-bottom: 4px;
}
.vspeed-cell input {
  width: 100%;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  border: none;
  background: transparent;
  outline: none;
  color: #111827;
  padding: 2px;
}
.vspeed-cell .vs-sub {
  font-size: 10px;
  color: #9ca3af;
  margin-top: 2px;
}

/* ── 外观预览区（右列） ── */
.vis-card {
  position: sticky;
  top: 28px;
}
.vis-preview-body {
  padding: 0;
}

/* 图片上传（与现有策略兼容） */
.up-zone {
  border: 2px dashed #cbd5e1;
  border-radius: 10px;
  padding: 16px 12px;
  text-align: center;
  background: #fafafa;
  transition: all 0.15s;
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
  min-height: 90px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.up-zone.hover { border-color: #3b82f6; background: #eff6ff; color: #1d4ed8; }
.up-zone.has-image {
  background: linear-gradient(180deg, #e0f2fe 0%, #f0fdf4 100%);
  border: 1px solid #e5e7eb;
  padding: 10px;
}
.up-zone img.up-preview {
  max-width: min(100%, 520px);
  max-height: 180px;
  border-radius: 6px;
  border: 0;
  box-shadow: 0 1px 3px rgba(15,23,42,0.06);
}
.up-zone .up-meta {
  display: flex;
  gap: 8px;
  justify-content: center;
  font-size: 11px;
  color: #6b7280;
}
.up-zone .up-actions { display: flex; gap: 6px; justify-content: center; }
.up-zone input[type=file] { display: none; }
.up-zone .up-trigger {
  background: #fff;
  border: 1px solid #d1d5db;
  padding: 5px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
}
.up-zone .up-trigger:hover { background: #f3f4f6; }

/* ── 可视化坐标拾取 + 预览（右列） ── */
.picker-panel {
  margin-top: 12px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
}
.pick-toolbar {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  padding: 10px 14px;
  background: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
}
.pick-hint {
  flex: 1;
  font-size: 12px;
  color: #6b7280;
  line-height: 1.45;
  min-width: 180px;
}
.pick-hint b { color: #1d4ed8; }
.pick-canvas-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 100%;
  min-height: 160px;
  background: linear-gradient(180deg, #e0f2fe 0%, #f0fdf4 100%);
  padding: 12px;
  overflow: hidden;
  box-sizing: border-box;
}
.pick-stage {
  position: relative;
  display: inline-block;
  line-height: 0;
  max-width: 100%;
}
.pick-canvas-wrap img.pick-img {
  display: block;
  max-width: min(100%, 600px);
  max-height: 420px;
  height: auto;
  width: auto;
  pointer-events: none;
  user-select: none;
}
.pick-fx-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 2;
}
.pick-canvas-wrap .pick-click {
  position: absolute;
  inset: 0;
  cursor: crosshair;
  border-radius: 4px;
  z-index: 3;
}
.pick-marker {
  position: absolute;
  width: 56px;
  height: 56px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 3;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.45));
}
.pick-marker::before,
.pick-marker::after {
  content: '';
  position: absolute;
  background: currentColor;
  box-shadow:
    0 0 0 1.5px #fff,
    0 0 8px rgba(0,0,0,0.55),
    0 0 16px currentColor;
  border-radius: 2px;
}
.pick-marker::before {
  left: 50%;
  top: 0;
  width: 4px;
  height: 100%;
  transform: translateX(-50%);
}
.pick-marker::after {
  top: 50%;
  left: 0;
  height: 4px;
  width: 100%;
  transform: translateY(-50%);
}
.pick-marker .pick-bullseye {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: currentColor;
  box-shadow:
    0 0 0 3px #fff,
    0 0 0 4.5px currentColor,
    0 0 12px currentColor;
}
.pick-marker.pm-prop { color: #2563eb; }
.pick-marker.pm-eng1 { color: #dc2626; }
.pick-marker-label {
  position: absolute;
  left: calc(50% + 32px);
  top: calc(50% - 14px);
  background: currentColor;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(0,0,0,0.25);
}
.pick-empty {
  padding: 28px;
  text-align: center;
  color: #6b7280;
  font-size: 12px;
  border: 1px dashed #d1d5db;
  border-radius: 10px;
}
.pick-readout {
  padding: 8px 12px;
  font-size: 11px;
  color: #6b7280;
  border-top: 1px solid #e5e7eb;
  background: #fafafa;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}
.pick-readout span { color: #111827; font-weight: 600; }
.pick-readout .pr-prop { color: #2563eb; font-weight: 600; }
.pick-readout .pr-eng  { color: #dc2626; font-weight: 600; }

/* ── 图片下方紧凑参数行 ── */
.inline-params {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 8px 0;
  font-size: 12px;
  align-items: flex-end;
}
.inline-params .ip-group {
  display: flex;
  align-items: center;
  gap: 4px;
}
.inline-params .ip-label {
  color: #6b7280;
  font-weight: 600;
  font-size: 11px;
  white-space: nowrap;
}
.inline-params input[type=number] {
  width: 56px;
  font-size: 12px;
  padding: 5px 6px;
  text-align: right;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
  outline: none;
  transition: all 0.15s;
}
.inline-params input[type=number]:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37,99,235,0.1);
}
.inline-params .ip-sep {
  color: #d1d5db;
  margin: 0 2px;
  font-size: 14px;
}

/* ── 底部操作栏（简洁） ── */
.action-bar {
  margin-top: 18px;
  padding: 14px 20px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.action-bar .grow { flex: 1; color: #6b7280; font-size: 12px; }

/* ── 错误面板 ── */
.error-panel {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  padding: 14px 16px;
  border-radius: 10px;
  margin-bottom: 16px;
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  line-height: 1.5;
}

/* ═══════════════════════════════════════
   主页样式（index.html 用到的类）
   ═══════════════════════════════════════ */
.top-bar {
  display: flex;
  align-items: center;
  padding: 10px 22px;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
  gap: 18px;
}
.top-bar-left, .top-bar-center, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.top-bar-left h1 {
  margin: 0;
  font-size: 16px;
  color: #111827;
  font-weight: 700;
}
.top-bar-left .logo { font-size: 20px; }
.top-bar-center { flex: 1; }
.btn-secondary {
  background: #fff;
  border: 1px solid #d1d5db;
  color: #111827;
  padding: 5px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  text-decoration: none;
  display: inline-block;
}
.btn-secondary:hover { background: #f3f4f6; }

.main-layout {
  display: block;
  height: calc(100vh - 48px);
  background: #f6f7fb;
  overflow-y: auto;
}
.sim-section {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 6px 10px 8px var(--panel-pad, 310px);
  gap: 6px;
  box-sizing: border-box;
  overflow: visible;
  transition: padding-left 0.3s ease;
}
body.panel-collapsed .sim-section {
  --panel-pad: 30px;
}
.canvas-container {
  position: relative !important;
  flex: 1 1 auto;
  min-height: calc(100vh - 320px); /* 减去顶栏(48)+控制面板(200)+间距，保证控制面板完整露出 */
  width: 100%;
  box-sizing: border-box;
  background: #e8f0fe;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
  padding: 10px;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  box-shadow: 0 4px 20px rgba(15,23,42,0.08),
              inset 0 1px 0 rgba(255,255,255,0.7);
}
.canvas-container canvas#sim-canvas {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 6px;
}

.control-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px 12px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px 16px;
}
.control-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.control-label {
  font-size: 12px;
  color: #6b7280;
  font-weight: 500;
}
.select-ctrl {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: #fff;
  font-size: 13px;
  color: #111827;
}
.slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: #e2e8f0;
  outline: none;
}
.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #2563eb;
  cursor: pointer;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}
.slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: none;
  border-radius: 50%;
  background: #2563eb;
  cursor: pointer;
}
.btn-ctrl {
  padding: 7px 12px;
  font-size: 13px;
  border: 1px solid #d1d5db;
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  color: #111827;
}
.btn-ctrl:hover { background: #f3f4f6; }
.btn-ctrl.active {
  background: #2563eb;
  color: #fff;
  border-color: #1d4ed8;
}
.pitch-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.sidebar {
  padding: 16px 16px 16px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sidebar-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px 16px;
  color: #1f2937;
}
/* ===== 机型信息 可折叠标题栏 ===== */
.info-title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: -14px -16px 10px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #2563eb 100%);
  color: #eff6ff;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s;
}
.info-title-bar:hover {
  background: linear-gradient(135deg, #172554 0%, #1d4ed8 50%, #3b82f6 100%);
}
.info-title-bar h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: 0.5px;
  flex: 1;
}
.info-collapse-icon {
  font-size: 12px;
  color: #93c5fd;
  transition: transform 0.25s;
  flex-shrink: 0;
}
.info-collapsed .info-collapse-icon {
  transform: rotate(-90deg);
}
.info-collapse-body {
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.25s ease;
  max-height: 2000px;
  opacity: 1;
}
.info-collapsed .info-collapse-body {
  max-height: 0;
  opacity: 0;
  margin-top: -10px;
}

.sidebar-card h3 {
  margin: 0 0 8px;
  font-size: 14px;
  color: #111827;
  font-weight: 700;
}
.sidebar-card .meta-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 0;
  font-size: 12px;
  border-bottom: 1px dashed #f1f5f9;
}
.sidebar-card .meta-row:last-child { border-bottom: none; }
.sidebar-card .meta-row .k { color: #6b7280; }
.sidebar-card .meta-row .v { color: #111827; font-weight: 600; }
.sidebar-card .desc {
  margin-top: 8px;
  font-size: 12px;
  color: #4b5563;
  line-height: 1.6;
}
/* 机型信息卡：关键参数网格 */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 12px;
  margin-bottom: 6px;
}
.info-item {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  padding: 3px 0;
  border-bottom: 1px dashed #f1f5f9;
}
.info-item .label { color: #6b7280; }
.info-item span:last-child { color: #111827; font-weight: 600; text-align: right; }
.info-item .highlight { color: #2563eb; }
.info-item.engine-prop { background: #f0fdf4; padding: 4px 6px; border-radius: 6px; }
.info-item.engine-jet-ab { background: #fef2f2; padding: 4px 6px; border-radius: 6px; }
.info-item.engine-jet-noab { background: #eff6ff; padding: 4px 6px; border-radius: 6px; }
.info-desc { font-size: 12px; color: #4b5563; line-height: 1.6; margin-top: 8px; }

.checklist-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 10px;
  border-bottom: 1px solid #e5e7eb;
}
.tab-btn {
  flex: 1;
  padding: 6px 10px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: #6b7280;
  font-size: 13px;
  cursor: pointer;
  margin-bottom: -1px;
}
.tab-btn.active {
  color: #1d4ed8;
  border-bottom-color: #2563eb;
  font-weight: 600;
}
.checklist-tab-content { display: none; font-size: 12px; color: #1f2937; }
.checklist-tab-content.active { display: block; }
.checklist-tab-content ul { padding-left: 20px; margin: 0; }
.checklist-tab-content li { padding: 3px 0; }
.checklist-tab-content li.done {
  color: #047857;
  text-decoration: line-through;
  opacity: 0.75;
}
.checklist-tab-content li.active {
  color: #1d4ed8;
  font-weight: 600;
}

.help-panel {
  position: absolute;
  right: 12px;
  top: 12px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 6px 24px rgba(15,23,42,0.08);
  color: #1f2937;
  z-index: 60;
  max-width: 320px;
  font-size: 13px;
  display: none;
}
.help-panel.show { display: block; }
.help-panel h3 { margin: 0 0 10px; font-size: 14px; color: #111827; font-weight: 700; }
.help-panel kbd {
  display: inline-block;
  padding: 1px 6px;
  border: 1px solid #cbd5e1;
  border-bottom-width: 2px;
  border-radius: 4px;
  background: #f8fafc;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  color: #0f172a;
}
.help-panel table { width: 100%; border-collapse: collapse; }
.help-panel td { padding: 4px 0; }
.help-panel td:first-child { width: 36%; }

/* 响应式：窄屏 */
@media (max-width: 1200px) {
  .editor-layout {
    grid-template-columns: 1fr;
  }
  .vis-card { position: static; }
}
@media (max-width: 960px) {
  .main-layout { display: block; }
  .vspeed-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .admin-root { padding: 16px 12px 40px; }
  .admin-sidebar {
    position: static;
    width: 100%;
    height: auto;
    max-height: 40vh;
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
  }
  .admin-sidebar .sb-head { cursor: default; }
  .admin-sidebar .sb-head:active { cursor: default; }
  .editor-layout { grid-template-columns: 1fr; }
  .vspeed-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ======================================================
   V2 控制面板：两列垂直推杆 + 一列按钮（HOTAS 飞行摇杆真实造型版）
   ====================================================== */
.control-panel-v2 {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 8px 10px !important;
  align-items: stretch;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%) !important;
  border-top: 2px solid #334155 !important;
  color: #e2e8f0 !important;
  box-shadow: inset 0 2px 14px rgba(0, 0, 0, 0.55);
  font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
  flex: 0 0 auto;
  max-height: 200px;
  min-height: 170px;
}
.control-panel-v2 * { color: inherit; }

/* 右侧容器：仪表+按钮 | 油门 | 操纵杆，三列均分 */
.panel-right-col {
  display: flex;
  gap: 10px;
  align-items: stretch;
  min-width: 0;
  overflow: hidden;
}
.panel-right-col > .stick-col,
.panel-right-col > .panel-instr-btn-col {
  flex: 1 1 0;
  min-width: 0;
}
.panel-right-col > .stick-col-throttle { flex: 0 0 100px; }
.panel-right-col > .stick-col-joystick { flex: 0 0 100px; }

/* 仪表盘 + 按钮列（仪表在上，按钮竖排在下） */
.panel-instr-btn-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
}
.panel-instr-btn-col .instrument-bar-inline {
  flex: 1 1 0;
  min-height: 0;
  align-items: stretch;
}
.panel-instr-btn-col .btn-col {
  flex: 2 1 0;
  min-height: 0;
  flex-direction: row;
  gap: 6px;
}

/* 每个按钮项的容器（标签在顶部） */
.panel-instr-btn-col .btn-col > .btn-col-item {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 3px;
}
.panel-instr-btn-col .btn-col > .btn-col-item > .stick-head {
  text-align: center;
  flex: 0 0 auto;
}
.panel-instr-btn-col .btn-col > .btn-col-item > .btn-ctrl-v2 {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 4px 2px;
  text-align: center;
}

/* 第四列：飞机简介卡片，填满按钮列右侧大片空白 */
.info-col {
  background: linear-gradient(180deg, rgba(51,65,85,0.5) 0%, rgba(30,41,59,0.7) 100%) !important;
  border: 1px solid #475569 !important;
  border-radius: 10px !important;
  padding: 0 !important;
  color: #e2e8f0 !important;
  overflow: hidden;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.info-col .info-title-bar {
  margin: 0 !important;
  padding: 8px 12px !important;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%) !important;
  border-radius: 0 !important;
  border-bottom: 1px solid #475569;
}
.info-col .info-title-bar h3 {
  color: #f1f5f9 !important;
  font-size: 13px !important;
}
.info-col .info-collapse-body {
  padding: 8px 12px;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
  font-size: 12px;
}
.info-col .info-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 4px 8px !important;
  padding: 0 !important;
  margin: 0 0 6px !important;
}
.info-col .info-item {
  padding: 4px 6px !important;
  font-size: 11px !important;
  background: rgba(15,23,42,0.5) !important;
  border: 1px solid #334155 !important;
  border-radius: 4px !important;
}
.info-col .info-item .label { color: #94a3b8 !important; }
.info-col .info-item .highlight { color: #60a5fa !important; }
.info-col .info-desc {
  font-size: 11px !important;
  color: #cbd5e1 !important;
  line-height: 1.45 !important;
  margin: 0 !important;
  padding: 4px 2px !important;
}
.stick-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: linear-gradient(180deg, #334155 0%, #1e293b 100%);
  border: 1px solid #475569;
  border-radius: 10px;
  padding: 5px 5px 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45),
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.stick-head {
  font-size: 10px;
  font-weight: 700;
  color: #f1f5f9;
  letter-spacing: 1px;
  padding: 1px 6px;
  border-radius: 3px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid #475569;
}

/* ======================================================
   HOTAS 金属节流阀（油门杆）
   ====================================================== */
.throttle-wrap {
  flex: 1 1 auto;
  min-height: 0;
  padding: 0 28px 0 0;
  position: relative;
  display: flex;
  align-items: stretch;
}
/* 油门杆本体（保持原尺寸 48px，不被压缩） */
.throttle-quadrant {
  position: relative;
  flex: 0 0 48px;
  width: 48px;
  height: 100%;
  min-height: 100px;
  border-radius: 6px;
  background: linear-gradient(90deg,
    #1e293b 0%,
    #0f172a 30%,
    #020617 50%,
    #0f172a 70%,
    #1e293b 100%);
  box-shadow: inset 0 3px 10px rgba(0, 0, 0, 0.9),
              inset 0 -2px 4px rgba(255, 255, 255, 0.04),
              0 0 0 1px #334155,
              0 2px 6px rgba(0,0,0,0.5);
  overflow: visible;
  user-select: none;
  cursor: pointer;
}
/* 凹槽轨道 */
.throttle-groove {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 6px;
  bottom: 6px;
  width: 16px;
  border-radius: 8px;
  background: linear-gradient(90deg,
    rgba(0,0,0,0.6) 0%,
    rgba(15,23,42,0.9) 50%,
    rgba(0,0,0,0.6) 100%);
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.8);
  pointer-events: none;
  z-index: 0;
}
/* 油门填充条 */
.throttle-fill {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  bottom: 6px;
  border-radius: 7px;
  height: 0%;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(180deg,
    #dc2626 0%,
    #f97316 12%,
    #f59e0b 28%,
    #eab308 45%,
    #84cc16 62%,
    #22c55e 80%,
    #16a34a 100%);
  box-shadow: inset 0 0 6px rgba(0,0,0,0.35),
              0 0 8px rgba(34,197,94,0.25);
}
/* 100% 红色卡点 */
.throttle-ab-stop {
  position: absolute;
  left: -5px;
  right: -5px;
  bottom: calc(83% - 2px);
  height: 4px;
  border-radius: 2px;
  background: #dc2626;
  box-shadow: 0 0 0 1px rgba(127, 29, 29, 0.75),
              0 1px 3px rgba(220, 38, 38, 0.7),
              0 0 10px rgba(220, 38, 38, 0.4);
  pointer-events: none;
  z-index: 3;
}
.throttle-ab-stop.no-ab {
  height: 6px;
  bottom: calc(100% - 3px);
  background: repeating-linear-gradient(
    45deg,
    #dc2626 0 4px,
    #7f1d1d 4px 8px
  );
  box-shadow: 0 0 0 1px rgba(127, 29, 29, 0.9),
              0 0 8px rgba(220, 38, 38, 0.5);
}
/* 加力段背景 */
.throttle-ab-zone {
  position: absolute;
  left: 3px;
  right: 3px;
  top: 3px;
  height: 17%;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  background: repeating-linear-gradient(
    -45deg,
    rgba(220,38,38,0.28) 0 5px,
    rgba(127,29,29,0.45) 5px 10px
  );
  border-bottom: 1px dashed rgba(239, 68, 68, 0.7);
  pointer-events: none;
  z-index: 0;
}
.throttle-ab-zone.hidden { display: none; }

/* 刻度文字（收窄为 20px，与 48px 滑轨形成约 70/30 视觉占比） */
.throttle-ticks {
  position: absolute;
  right: -26px;
  top: 0;
  height: 100%;
  width: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 7px;
  color: #94a3b8;
  font-family: "Consolas", monospace;
  pointer-events: none;
}
.throttle-ticks span {
  text-align: left;
  line-height: 1;
  transform: translateY(50%);
  white-space: nowrap;
  padding: 0 2px;
  background: rgba(15,23,42,0.7);
  border-radius: 2px;
}
.throttle-ticks span:first-child { transform: translateY(0); color: #dc2626; font-weight: 700; }
.throttle-ticks span:last-child { transform: translateY(-100%); }
.throttle-ticks span:nth-child(2) { color: #22c55e; font-weight: 700; }

/* 油门手柄（HOTAS 金属杆 + 侧出握把）
   底部固定在轨道上，手柄随油门值上下移动 */
.throttle-lever {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0%;
  z-index: 5;
  pointer-events: none;
  text-align: center;
  white-space: nowrap;
}
/* 金属臂（从轨道伸出的连接段）—— 保持细长，只放大握把 */
.throttle-lever-arm {
  display: block;
  margin: 0 auto;
  width: 18px;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(180deg,
    #94a3b8 0%,
    #64748b 30%,
    #475569 60%,
    #334155 100%);
  box-shadow: 0 2px 4px rgba(0,0,0,0.6),
              inset 0 1px 0 rgba(255,255,255,0.3),
              inset 0 -1px 0 rgba(0,0,0,0.5);
  border: 1px solid #1e293b;
}
/* 握把（手柄球）—— 只放大头子 */
.throttle-lever-grip {
  display: block;
  margin: -2px auto 0;
  width: 40px;
  height: 26px;
  border-radius: 8px 8px 5px 5px;
  background: linear-gradient(180deg,
    #475569 0%,
    #334155 40%,
    #1e293b 80%,
    #0f172a 100%);
  box-shadow: 0 3px 8px rgba(0,0,0,0.7),
              inset 0 1px 0 rgba(255,255,255,0.18),
              inset 0 -2px 4px rgba(0,0,0,0.6);
  border: 1px solid #0f172a;
  position: relative;
}
/* 握把顶端按钮（绿色指示灯） */
.throttle-lever-button {
  position: absolute;
  left: 50%;
  top: 3px;
  width: 6px;
  height: 6px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, #22c55e 0%, #15803d 100%);
  box-shadow: 0 0 4px rgba(34,197,94,0.9),
              0 0 8px rgba(34,197,94,0.45),
              inset 0 1px 1px rgba(255,255,255,0.4);
}

/* ======================================================
   2D 全向摇杆（HOTAS 风格）
   ====================================================== */
.joystick-wrap {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.joystick-base {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  user-select: none;
  cursor: grab;
  touch-action: none;
}
.joystick-base:active { cursor: grabbing; }

/* 外环（金属底盘） */
.joystick-ring-outer {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%,
    #475569 0%,
    #334155 40%,
    #1e293b 80%,
    #0f172a 100%);
  box-shadow: 0 4px 12px rgba(0,0,0,0.6),
              inset 0 2px 4px rgba(255,255,255,0.08),
              inset 0 -3px 6px rgba(0,0,0,0.5),
              0 0 0 2px #1e293b;
}
/* 内环（凹陷球碗） */
.joystick-ring-inner {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%,
    #020617 0%,
    #0f172a 50%,
    #1e293b 100%);
  box-shadow: inset 0 4px 10px rgba(0,0,0,0.9),
              inset 0 -2px 4px rgba(71,85,105,0.15);
}
/* 十字基准线 */
.joystick-cross {
  position: absolute;
  background: rgba(56, 189, 248, 0.15);
  pointer-events: none;
  z-index: 1;
}
.joystick-cross-h {
  left: 18px;
  right: 18px;
  top: 50%;
  height: 1px;
  transform: translateY(-50%);
}
.joystick-cross-v {
  top: 18px;
  bottom: 18px;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
}
/* 中心点 */
.joystick-center-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.4);
  box-shadow: 0 0 6px rgba(56,189,248,0.5);
  pointer-events: none;
  z-index: 1;
}
/* 方向标识 */
.joystick-dir {
  position: absolute;
  font-size: 8px;
  font-weight: 700;
  color: #64748b;
  pointer-events: none;
  z-index: 1;
  font-family: "Microsoft YaHei", sans-serif;
}
.joystick-dir-up {
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
}
.joystick-dir-down {
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
}

/* 摇杆本体（可移动） */
.joystick-stick {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  transform: translate(-50%, -50%);
  z-index: 4;
  pointer-events: none;
}
.joystick-stick-shaft {
  transition: height 0.12s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.joystick-stick-grip {
  transition: transform 0.12s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
/* 拖拽时去掉过渡，跟手 */
.joystick-base.dragging .joystick-stick-shaft,
.joystick-base.dragging .joystick-stick-grip {
  transition: none;
}
/* 摇杆阴影 */
.joystick-stick-shadow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 30px;
  height: 12px;
  transform: translate(-50%, 10px);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0,0,0,0.5) 0%, transparent 70%);
  pointer-events: none;
  z-index: 2;
}
/* 摇杆立柱（金属杆） */
.joystick-stick-shaft {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 36px;
  transform: translate(-50%, -100%);
  border-radius: 4px;
  background: linear-gradient(90deg,
    #334155 0%,
    #64748b 25%,
    #94a3b8 50%,
    #64748b 75%,
    #334155 100%);
  box-shadow: 0 2px 4px rgba(0,0,0,0.5),
              inset 0 0 1px rgba(255,255,255,0.3);
}
/* 摇杆握把（球形手柄） */
.joystick-stick-grip {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 28px;
  height: 28px;
  transform: translate(-50%, calc(-100% - 36px));
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%,
    #64748b 0%,
    #475569 40%,
    #334155 75%,
    #1e293b 100%);
  box-shadow: 0 4px 10px rgba(0,0,0,0.7),
              inset 0 2px 4px rgba(255,255,255,0.15),
              inset 0 -3px 6px rgba(0,0,0,0.5);
  border: 1.5px solid #0f172a;
}
/*Hat switch（顶部小圆钮） */
.joystick-stick-hat {
  position: absolute;
  left: 50%;
  top: 30%;
  width: 10px;
  height: 10px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%,
    #94a3b8 0%,
    #475569 60%,
    #1e293b 100%);
  box-shadow: 0 1px 3px rgba(0,0,0,0.5),
              inset 0 1px 1px rgba(255,255,255,0.25),
              inset 0 -1px 2px rgba(0,0,0,0.4);
  border: 1px solid #0f172a;
}

/* 按钮列 —— 深色控制台风格 */
.btn-col {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 1px 0;
}
/* 横向并排按钮（在 panel-instr-btn-col 下半区） */
.panel-instr-btn-col .btn-col > .btn-ctrl-v2 {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 4px 2px;
  text-align: center;
}
.panel-instr-btn-col .btn-col > .btn-col-item > .btn-ctrl-v2 .bcv2-icon { font-size: 16px; }
.panel-instr-btn-col .btn-col > .btn-col-item > .btn-ctrl-v2 .bcv2-label { font-size: 10px; }
.panel-instr-btn-col .btn-col > .btn-col-item > .btn-ctrl-v2 .bcv2-state { font-size: 9px; }
/* 襟翼竖排布局（上下结构：+ / 数值 / -） */
.panel-instr-btn-col .btn-col > .btn-col-item > .flap-box {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 3px 4px;
  gap: 2px;
}
.panel-instr-btn-col .btn-col > .btn-col-item .flap-ctrls {
  display: flex !important;
  flex-direction: column;
  gap: 3px;
  flex: 1 1 auto;
  min-height: 0;
}
.panel-instr-btn-col .btn-col > .btn-col-item .btn-flap {
  flex: 0 0 auto;
  min-height: 20px;
  font-size: 14px;
  font-weight: 700;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.panel-instr-btn-col .btn-col > .btn-col-item .select-ctrl-v2 {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  font-size: 11px;
  padding: 2px 4px;
  text-align: center;
}
.btn-ctrl-v2 {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  align-items: center;
  gap: 5px;
  padding: 5px 7px;
  border: 1px solid #475569;
  border-radius: 6px;
  background: linear-gradient(180deg, #334155 0%, #1e293b 100%);
  cursor: pointer;
  text-align: left;
  box-shadow: 0 2px 4px rgba(0,0,0,0.45),
              inset 0 1px 0 rgba(255,255,255,0.06);
  transition: all 0.15s;
  color: #e2e8f0 !important;
}
.btn-ctrl-v2:hover:not(:disabled) {
  border-color: #60a5fa;
  background: linear-gradient(180deg, #3b4d66 0%, #253856 100%);
  box-shadow: 0 2px 8px rgba(59,130,246,0.2),
              inset 0 1px 0 rgba(255,255,255,0.08);
}
.btn-ctrl-v2 .bcv2-icon { font-size: 14px; line-height: 1; text-align: center; pointer-events: none; }
.btn-ctrl-v2 .bcv2-label { font-size: 10px; font-weight: 700; color: #f1f5f9; letter-spacing: 0.5px; pointer-events: none; }
.btn-ctrl-v2 .bcv2-state {
  font-size: 9px;
  color: #94a3b8;
  font-family: "Consolas", monospace;
  background: #0b1220;
  padding: 1px 4px;
  border-radius: 3px;
  border: 1px solid #334155;
  pointer-events: none;
}
.btn-ctrl-v2.btn-brake.active {
  background: linear-gradient(180deg, #7f1d1d 0%, #450a0a 100%);
  border-color: #dc2626;
  box-shadow: 0 0 0 2px rgba(239,68,68,0.18),
              0 0 12px rgba(239,68,68,0.25);
}
.btn-ctrl-v2.btn-brake.active .bcv2-state { color: #fca5a5; font-weight: 700; border-color: #7f1d1d; background: #1f0404; }
.btn-ctrl-v2.btn-gear.active {
  background: linear-gradient(180deg, #1e40af 0%, #172554 100%);
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59,130,246,0.18),
              0 0 12px rgba(59,130,246,0.25);
}
.btn-ctrl-v2.btn-gear.active .bcv2-state { color: #93c5fd; font-weight: 700; border-color: #1e3a8a; background: #0a1a3a; }
.btn-ctrl-v2.disabled,
.btn-ctrl-v2:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: saturate(0.4);
  box-shadow: none;
}

/* 襟翼盒子（深色） */
.flap-box {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid #475569;
  border-radius: 8px;
  padding: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.45),
              inset 0 1px 0 rgba(255,255,255,0.04);
}
.mini-label {
  font-size: 12px;
  font-weight: 700;
  color: #f1f5f9;
  display: block;
  margin-bottom: 5px;
  letter-spacing: 0.8px;
}
.flap-ctrls {
  display: grid;
  grid-template-columns: 28px 1fr 28px;
  gap: 4px;
  align-items: stretch;
}
.btn-ctrl-v2.btn-flap {
  padding: 0;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  color: #60a5fa !important;
  display: flex;
  align-items: center;
  justify-content: center;
  grid-template-columns: 1fr;
  min-height: 28px;
}
.select-ctrl-v2 {
  padding: 4px 6px;
  border: 1px solid #475569;
  border-radius: 5px;
  font-size: 11px;
  color: #e2e8f0;
  background: #0f172a;
  cursor: pointer;
  min-height: 28px;
  outline: none;
}
.select-ctrl-v2:focus { border-color: #60a5fa; box-shadow: 0 0 0 2px rgba(59,130,246,0.2); }

.sidebar-slim { padding: 16px; }

/* ======================================================
   三个仪表盘（速度 / 姿态 / 高度）— 画布内部右下角，透明玻璃风，靠右紧密排齐
   ====================================================== */
/* 左侧列：仪表盘 + 消息文字 */
.panel-left-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
}

/* 仪表盘（内嵌在控制面板左侧，不再浮在画布上） */
.instrument-bar-inline {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
/* 在 panel-instr-btn-col 内：仪表盘拉伸填满上半区 */
.panel-instr-btn-col .instrument-bar-inline .instrument-dial {
  flex: 1 1 0;
  width: auto;
  height: auto;
}

/* 消息文字日志区 */
.message-log {
  flex: 1 1 auto;
  overflow-y: auto;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid #334155;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
  line-height: 1.6;
  min-height: 40px;
  max-height: 100px;
}
.message-log::-webkit-scrollbar { width: 4px; }
.message-log::-webkit-scrollbar-track { background: transparent; }
.message-log::-webkit-scrollbar-thumb { background: #475569; border-radius: 2px; }

.message-log .msg-item {
  padding: 1px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.message-log .msg-item .msg-time {
  color: #64748b;
  font-size: 10px;
  margin-right: 6px;
}
.message-log .msg-item.danger  { color: #f87171; font-weight: 600; }
.message-log .msg-item.warning  { color: #fbbf24; }
.message-log .msg-item.success  { color: #4ade80; }
.message-log .msg-item.info     { color: #60a5fa; }
.message-log .msg-hint {
  color: #94a3b8;
  font-style: italic;
}
.message-log .msg-hint.blink {
  animation: msg-blink 1s infinite;
}
@keyframes msg-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
  gap: 8px;
  z-index: 50 !important;
  pointer-events: none;
}
.instrument-dial {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 52px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(8px) saturate(1.4);
  -webkit-backdrop-filter: blur(8px) saturate(1.4);
  box-shadow: 0 2px 10px rgba(0,0,0,0.22),
              inset 0 1px 0 rgba(255,255,255,0.15);
  font-family: "Consolas", "Courier New", monospace;
  position: relative;
  overflow: hidden;
}
.instrument-dial::before {
  /* 仪表玻璃反光 */
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 45%;
  background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, transparent 100%);
  pointer-events: none;
}
.dial-label {
  font-size: 9px;
  font-weight: 700;
  color: rgba(203, 213, 225, 0.9);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.dial-value {
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.dial-speed .dial-value    { color: #4ade80; text-shadow: 0 0 6px rgba(74,222,128,0.55); }
.dial-attitude .dial-value { color: #38bdf8; text-shadow: 0 0 6px rgba(56,189,248,0.55); }
.dial-altitude .dial-value { color: #fbbf24; text-shadow: 0 0 6px rgba(251,191,36,0.55); }
.dial-distance .dial-value { color: #c084fc; text-shadow: 0 0 6px rgba(192,132,252,0.55); }
.dial-unit {
  font-size: 9px;
  font-weight: 400;
  color: rgba(148, 163, 184, 0.9);
  margin-left: 3px;
}

/* 手机端仪表盘自适应 */
@media (max-width: 600px) {
  .instrument-bar { right: 10px; bottom: 10px; gap: 6px; }
  .dial-value { font-size: 16px; }
  .dial-label { font-size: 8px; letter-spacing: 1px; }
}

/* 响应式：窄屏，控制面板缩小 */
@media (max-width: 1100px) {
  .control-panel-v2 { grid-template-columns: 1fr 1fr; }
  .panel-right-col { gap: 6px; }
  .dial-value { font-size: 14px; }
  .panel-right-col > .stick-col-throttle { flex: 0 0 88px; }
  .panel-right-col > .stick-col-joystick { flex: 0 0 90px; }
  .joystick-base { width: 72px; height: 72px; }
}
@media (max-width: 960px) {
  .control-panel-v2 { grid-template-columns: 1fr; gap: 6px; }
  .panel-left-col { display: none; }
  .left-float-panel {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  .left-float-panel.mobile-open {
    transform: translateX(0);
  }
  body.panel-collapsed .sim-section { --panel-pad: 10px; }
  .sim-section { --panel-pad: 0px; padding-left: 10px; }
  .top-bar-btn span { display: none; }
  .top-bar .btn-secondary span { display: none; }
  .top-bar-left h1 { font-size: 14px; }
  .checklist-sidebar { font-size: 11px; }
  .help-panel { max-width: 260px; }
  .joystick-base { width: 64px; height: 64px; }
  .panel-right-col > .stick-col-joystick { flex: 0 0 84px; }
  .panel-right-col > .stick-col-throttle { flex: 0 0 84px; }
}
@media (max-width: 600px) {
  .top-bar { padding: 0 10px; gap: 8px; }
  .top-bar-btn { padding: 5px 8px; }
  .phase-indicator { font-size: 11px; padding: 3px 10px; }
  .flight-dist-indicator { font-size: 11px; padding: 3px 10px; }
  .instrument-dial { width: 60px; height: 40px; }
  .dial-value { font-size: 13px; }
  .checklist-sidebar { font-size: 10px; }
}

/* ======================================================
   左侧悬浮窗：机型选择 + 飞机简介（参照管理页悬浮窗）
   ====================================================== */
.left-float-panel {
  position: fixed;
  left: 0;
  top: 48px;
  width: 300px;
  max-height: calc(100vh - 48px);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-right: 1px solid #e5e7eb;
  box-shadow: 4px 0 24px rgba(15, 23, 42, 0.10);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
  font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
}
.left-float-panel.collapsed {
  transform: translateX(-270px);  /* 只露出标题条右边一小条 */
}
.left-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #fff;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
}
.left-panel-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
}
.left-panel-arrow {
  font-size: 12px;
  transition: transform 0.3s ease;
}
.left-float-panel.collapsed .left-panel-arrow {
  transform: rotate(180deg);
}
.left-panel-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 14px 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
}
.left-float-panel.collapsed .left-panel-body {
  opacity: 0;
  pointer-events: none;
}
.left-panel-selector {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #f1f5f9;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}
.left-panel-selector label {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  white-space: nowrap;
}
.left-panel-selector select {
  flex: 1;
  font-size: 13px;
  padding: 7px 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
  color: #111827;
  outline: none;
}
.left-panel-selector select:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}
/* 飞机简介卡片在悬浮窗内 */
.left-panel-body .sidebar-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 0;
  margin: 0;
  overflow: hidden;
}
.left-panel-body .sidebar-card .info-title-bar,
.left-panel-body .sidebar-card .aircraft-image-header {
  margin: 0;
  padding: 0;
  border-radius: 0;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.left-panel-body .sidebar-card .info-title-bar {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}
.left-panel-body .sidebar-card .info-title-bar h3,
.left-panel-body .sidebar-card .aircraft-image-header h3 {
  color: #fff;
  font-size: 13px;
  margin: 0;
}

/* 飞机图片标题栏 */
.aircraft-image-header {
  position: relative;
  height: 120px;
  overflow: hidden;
  cursor: pointer;
  transition: height 0.3s ease;
}
.aircraft-image-header .aircraft-thumb {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
.aircraft-image-header .aircraft-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: #475569;
}
.aircraft-image-header .info-collapse-icon {
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  transition: transform 0.25s;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}
.left-panel-body .sidebar-card .info-collapse-body {
  padding: 12px 14px;
  font-size: 12px;
}
.left-panel-body .sidebar-card .info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 10px;
  padding: 0;
  margin: 0 0 10px;
}
.left-panel-body .sidebar-card .info-item {
  padding: 6px 8px;
  font-size: 11.5px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}
.left-panel-body .sidebar-card .info-item .label {
  color: #64748b;
}
.left-panel-body .sidebar-card .info-item .highlight {
  color: #2563eb;
  font-weight: 600;
}
.left-panel-body .sidebar-card .info-desc {
  font-size: 11.5px;
  color: #475569;
  line-height: 1.55;
  margin: 0;
  padding: 8px 0 2px;
  border-top: 1px dashed #e2e8f0;
}

/* ═══ 顶栏（主页导航）═══ */
.top-bar {
  display: flex;
  align-items: center;
  padding: 0 22px;
  height: 48px;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #1e40af 100%);
  border-bottom: 1px solid #1e3a8a;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.15);
  gap: 18px;
  position: relative;
  z-index: 200;
  flex-shrink: 0;
}
.top-bar-left, .top-bar-center, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.top-bar-left h1 {
  margin: 0;
  font-size: 16px;
  color: #f1f5f9;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.top-bar-left .logo {
  font-size: 20px;
  color: #60a5fa;
  display: flex;
  align-items: center;
}
.top-bar-center { flex: 1; justify-content: center; }
.top-bar-right { gap: 8px; }
.top-bar-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(30, 41, 59, 0.5);
  color: #e2e8f0;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.top-bar-btn:hover {
  background: rgba(59, 130, 246, 0.25);
  border-color: #3b82f6;
  color: #fff;
}
.top-bar-btn i { font-size: 13px; }
.top-bar-btn.active {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #fca5a5;
}
.top-bar .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(30, 41, 59, 0.5);
  color: #e2e8f0;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.15s;
}
.top-bar .btn-secondary:hover {
  background: rgba(59, 130, 246, 0.25);
  border-color: #3b82f6;
  color: #fff;
}
.top-bar-selector {
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(30, 41, 59, 0.5);
  color: #e2e8f0;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  max-width: 220px;
  transition: all 0.15s;
}
.top-bar-selector:hover {
  background: rgba(59, 130, 246, 0.25);
  border-color: #3b82f6;
}
.top-bar-selector:focus {
  border-color: #3b82f6;
}
.top-bar-selector option {
  background: #1e293b;
  color: #e2e8f0;
}

/* 飞行阶段指示器 */
.phase-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 16px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(148, 163, 184, 0.25);
  font-size: 13px;
  font-weight: 600;
  color: #93c5fd;
  transition: all 0.3s;
}
.phase-indicator i { font-size: 12px; }
.phase-indicator.phase-ground { color: #94a3b8; }
.phase-indicator.phase-rolling { color: #fbbf24; border-color: rgba(251, 191, 36, 0.4); }
.phase-indicator.phase-rotating { color: #4ade80; border-color: rgba(74, 222, 128, 0.4); }
.phase-indicator.phase-airborne { color: #60a5fa; border-color: rgba(96, 165, 250, 0.4); }
.phase-indicator.phase-approach { color: #38bdf8; border-color: rgba(56, 189, 248, 0.4); }
.phase-indicator.phase-flare { color: #fbbf24; border-color: rgba(251, 191, 36, 0.4); }
.phase-indicator.phase-landing { color: #4ade80; border-color: rgba(74, 222, 128, 0.4); }

/* 飞行距离指示器（顶栏，阶段指示器旁） */
.flight-dist-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(148, 163, 184, 0.25);
  font-size: 13px;
  font-weight: 600;
  color: #c084fc;
  transition: all 0.3s;
}
.flight-dist-indicator i { font-size: 12px; }
.flight-dist-indicator .fdi-label {
  font-size: 11px;
  color: rgba(203, 213, 225, 0.85);
  letter-spacing: 1px;
}
.flight-dist-indicator .fdi-value {
  font-family: "Consolas", "Courier New", monospace;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 6px rgba(192, 132, 252, 0.55);
}
.flight-dist-indicator .fdi-unit {
  font-size: 11px;
  color: rgba(148, 163, 184, 0.9);
}
@media (max-width: 700px) {
  .flight-dist-indicator .fdi-label { display: none; }
}

/* 检查单浮层 */
/* 检查单（侧边栏内嵌，不再浮在画布上） */
.checklist-sidebar {
  margin-top: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
  color: #1f2937;
}
.checklist-overlay .checklist-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
  border-bottom: 1px solid #e5e7eb;
}
.checklist-overlay .tab-btn {
  flex: 1;
  padding: 5px 8px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: #6b7280;
  font-size: 12px;
  cursor: pointer;
  margin-bottom: -1px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-family: inherit;
}
.checklist-overlay .tab-btn.active {
  color: #1d4ed8;
  border-bottom-color: #2563eb;
  font-weight: 600;
}
.checklist-overlay .tab-btn i { font-size: 11px; }
.checklist-overlay .checklist-tab-content { display: none; }
.checklist-overlay .checklist-tab-content.active { display: block; }
.checklist-overlay ul { padding-left: 18px; margin: 0; list-style: none; }
.checklist-overlay li {
  padding: 3px 0;
  font-size: 11.5px;
  line-height: 1.4;
  position: relative;
}
.checklist-overlay li::before {
  content: '\f0c8';
  font-family: "Font Awesome 6 Free";
  font-weight: 400;
  font-size: 10px;
  color: #d1d5db;
  position: absolute;
  left: -16px;
  top: 4px;
}
.checklist-overlay li.done {
  color: #047857;
}
.checklist-overlay li.done::before {
  content: '\f00c';
  font-weight: 900;
  color: #10b981;
}
.checklist-overlay li.active {
  color: #1d4ed8;
  font-weight: 600;
}
.checklist-overlay li.active::before {
  color: #3b82f6;
  content: '\f0c8';
  font-weight: 900;
}

/* 机型信息占位符 */
.aircraft-info-placeholder {
  color: #94a3b8;
  text-align: center;
  font-size: 12px;
}
.info-col .info-placeholder {
  color: #94a3b8;
  text-align: center;
  font-size: 12px;
  padding: 20px 0;
}

/* ═══ 画布透明叠加层（飞行状态 / 飞行距离 / 暂停 / 重置）═══ */
.canvas-overlay-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 12px 16px;
  pointer-events: none;
  z-index: 10;
  gap: 12px;
}
.canvas-overlay-bottom .overlay-left,
.canvas-overlay-bottom .overlay-right {
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
}

/* 叠加层：飞行阶段指示器 */
.overlay-phase {
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #e2e8f0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}
.overlay-phase.phase-ground    { color: #cbd5e1; }
.overlay-phase.phase-rolling   { color: #fbbf24; border-color: rgba(251, 191, 36, 0.5); }
.overlay-phase.phase-rotating  { color: #4ade80; border-color: rgba(74, 222, 128, 0.5); }
.overlay-phase.phase-airborne  { color: #60a5fa; border-color: rgba(96, 165, 250, 0.5); }
.overlay-phase.phase-approach  { color: #38bdf8; border-color: rgba(56, 189, 248, 0.5); }
.overlay-phase.phase-flare     { color: #fbbf24; border-color: rgba(251, 191, 36, 0.5); }
.overlay-phase.phase-landing   { color: #4ade80; border-color: rgba(74, 222, 128, 0.5); }

/* 叠加层：飞行距离指示器 */
.overlay-dist {
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #c084fc;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}
.overlay-dist .fdi-label {
  color: rgba(203, 213, 225, 0.9);
}
.overlay-dist .fdi-unit {
  color: rgba(148, 163, 184, 0.9);
}

/* 叠加层：暂停 / 重置按钮 */
.overlay-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
.overlay-btn:hover {
  background: rgba(59, 130, 246, 0.3);
  border-color: rgba(59, 130, 246, 0.6);
  color: #fff;
}
.overlay-btn i { font-size: 13px; }
.overlay-btn.active {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.6);
  color: #fca5a5;
}

/* 窄屏：叠加层按钮只显示图标 */
@media (max-width: 768px) {
  .overlay-btn span { display: none; }
  .overlay-btn { padding: 6px 10px; }
  .overlay-phase { font-size: 11px; padding: 3px 10px; }
  .overlay-dist { font-size: 11px; padding: 3px 10px; }
  .overlay-dist .fdi-label { display: none; }
}
