/* 共享机器人 · 列表 + 飞行项目控制台 */
.sr-page {
  min-height: calc(100vh - 56px);
  background: #f5f6fa;
}

.sr-hero {
  text-align: center;
  padding: 40px 24px 24px;
}

.sr-hero h1 {
  font-size: 32px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 10px;
}

.sr-hero p {
  font-size: 15px;
  color: #9ca3af;
}

.sr-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 48px;
}

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

@media (max-width: 1100px) {
  .sr-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .sr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.sr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 118px;
  padding: 18px 14px;
  border: 1px solid #eef0f4;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 6px rgba(15, 23, 42, 0.04);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  text-decoration: none;
  color: inherit;
}

.sr-card:hover {
  transform: translateY(-2px);
  border-color: #99f6e4;
  box-shadow: 0 8px 20px rgba(20, 184, 166, 0.12);
}

.sr-card-icon {
  font-size: 28px;
  line-height: 1;
}

.sr-card-title {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  text-align: center;
  line-height: 1.45;
}

.sr-card--ready {
  border: 2px solid #7dd3fc;
  box-shadow: 0 0 0 1px rgba(125, 211, 252, 0.35);
}

.sr-card--ready:hover {
  border-color: #22d3ee;
  box-shadow: 0 8px 20px rgba(34, 211, 238, 0.18);
}

.sr-card--soon {
  cursor: default;
  opacity: 0.78;
  background: #fafbfc;
}

.sr-card--soon:hover {
  transform: none;
  border-color: #eef0f4;
  box-shadow: 0 1px 6px rgba(15, 23, 42, 0.04);
}

.sr-card-badge--soon {
  color: #64748b;
  background: #f1f5f9;
}

.sr-section-title {
  font-size: 15px;
  font-weight: 600;
  color: #374151;
  margin: 0 0 14px;
  padding-left: 2px;
}

.sr-section-title--embodied {
  margin-top: 28px;
}

/* 具身人形 / 多形态机型产品条（类目网格下方） */
.sr-embodied {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 900px) {
  .sr-embodied { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .sr-embodied { grid-template-columns: 1fr; }
}

.sr-embodied-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 10px 14px 10px 10px;
  border-radius: 16px;
  background: #f5f5f7;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
  font: inherit;
  color: inherit;
  text-decoration: none;
}

.srf-model-card.is-preferred {
  border: 2px solid #14b8a6;
  box-shadow: 0 0 0 1px rgba(20, 184, 166, 0.25);
}

.src-edu-model-tab {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  margin: 0 6px 6px 0;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #374151;
  font-size: 12px;
  text-decoration: none;
}

.src-edu-model-tab.active {
  background: #ecfdf5;
  border-color: #5eead4;
  color: #0f766e;
  font-weight: 600;
}

.sr-embodied-card:hover {
  background: #ececef;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.sr-embodied-card.is-active {
  background: #d8d8dc;
  border-color: #cfcfd4;
}

.sr-embodied-card:focus-visible {
  outline: 2px solid #14b8a6;
  outline-offset: 2px;
}

.sr-embodied-thumb {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: #fff;
  object-fit: contain;
  object-position: center bottom;
  image-rendering: auto;
}

.sr-embodied-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sr-embodied-name {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  line-height: 1.25;
}

.sr-embodied-desc {
  font-size: 12px;
  color: #9ca3af;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sr-card-badge {
  font-size: 11px;
  color: #0d9488;
  background: #ccfbf1;
  padding: 2px 8px;
  border-radius: 999px;
}

