/* 舰队墙 L1 · 任务组 L2 */
.sfw-page {
  min-height: calc(100vh - 56px);
  background: #f3f5f8;
  padding: 28px 24px 48px;
  max-width: 1440px;
  margin: 0 auto;
}

.sfw-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 22px;
}

.sfw-eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #0f766e;
  font-weight: 600;
}

.sfw-hero h1 {
  margin: 0 0 8px;
  font-size: 28px;
  color: #0f172a;
}

.sfw-sub {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  max-width: 640px;
  line-height: 1.5;
}

.sfw-back {
  display: inline-block;
  margin-bottom: 8px;
  color: #0f766e;
  text-decoration: none;
  font-size: 13px;
}

.sfw-hero-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.sfw-btn {
  border: none;
  border-radius: 10px;
  background: #0d9488;
  color: #fff;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.sfw-btn:hover { background: #0f766e; }
.sfw-btn.ghost {
  background: #fff;
  color: #334155;
  border: 1px solid #e2e8f0;
}
.sfw-btn.ghost:hover { background: #f8fafc; }
.sfw-btn.small { padding: 7px 12px; font-size: 12px; }
.sfw-btn:disabled { opacity: 0.55; cursor: not-allowed; }

.sfw-kpi {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.sfw-kpi-card {
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}

.sfw-kpi-card .lab { font-size: 12px; color: #64748b; }
.sfw-kpi-card .val {
  margin-top: 6px;
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
}
.sfw-kpi-card.warn .val { color: #c2410c; }
.sfw-kpi-card.crit .val { color: #b91c1c; }

.sfw-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 14px;
  margin-bottom: 14px;
  align-items: stretch;
}

/* L2 任务页：左侧视频墙占宽、撑满与右侧等高 */
.smc-page .sfw-grid {
  grid-template-columns: 1.45fr 0.55fr;
}

.smc-page .sfw-grid > .sfw-panel:first-child {
  display: flex;
  flex-direction: column;
  min-height: 560px;
}

.smc-page .sfw-grid > .sfw-panel:first-child .sfw-panel-hd {
  flex-shrink: 0;
}

.sfw-panel {
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}

.sfw-panel-wide { margin-bottom: 10px; }

.sfw-panel-hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.sfw-panel-hd h2 {
  margin: 0;
  font-size: 16px;
  color: #0f172a;
}

.sfw-hint { font-size: 12px; color: #94a3b8; }

.sfw-missions {
  display: grid;
  gap: 10px;
}

.sfw-mission-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.sfw-mission-card:hover {
  border-color: #5eead4;
  box-shadow: 0 6px 18px rgba(13, 148, 136, 0.1);
}

.sfw-mission-card h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.sfw-mission-card p {
  margin: 0;
  font-size: 12px;
  color: #64748b;
  line-height: 1.45;
}

.sfw-mission-meta {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: #0f766e;
  font-weight: 600;
}

.sfw-alerts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 320px;
  overflow: auto;
}

.sfw-alert {
  border: 1px solid #fee2e2;
  background: #fff7ed;
  border-radius: 10px;
  padding: 10px 12px;
}

.sfw-alert.critical {
  background: #fef2f2;
  border-color: #fecaca;
}

.sfw-alert .t {
  font-size: 13px;
  font-weight: 600;
  color: #7c2d12;
}

.sfw-alert .d {
  margin-top: 4px;
  font-size: 12px;
  color: #9a3412;
}

.sfw-alert .acts {
  margin-top: 8px;
  display: flex;
  gap: 8px;
}

.sfw-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.sfw-filters select,
.sfw-filters input {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 13px;
  background: #fff;
}

.sfw-batch {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.sfw-table-wrap { overflow: auto; }

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

.sfw-table th,
.sfw-table td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid #eef2f7;
  white-space: nowrap;
}

.sfw-table th {
  color: #64748b;
  font-weight: 600;
  font-size: 12px;
}

.sfw-status {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: #f1f5f9;
  color: #334155;
}

.sfw-status.idle { background: #ecfdf5; color: #047857; }
.sfw-status.flying,
.sfw-status.patrolling,
.sfw-status.departing { background: #e0f2fe; color: #0369a1; }
.sfw-status.returning { background: #fef3c7; color: #b45309; }
.sfw-status.charging { background: #ede9fe; color: #6d28d9; }
.sfw-status.offline { background: #f1f5f9; color: #64748b; }
.sfw-status.alert { background: #fee2e2; color: #b91c1c; }

.sfw-foot {
  margin: 18px 0 0;
  text-align: center;
  color: #94a3b8;
  font-size: 12px;
}

.smc-watch {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 12px;
  min-height: 520px;
  height: 100%;
  align-content: stretch;
}

.smc-watch-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  background: #0f172a;
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}

.smc-watch-card img {
  width: 100%;
  flex: 1 1 auto;
  min-height: 140px;
  height: auto;
  object-fit: cover;
  opacity: 0.92;
  filter: grayscale(0.08);
}

.smc-watch-card .meta {
  flex-shrink: 0;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.35;
}

.smc-queue {
  margin-top: 12px;
  border-top: 1px solid #eef2f7;
  padding-top: 12px;
}

.smc-queue-item {
  font-size: 12px;
  color: #475569;
  padding: 6px 0;
  border-bottom: 1px dashed #e2e8f0;
}

@media (max-width: 1100px) {
  .sfw-kpi { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sfw-grid { grid-template-columns: 1fr; }
  .smc-page .sfw-grid { grid-template-columns: 1fr; }
  .smc-page .sfw-grid > .sfw-panel:first-child { min-height: 0; }
  .smc-watch { min-height: 480px; }
}

@media (max-width: 720px) {
  .sfw-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sfw-hero { flex-direction: column; align-items: flex-start; }
  .smc-watch {
    grid-template-columns: repeat(1, minmax(0, 1fr));
    grid-template-rows: none;
    min-height: 0;
  }
  .smc-watch-card img { min-height: 160px; }
}

@media (max-width: 1100px) and (min-width: 721px) {
  .smc-watch {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(140px, 1fr));
    min-height: 460px;
  }
}