/* —— 飞行机器人项目控制台 —— */
.srf-shell {
  min-height: calc(100vh - 56px);
  background: linear-gradient(180deg, #e8f7fb 0%, #f0f9ff 35%, #f5f6fa 100%);
}

.srf-topbar {
  background: linear-gradient(90deg, #7dd3fc 0%, #5eead4 100%);
  color: #0f172a;
  font-size: 13px;
  padding: 10px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: center;
}

.srf-topbar span {
  white-space: nowrap;
}

.srf-topbar strong {
  font-weight: 700;
}

.srf-header {
  padding: 20px 24px 12px;
  max-width: 1400px;
  margin: 0 auto;
}

.srf-header h1 {
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
}

.srf-header p {
  font-size: 14px;
  color: #64748b;
}

/* —— 调度匹配条（起飞点→任务点 · 共享机器人语义） —— */
.srf-dispatch {
  max-width: 1400px;
  margin: 0 auto 14px;
  padding: 0 24px;
}

.srf-dispatch-promo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  padding: 8px 14px;
  border-radius: 10px 10px 0 0;
  background: linear-gradient(90deg, #ecfeff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  border-bottom: none;
  font-size: 12px;
  color: #0f766e;
}

.srf-dispatch-promo strong {
  font-weight: 700;
  color: #0d9488;
}

.srf-dispatch-promo .srf-dispatch-promo-cta {
  flex-shrink: 0;
  border: none;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #14b8a6, #0ea5e9);
  cursor: pointer;
}

.srf-dispatch-from,
.srf-dispatch-to {
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.srf-dispatch-from {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px 14px 0 0;
  border-bottom: none;
}

.srf-dispatch.has-promo .srf-dispatch-from {
  border-radius: 0;
}

.srf-dispatch-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.srf-dispatch-dot.from {
  background: #14b8a6;
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.18);
}

.srf-dispatch-from-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.srf-dispatch-kicker {
  font-size: 11px;
  color: #94a3b8;
  letter-spacing: 0.02em;
}

.srf-dispatch-from-body strong {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.srf-dispatch-locate {
  flex-shrink: 0;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
}

.srf-dispatch-locate:hover {
  border-color: #14b8a6;
  color: #0d9488;
}

.srf-dispatch-to {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 0 0 14px 14px;
}

.srf-dispatch-search {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #f1f5f9;
  border: 1px solid transparent;
}

.srf-dispatch-search:focus-within {
  background: #fff;
  border-color: #14b8a6;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}

.srf-dispatch-search-ico {
  color: #64748b;
  font-size: 16px;
  line-height: 1;
}

.srf-dispatch-search input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
}

.srf-dispatch-search input::placeholder {
  color: #94a3b8;
  font-weight: 500;
}

.srf-dispatch-chip {
  flex-shrink: 0;
  max-width: 42%;
  border: 1px solid #bae6fd;
  background: #f0f9ff;
  color: #0369a1;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.srf-dispatch-chip:hover {
  border-color: #0ea5e9;
  background: #e0f2fe;
}

.srf-dispatch-actions {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-top: 10px;
}

.srf-dispatch-act {
  flex: 1;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 56px;
  padding: 8px 6px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.srf-dispatch-act:hover {
  border-color: #14b8a6;
  color: #0d9488;
  background: #f0fdfa;
}

.srf-dispatch-act .ico {
  font-size: 16px;
  line-height: 1;
}

.srf-dispatch-act.primary {
  border: none;
  color: #fff;
  background: linear-gradient(135deg, #14b8a6, #0ea5e9);
  box-shadow: 0 6px 16px rgba(14, 165, 233, 0.22);
}

.srf-dispatch-act.primary:hover {
  color: #fff;
  filter: brightness(1.04);
}

@media (max-width: 720px) {
  .srf-dispatch-to {
    flex-direction: column;
    align-items: stretch;
  }
  .srf-dispatch-chip {
    max-width: none;
  }
  .srf-dispatch-actions {
    flex-wrap: wrap;
  }
  .srf-dispatch-act {
    min-width: calc(50% - 4px);
  }
}

.srf-province-row {
  padding: 0 24px 8px;
  max-width: 1400px;
  margin: 0 auto;
}

.srf-province-label {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 8px;
  font-weight: 600;
}

.srf-province-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.srf-province-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #fff;
  font-size: 13px;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s;
}

.srf-province-tab:hover {
  border-color: #94a3b8;
}

.srf-province-tab.active.ready {
  border-color: #0d9488;
  background: #ecfdf5;
  color: #0f766e;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(20, 184, 166, 0.2);
}

.srf-province-tab.locked {
  color: #94a3b8;
  background: #f8fafc;
  cursor: pointer;
}

.srf-province-tab.locked.active {
  border-color: #e2e8f0;
  background: #f1f5f9;
  color: #64748b;
  font-weight: 600;
}

.srf-province-badge {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  font-weight: 600;
}

.srf-province-badge.ready {
  background: #ccfbf1;
  color: #0d9488;
}

.srf-province-locked {
  max-width: 1352px;
  margin: 0 24px 24px;
  margin-left: auto;
  margin-right: auto;
  padding: 48px 24px;
  text-align: center;
  background: #fff;
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  color: #64748b;
}

.srf-province-locked h3 {
  font-size: 18px;
  color: #334155;
  margin-bottom: 8px;
}

.srf-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 24px 10px;
  max-width: 1400px;
  margin: 0 auto;
}

.srf-spot-row {
  padding: 0 24px 14px;
  max-width: 1400px;
  margin: 0 auto;
}

.srf-spot-row[hidden] {
  display: none !important;
}

.srf-spot-label {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 8px;
}

.srf-spot-label strong {
  color: #0f766e;
}

.srf-spot-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.srf-spot-tab {
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px dashed #5eead4;
  background: #f0fdfa;
  font-size: 12px;
  color: #0f766e;
  cursor: pointer;
  transition: all 0.15s;
}

.srf-spot-tab:hover {
  background: #ccfbf1;
  border-style: solid;
}

.srf-spot-tab.active {
  background: linear-gradient(135deg, #14b8a6, #0ea5e9);
  border: 1px solid transparent;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(20, 184, 166, 0.3);
}

.srf-tab {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #fff;
  font-size: 13px;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s;
}

.srf-tab:hover {
  border-color: #14b8a6;
  color: #0f766e;
}

.srf-tab.active {
  background: linear-gradient(135deg, #14b8a6, #0ea5e9);
  border-color: transparent;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(20, 184, 166, 0.35);
}

.srf-subbar {
  margin: 0 24px 16px;
  max-width: 1352px;
  margin-left: auto;
  margin-right: auto;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #bae6fd;
  border-radius: 10px;
  padding: 10px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 13px;
  color: #334155;
}

.srf-subbar em {
  font-style: normal;
  color: #0d9488;
  font-weight: 600;
}

.srf-robot-row {
  padding: 0 24px 12px;
  max-width: 1400px;
  margin: 0 auto;
}

.srf-robot-label {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 8px;
  font-weight: 600;
}

.srf-robot-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.srf-robot-tab {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #fff;
  font-size: 12px;
  color: #475569;
  text-decoration: none;
  transition: all 0.15s;
  white-space: nowrap;
}

.srf-robot-tab:hover {
  border-color: #14b8a6;
  color: #0f766e;
}

.srf-robot-tab.active {
  background: linear-gradient(135deg, #14b8a6, #0ea5e9);
  border-color: transparent;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(20, 184, 166, 0.28);
}

.srf-robot-tab.locked {
  cursor: not-allowed;
  opacity: 0.65;
  background: #f8fafc;
  border-style: dashed;
}

.srf-robot-tab.locked:hover {
  border-color: #cbd5e1;
  color: #475569;
}

.srf-robot-soon {
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  margin-left: 2px;
}

.srf-fleet-stats {
  max-width: 1352px;
  margin: 0 24px 16px;
  margin-left: auto;
  margin-right: auto;
  padding: 12px;
  border: 2px solid #fca5a5;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.08);
}

@media (max-width: 1100px) {
  .srf-fleet-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .srf-fleet-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.srf-stat-card {
  border: 1px solid #99f6e4;
  border-radius: 10px;
  background: #fff;
  padding: 12px 14px 10px;
  min-height: 132px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s, border-color 0.15s;
}

.srf-stat-card:hover {
  border-color: #2dd4bf;
  box-shadow: 0 6px 18px rgba(20, 184, 166, 0.12);
}

.srf-stat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.srf-stat-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.srf-stat-extra {
  font-size: 13px;
  color: #64748b;
  font-weight: 600;
}

.srf-stat-extra.dots::before,
.srf-stat-extra.dots::after {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #14b8a6;
  margin-left: 4px;
  vertical-align: middle;
}

.srf-stat-extra.dots::before {
  margin-left: 0;
  margin-right: 4px;
}

.srf-stat-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
}

.srf-stat-ring {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  box-shadow: inset 0 0 0 6px #fff, inset 0 0 0 8px #e2e8f0, inset 0 0 0 14px #fff, inset 0 0 0 16px #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  color: #14b8a6;
}

.srf-stat-radar {
  width: 72px;
  height: 72px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.srf-stat-radar::before,
.srf-stat-radar::after {
  content: '';
  position: absolute;
  border: 2px solid #bae6fd;
  border-radius: 50%;
}

.srf-stat-radar::before {
  width: 72px;
  height: 72px;
  border-color: #7dd3fc;
  clip-path: polygon(50% 50%, 100% 0, 100% 100%, 0 100%, 0 0);
}

.srf-stat-radar::after {
  width: 48px;
  height: 48px;
  border-color: #38bdf8;
}

.srf-stat-radar span {
  position: relative;
  z-index: 1;
  font-size: 22px;
  font-weight: 800;
  color: #0284c7;
}

.srf-stat-radar .play {
  position: absolute;
  z-index: 2;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 7px 0 7px 12px;
  border-color: transparent transparent transparent #0ea5e9;
}

.srf-stat-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
}

.srf-stat-icon.returning { background: linear-gradient(135deg, #fb923c, #f97316); }
.srf-stat-icon.charging { background: linear-gradient(135deg, #facc15, #eab308); color: #713f12; }
.srf-stat-icon.departing { background: linear-gradient(135deg, #38bdf8, #0ea5e9); }

.srf-stat-foot {
  margin-top: 8px;
  text-align: center;
  font-size: 12px;
  color: #64748b;
}

.srf-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px 24px;
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 16px;
  align-items: stretch;
}

@media (max-width: 1100px) {
  .srf-main { grid-template-columns: 1fr; }
}

.srf-map {
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #7dd3fc;
  background: #dfe7f1;
  min-height: 380px;
  height: 420px;
  position: relative;
}

.srf-map--fleet .srf-map-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.srf-map--fleet.is-photo .srf-map-photo {
  opacity: 1;
  pointer-events: auto;
}

.srf-map--fleet.is-photo .srf-fleet-map {
  opacity: 0;
  pointer-events: none;
}

.srf-fleet-map {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #dfe7f1;
}

.srf-fleet-map .leaflet-container {
  width: 100%;
  height: 100%;
  background: #dfe7f1;
  font: inherit;
}

.srf-map-chrome {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.srf-map-chrome > * {
  pointer-events: auto;
}

.srf-map-city {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  border: none;
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.12);
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.srf-map-city:hover { color: #0d9488; }

.srf-map #srfMapPins.srf-map-pins-fallback {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  display: none;
}

.srf-map.is-photo #srfMapPins.srf-map-pins-fallback {
  display: block;
}

.srf-map img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: saturate(1.05) contrast(1.02);
}

.srf-map-caption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.72);
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(4px);
  max-width: calc(100% - 120px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.srf-map-live {
  position: absolute;
  top: 12px;
  right: 12px;
  left: auto;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(220, 38, 38, 0.92);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  animation: srf-live-pulse 1.6s ease-in-out infinite;
}

.srf-map-fab {
  position: absolute;
  right: 12px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.16);
  color: #0ea5e9;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.srf-map-fab-add { bottom: 100px; }
.srf-map-fab-locate { bottom: 52px; color: #2563eb; font-size: 16px; }

.srf-map-promo {
  position: absolute;
  right: 58px;
  bottom: 56px;
  border: none;
  border-radius: 999px;
  padding: 6px 10px;
  background: linear-gradient(135deg, #14b8a6, #0ea5e9);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35);
  cursor: pointer;
  white-space: nowrap;
}

.srf-map-promo:hover { filter: brightness(1.05); }

.srf-you-marker,
.srf-drone-marker {
  background: transparent !important;
  border: none !important;
}

.srf-you-pin {
  position: relative;
  width: 44px;
  height: 56px;
  margin-left: -22px;
  margin-top: -56px;
}

.srf-you-pin .head {
  width: 36px;
  height: 36px;
  margin: 0 auto;
  border-radius: 50%;
  background: linear-gradient(145deg, #14b8a6, #0d9488);
  border: 3px solid #fff;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 15px;
}

.srf-you-pin .stem {
  width: 3px;
  height: 14px;
  margin: -2px auto 0;
  background: #0d9488;
  border-radius: 2px;
}

.srf-you-pin .pulse {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 14px;
  height: 6px;
  margin-left: -7px;
  border-radius: 50%;
  background: rgba(13, 148, 136, 0.35);
}

.srf-you-label {
  position: absolute;
  left: 48px;
  top: 4px;
  max-width: 168px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.14);
  color: #0f172a;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.srf-you-label small {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: #64748b;
}

.srf-drone-craft {
  position: relative;
  width: 40px;
  height: 40px;
  margin-left: -20px;
  margin-top: -20px;
  transform-origin: center center;
}

.srf-drone-craft .body {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 2px 4px rgba(15, 23, 42, 0.35));
}

.srf-drone-craft .tag {
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  margin-top: 2px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
}

.srf-drone-craft.is-focus .tag { background: #2563eb; }

.srf-drone-craft.is-flying .body {
  animation: srf-drone-bob 1.8s ease-in-out infinite;
}

@keyframes srf-drone-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

@keyframes srf-live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.72; }
}

.srf-live-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 4px;
  background: #059669;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  vertical-align: middle;
}

.srf-demo-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 4px;
  background: #94a3b8;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  vertical-align: middle;
}

.srf-demo-toggle {
  margin-left: 10px;
  font-size: 12px;
  color: #64748b;
  cursor: pointer;
  white-space: nowrap;
}

.srf-demo-toggle input {
  margin-right: 4px;
  vertical-align: middle;
}

.srf-map-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.15) 0%, rgba(15, 23, 42, 0.45) 100%);
  pointer-events: none;
}

.srf-drone-pin {
  position: absolute;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(20, 184, 166, 0.92);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.srf-drone-pin.a { top: 28%; left: 22%; }
.srf-drone-pin.b { top: 42%; left: 58%; }
.srf-drone-pin.c { top: 62%; left: 38%; }

.srf-drone-pin.focus {
  background: rgba(37, 99, 235, 0.95);
  transform: scale(1.12);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.35), 0 2px 10px rgba(0, 0, 0, 0.28);
  z-index: 2;
}

.srf-table tr.srf-row-focus td {
  background: #eff6ff;
}

.srf-table tr.srf-row-focus td:first-child {
  box-shadow: inset 3px 0 0 #2563eb;
}

.srf-table-wrap {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.srf-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.srf-table thead {
  background: linear-gradient(90deg, #bae6fd, #99f6e4);
}

.srf-table th {
  padding: 10px 8px;
  text-align: left;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
}

.srf-table td {
  padding: 10px 8px;
  border-top: 1px solid #f1f5f9;
  color: #334155;
  vertical-align: middle;
}

.srf-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

.srf-table tbody tr:hover {
  background: #ecfdf5;
}

.srf-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.srf-status.flying {
  background: #dcfce7;
  color: #15803d;
}

.srf-status.idle {
  background: #e0f2fe;
  color: #0369a1;
}

.srf-status.returning {
  background: #ffedd5;
  color: #c2410c;
}

.srf-status.charging {
  background: #fef9c3;
  color: #a16207;
}

.srf-status.departing {
  background: #dbeafe;
  color: #1d4ed8;
}

.srf-side {
  background: #fff;
  border: 2px solid #7dd3fc;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.1);
}

.srf-side h3 {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  align-self: flex-start;
}

.srf-side img {
  width: 100%;
  max-width: 200px;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.srf-device-photo {
  aspect-ratio: 4 / 3;
  background: #f8fafc;
}

.srf-price-row {
  display: flex;
  gap: 16px;
  font-size: 18px;
  font-weight: 800;
  color: #0d9488;
}

.srf-btn-track {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #14b8a6, #0ea5e9);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(20, 184, 166, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}

.srf-btn-track:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(20, 184, 166, 0.45);
}

.srf-order-cell {
  text-align: center;
  white-space: nowrap;
}

.srf-order-dash {
  color: #cbd5e1;
}

.srf-btn-order,
.srf-btn-switch {
  height: 28px;
  padding: 0 14px;
  border: none;
  border-radius: 6px;
  background: linear-gradient(135deg, #14b8a6, #0ea5e9);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.28);
  transition: transform 0.12s ease, filter 0.12s ease, opacity 0.12s ease;
}

.srf-btn-order:hover,
.srf-btn-switch:hover {
  filter: brightness(1.05);
}

.srf-btn-order:active,
.srf-btn-switch:active {
  transform: scale(0.96);
}

.srf-btn-order:disabled,
.srf-btn-switch:disabled {
  opacity: 0.7;
  cursor: wait;
}

.srf-btn-switch.is-active {
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
}

.srf-model-row {
  max-width: 1400px;
  margin: 0 auto 16px;
  padding: 0 24px;
}

.srf-model-label {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 12px;
}

.srf-model-label span {
  font-weight: 400;
  color: #9ca3af;
  font-size: 12px;
  margin-left: 8px;
}

.srf-model-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 1400px) {
  .srf-model-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1200px) {
  .srf-model-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.srf-vendor-badge.edu {
  background: #7c3aed;
}

@media (max-width: 720px) {
  .srf-model-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.srf-device-card {
  position: relative;
  border: 1px solid #bae6fd;
  border-radius: 10px;
  padding: 12px 10px;
  background: #f8fafc;
  text-align: center;
}

.srf-model-card {
  border-color: #fecaca;
  background: #fffafa;
}

.srf-vendor-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: #dc2626;
  color: #fff;
}

.srf-device-id {
  font-size: 14px;
  font-weight: 800;
  color: #991b1b;
  margin-bottom: 4px;
}

.srf-device-model {
  display: inline-block;
  margin-top: 4px;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background: #fef2f2;
  color: #b91c1c;
  font-weight: 600;
}

.srf-device-dock {
  font-size: 10px;
  color: #64748b;
  line-height: 1.35;
  min-height: 28px;
  margin-bottom: 6px;
}

.srf-signal-pct {
  font-size: 18px;
  font-weight: 800;
  color: #0d9488;
}

.srf-signal-pct small {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
}

.srf-signal-bar-wrap {
  margin: 8px 0;
  height: 8px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
}

.srf-signal-bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #14b8a6, #0ea5e9);
}

.srf-model-idle {
  font-size: 16px;
  font-weight: 800;
  color: #0369a1;
  margin-top: 4px;
}

.srf-model-idle small {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
}

.srf-model-idle-zero {
  color: #94a3b8;
}

.srf-tag.ready {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: #dcfce7;
  color: #15803d;
}

.srf-remote-line {
  margin-top: 6px;
  font-size: 10px;
  color: #64748b;
  line-height: 1.35;
  min-height: 28px;
}

.srf-model-order {
  margin-top: 10px;
  width: 100%;
}

.srf-model-photo-wrap {
  position: relative;
  margin: 6px 0 8px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.srf-model-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.srf-model-photo-signal {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.srf-model-photo-signal small {
  font-size: 9px;
  font-weight: 600;
  opacity: 0.85;
}

.srf-model-price-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 800;
  color: #0d9488;
  margin-bottom: 6px;
}

.srf-flow {
  max-width: 1400px;
  margin: 0 auto 32px;
  padding: 14px 24px;
  background: linear-gradient(90deg, #7dd3fc 0%, #5eead4 100%);
  border-radius: 0;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: 0.02em;
}

/* —— 远程操控页 /console/flying/show —— */
.srf-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #0d9488;
  text-decoration: none;
}

.srf-back:hover {
  text-decoration: underline;
}

.srf-show-shell {
  padding-bottom: 24px;
}

.srf-show-header {
  max-width: 1400px;
  margin: 16px auto;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.srf-show-header > div:first-child {
  flex: 1;
  min-width: 220px;
}

.srf-show-header h1 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
}

.srf-show-header p {
  margin: 0;
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
}

.srf-show-header-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  flex-shrink: 0;
}

.srf-show-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.srf-show-badge.edu {
  background: #f5f3ff;
  color: #6d28d9;
  border: 1px solid #ddd6fe;
}

.srf-show-badge.dji {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.src-model-card-link {
  cursor: pointer;
}

.srf-show-badge.live {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

.srf-show-badge.live.ok {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}

.srf-show-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
  align-items: stretch;
}

@media (max-width: 1100px) {
  .srf-show-main { grid-template-columns: 1fr; }
}

.srf-show-video {
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #7dd3fc;
  background: #0f172a;
  min-height: 420px;
  position: relative;
}

.srf-show-video-media {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  display: block;
  background: #0f172a;
}

.srf-show-video img.srf-show-video-media,
.srf-show-video video.srf-show-video-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 420px;
}

.srf-show-video.rtc-active img.srf-show-video-media {
  opacity: 0;
  pointer-events: none;
}

.srf-show-video.rtc-active video.srf-show-video-rtc {
  display: block !important;
  z-index: 1;
}

.srf-show-badges-tl {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  max-width: min(70%, 420px);
  pointer-events: none;
}

.srf-show-video .srf-map-live {
  position: static;
  top: auto;
  right: auto;
  left: auto;
  flex-shrink: 0;
}

.srf-show-video .srf-show-rec {
  position: static;
  top: auto;
  left: auto;
  flex-shrink: 0;
}

.srf-show-video .srf-show-ai-hud {
  position: static;
  top: auto;
  left: auto;
  max-width: none;
}

.srf-show-hud-pills {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: min(55%, 360px);
  pointer-events: none;
}

.srf-show-hud-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(4px);
  font-size: 11px;
  color: #cbd5e1;
  white-space: nowrap;
}

.srf-show-hud-pill strong {
  color: #5eead4;
  font-weight: 800;
}

.srf-show-scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(180deg, transparent 0%, rgba(20, 184, 166, 0.06) 50%, transparent 100%);
  background-size: 100% 200%;
  animation: srf-show-scan 4s linear infinite;
}

@keyframes srf-show-scan {
  0% { background-position: 0 -100%; }
  100% { background-position: 0 100%; }
}

/* 兼容旧 HUD 块（若其它页仍引用） */
.srf-show-hud {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(4px);
}

.srf-show-hud-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  font-size: 11px;
  color: #cbd5e1;
}

.srf-show-hud-row strong {
  color: #5eead4;
  font-weight: 800;
}

.srf-show-crosshair {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 48px;
  height: 48px;
  margin: -24px 0 0 -24px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
}

.srf-show-crosshair::before,
.srf-show-crosshair::after {
  content: '';
  position: absolute;
  background: rgba(255, 255, 255, 0.35);
}

.srf-show-crosshair::before {
  left: 50%;
  top: 8px;
  bottom: 8px;
  width: 1px;
  margin-left: -0.5px;
}

.srf-show-crosshair::after {
  top: 50%;
  left: 8px;
  right: 8px;
  height: 1px;
  margin-top: -0.5px;
}

/* AI 实时叠加 · 直播 HUD（仅操控端 DOM，不写入图传流） */
.srf-show-ai-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 4;
}

.srf-show-ai-hud {
  position: absolute;
  top: 44px;
  left: 12px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(94, 234, 212, 0.35);
  backdrop-filter: blur(6px);
  font-size: 11px;
  color: #e2e8f0;
  max-width: calc(100% - 24px);
}

.srf-show-ai-hud.alert {
  border-color: rgba(248, 113, 113, 0.65);
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.25);
}

.srf-show-ai-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.8);
  animation: srf-ai-pulse 1.4s ease-in-out infinite;
}

.srf-show-ai-hud.alert .srf-show-ai-live-dot {
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.85);
}

@keyframes srf-ai-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.92); }
}

.srf-show-ai-hud-title {
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #5eead4;
}

.srf-show-ai-hud-stat {
  color: #cbd5e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.srf-show-ai-ticker {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.55) 100%);
  border-top: 1px solid rgba(94, 234, 212, 0.25);
  font-size: 12px;
  color: #e2e8f0;
}

.srf-show-ai-ticker.alert {
  border-top-color: rgba(248, 113, 113, 0.5);
  background: linear-gradient(0deg, rgba(69, 10, 10, 0.88) 0%, rgba(15, 23, 42, 0.5) 100%);
}

.srf-show-ai-ticker-label {
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(20, 184, 166, 0.25);
  color: #5eead4;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.srf-show-ai-ticker-text {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.srf-show-video .srf-map-caption {
  bottom: 44px;
  z-index: 5;
}

.srf-show-ai-panel {
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #e0f2fe;
  background: linear-gradient(180deg, #f0fdfa 0%, #fff 100%);
}

.srf-show-ai-panel-body {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.srf-show-ai-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #64748b;
}

.srf-show-ai-row strong {
  color: #0f766e;
  font-size: 12px;
  text-align: right;
}

.srf-show-ai-row strong.alert {
  color: #dc2626;
}

/* 简单版 · AI 三键开关（视觉 / 语音 / 叠加） */
.srf-show-ui-simple .srf-show-pro-block {
  display: none !important;
}

.srf-show-ui-pro .srf-show-pro-block {
  display: revert;
}

.srf-show-ui-pro .srf-show-metrics {
  display: grid;
}

.srf-show-ui-pro .srf-show-gimbal {
  display: block;
}

.srf-show-ui-pro .srf-show-actions.secondary {
  display: flex;
}

.srf-show-ai-toggles {
  margin: 14px 0 10px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #bae6fd;
  background: linear-gradient(180deg, #f0f9ff 0%, #fff 100%);
}

.srf-show-ai-sub {
  font-size: 11px;
  font-weight: 500;
  color: #64748b;
  letter-spacing: 0;
}

.srf-show-ai-toggle-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.srf-ai-toggle {
  appearance: none;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 6px;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s, box-shadow 0.15s;
}

.srf-ai-toggle:hover {
  border-color: #38bdf8;
  color: #0f766e;
}

.srf-ai-toggle.is-on {
  border-color: #14b8a6;
  background: linear-gradient(180deg, #ecfdf5 0%, #f0fdfa 100%);
  color: #0f766e;
  box-shadow: inset 0 0 0 1px rgba(20, 184, 166, 0.25);
}

.srf-show-ai-voice-btn {
  width: 100%;
  margin-top: 10px;
  padding: 12px 14px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(180deg, #0d9488 0%, #0f766e 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  touch-action: none;
  user-select: none;
}

.srf-show-ai-voice-btn.recording {
  background: linear-gradient(180deg, #dc2626 0%, #b91c1c 100%);
  animation: srf-ai-pulse 1s ease-in-out infinite;
}

.srf-show-ai-hint {
  margin: 8px 0 0;
  font-size: 11px;
  line-height: 1.45;
  color: #64748b;
}

.srf-show-ui-simple .srf-show-log {
  max-height: 120px;
}

.srf-show-modality-ground .srf-show-badge.dji {
  background: #fff7ed;
  color: #c2410c;
  border-color: #fdba74;
}

.srf-show-ground-only[hidden],
.srf-show-flying-only[hidden] {
  display: none !important;
}

.srf-show-modality-ground .srf-show-ai-toggles {
  border-color: #fed7aa;
  background: linear-gradient(180deg, #fff7ed 0%, #fff 100%);
}

.srf-show-rec {
  position: absolute;
  top: 12px;
  left: 72px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(220, 38, 38, 0.9);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.srf-show-rec i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  animation: srf-live-pulse 1s ease-in-out infinite;
}

.srf-show-control {
  background: #fff;
  border: 2px solid #7dd3fc;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.1);
}

.srf-show-device {
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.srf-show-device-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.srf-show-device-id {
  font-size: 20px;
  font-weight: 800;
  color: #0c4a6e;
}

.srf-show-device-model {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  margin-top: 2px;
}

.srf-show-device-dock {
  margin-top: 8px;
  font-size: 12px;
  color: #475569;
}

.srf-show-device-task {
  margin-top: 4px;
  font-size: 12px;
  color: #0d9488;
  font-weight: 600;
}

.srf-show-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.srf-show-metric {
  padding: 10px 12px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.srf-show-metric span {
  display: block;
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 4px;
}

.srf-show-metric strong {
  font-size: 14px;
  color: #0f172a;
}

.srf-show-section-title {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  margin-top: 4px;
}

.srf-show-pad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-width: 220px;
  margin: 0 auto;
}

.srf-show-pad-btn {
  height: 44px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
  font-size: 16px;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, transform 0.12s;
}

.srf-show-pad-btn:hover {
  background: #ecfeff;
  border-color: #2dd4bf;
  color: #0d9488;
}

.srf-show-pad-btn:active {
  transform: scale(0.96);
}

.srf-show-pad-btn.center {
  background: linear-gradient(135deg, #14b8a6, #0ea5e9);
  border-color: transparent;
  color: #fff;
}

.srf-show-alt-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.srf-show-alt-btn {
  height: 36px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
}

.srf-show-alt-btn:hover {
  border-color: #7dd3fc;
  color: #0d9488;
}

.srf-show-gimbal label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #64748b;
  margin-bottom: 6px;
}

.srf-show-gimbal input[type="range"] {
  width: 100%;
  accent-color: #0d9488;
}

.srf-show-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.srf-show-actions.secondary {
  grid-template-columns: repeat(3, 1fr);
}

.srf-show-action {
  height: 38px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  color: #374151;
  cursor: pointer;
}

.srf-show-action.primary {
  background: linear-gradient(135deg, #14b8a6, #0ea5e9);
  border-color: transparent;
  color: #fff;
}

.srf-show-action.warn {
  background: #fff7ed;
  border-color: #fdba74;
  color: #c2410c;
}

.srf-show-action.ghost {
  background: #f8fafc;
  font-size: 11px;
}

.srf-show-action:hover {
  filter: brightness(1.03);
}

.srf-show-log {
  max-height: 120px;
  overflow-y: auto;
  padding: 10px 12px;
  border-radius: 8px;
  background: #0f172a;
  font-family: ui-monospace, monospace;
  font-size: 11px;
  color: #94a3b8;
}

.srf-show-log-line {
  padding: 2px 0;
  line-height: 1.45;
}

.srf-show-log-line:first-child {
  color: #5eead4;
}

.srf-show-end {
  width: 100%;
  height: 40px;
  margin-top: 4px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #64748b, #475569);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.srf-show-end:hover {
  filter: brightness(1.05);
}

/* —— 管理后台 Tello EDU 完整配置 —— */
.src-show-hero {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 18px 20px 14px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.src-edu-page-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 0;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}

.src-edu-page-head h1 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
}

.src-edu-page-head p {
  margin: 0;
  font-size: 13px;
  color: #64748b;
  max-width: 720px;
  line-height: 1.5;
}

.src-edu-head-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

.src-show-admin-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 0;
  padding-top: 2px;
  align-items: center;
}

.src-show-model-tab {
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.src-show-model-tab:hover {
  border-color: #99f6e4;
  color: #0f766e;
}

.src-show-model-tab.active {
  background: #ecfdf5;
  border-color: #14b8a6;
  color: #0d9488;
  box-shadow: 0 0 0 1px rgba(20, 184, 166, 0.15);
}

.src-edu-pill {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: #f5f3ff;
  color: #6d28d9;
  border: 1px solid #ddd6fe;
}

.src-edu-pill.ok {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}

.src-edu-pill.off {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}

.src-edu-save-hint {
  font-size: 12px;
  color: #059669;
  font-weight: 600;
}

.src-edu-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 16px;
  align-items: start;
}

@media (max-width: 1100px) {
  .src-edu-layout { grid-template-columns: 1fr; }
}

.src-edu-monitor {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.src-edu-panel-head {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 8px;
}

.src-edu-video {
  min-height: 200px;
}

.src-edu-video img {
  min-height: 200px;
}

.src-edu-telemetry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.src-edu-telem {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 11px;
  color: #64748b;
}

.src-edu-telem strong {
  display: block;
  font-size: 14px;
  color: #0f172a;
  margin-top: 2px;
}

.src-edu-device-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px;
}

.src-edu-device-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.src-edu-device-meta {
  font-size: 11px;
  color: #64748b;
  line-height: 1.5;
}

.src-edu-workspace {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  min-height: 520px;
}

.src-edu-section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px;
  border-bottom: 1px solid #f1f5f9;
  background: #fafafa;
}

.src-edu-sec-btn {
  height: 32px;
  padding: 0 12px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
}

.src-edu-sec-btn.active {
  background: #f5f3ff;
  border-color: #a78bfa;
  color: #6d28d9;
}

.src-edu-sec-btn:hover {
  border-color: #c4b5fd;
}

.src-edu-section-body {
  padding: 16px;
}

.src-edu-panel {
  margin-bottom: 8px;
}

.src-edu-panel .src-edu-panel-head {
  font-size: 15px;
  margin-bottom: 12px;
  color: #111827;
}

.src-edu-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 800px) {
  .src-edu-form-grid { grid-template-columns: 1fr; }
}

.src-edu-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: #64748b;
}

.src-edu-field span {
  font-weight: 600;
}

.src-edu-field input,
.src-edu-field select,
.src-edu-field textarea {
  height: 36px;
  padding: 0 10px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 13px;
  color: #111827;
  background: #fff;
}

.src-edu-field textarea {
  height: auto;
  padding: 8px 10px;
  resize: vertical;
}

.src-edu-field input:focus,
.src-edu-field select:focus,
.src-edu-field textarea:focus {
  outline: none;
  border-color: #7c3aed;
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.12);
}

.src-edu-field input[readonly] {
  background: #f8fafc;
  color: #64748b;
}

.src-edu-check {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
}

.src-edu-check input {
  width: 16px;
  height: 16px;
  accent-color: #7c3aed;
}

.src-edu-panel-foot {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f0f9ff;
  border: 1px dashed #7dd3fc;
  font-size: 12px;
  color: #0369a1;
}

.src-edu-panel-foot code {
  font-size: 11px;
}

.src-edu-kv-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 12px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.src-edu-kv-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: #64748b;
}

.src-edu-kv-list strong {
  color: #0f172a;
  text-align: right;
}

.src-edu-subhead {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  margin: 16px 0 8px;
}

.src-edu-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.src-edu-table th,
.src-edu-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
  text-align: left;
}

.src-edu-table th {
  background: #fafafa;
  color: #64748b;
  font-weight: 600;
}

.src-edu-muted {
  color: #94a3b8;
  font-size: 11px;
}

.src-edu-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  background: #e0f2fe;
  color: #0369a1;
}

.src-edu-tag.draft {
  background: #f1f5f9;
  color: #64748b;
}

.src-edu-stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

@media (max-width: 800px) {
  .src-edu-stats-row { grid-template-columns: repeat(2, 1fr); }
}

.src-edu-stat {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px;
  text-align: center;
}

.src-edu-stat strong {
  display: block;
  font-size: 20px;
  color: #111827;
}

.src-edu-stat span {
  font-size: 11px;
  color: #64748b;
}

.src-edu-table tr.log-warn td:nth-child(2) {
  color: #c2410c;
  font-weight: 700;
}

.src-edu-table tr.log-info td:nth-child(2) {
  color: #0369a1;
  font-weight: 700;
}

.src-edu-fly-note {
  font-size: 13px;
  color: #64748b;
  margin: 0 0 12px;
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}
