/* ==========================================================================
   site-analyzer.css v2.0 — 交互地图选址 × 楼层微环境 × 双轨人流 × 实拍直析工作台
   响应式支持：宽屏桌面 (>=1280px) / 笔记本 (1024-1279px) / 平板 / 手机 (375-767px) + A4 打印
   ========================================================================== */

.sa-shell {
  margin-top: 8px;
  border-radius: 20px;
  border: 1px solid rgba(15, 118, 110, 0.22);
  background: #ffffff;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
  overflow: visible;
}

.sa-head {
  padding: 20px 24px 16px;
  border-radius: 19px 19px 0 0;
  background: linear-gradient(135deg, #0b1220 0%, #102436 55%, #0f3a3b 100%);
  color: #f8fafc;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.sa-head-kicker {
  margin: 0 0 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #5eead4;
  text-transform: uppercase;
}

.sa-head h2 {
  margin: 0 0 5px;
  font-size: 21px;
  line-height: 1.3;
  color: #ffffff;
}

.sa-head p {
  margin: 0;
  font-size: 13px;
  color: #cbd5e1;
  max-width: 720px;
  line-height: 1.55;
}

.sa-tier-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sa-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.sa-badge-geo { background: rgba(16, 185, 129, 0.16); color: #047857; border: 1px solid rgba(16, 185, 129, 0.35); }
.sa-head .sa-badge-geo { color: #6ee7b7; background: rgba(16, 185, 129, 0.18); }
.sa-badge-measured { background: rgba(6, 182, 212, 0.14); color: #0e7490; border: 1px solid rgba(6, 182, 212, 0.35); }
.sa-head .sa-badge-measured { color: #67e8f9; }
.sa-badge-user { background: rgba(59, 130, 246, 0.12); color: #1d4ed8; border: 1px solid rgba(59, 130, 246, 0.32); }
.sa-head .sa-badge-user { color: #93c5fd; }
.sa-badge-est { background: rgba(139, 92, 246, 0.12); color: #6d28d9; border: 1px solid rgba(139, 92, 246, 0.32); }
.sa-head .sa-badge-est { color: #c4b5fd; }
.sa-badge-std { background: rgba(245, 158, 11, 0.12); color: #b45309; border: 1px solid rgba(245, 158, 11, 0.32); }
.sa-head .sa-badge-std { color: #fcd34d; }
.sa-badge-field { background: rgba(239, 68, 68, 0.10); color: #b91c1c; border: 1px solid rgba(239, 68, 68, 0.28); }
.sa-head .sa-badge-field { color: #fca5a5; }

/* ---------------------- 快捷实测样本条 ---------------------- */
.sa-samples-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #f8fafc;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  overflow-x: auto;
  scrollbar-width: thin;
}

.sa-samples-strip > span {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  white-space: nowrap;
  flex-shrink: 0;
}

.sa-sample-btn {
  flex-shrink: 0;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(15, 118, 110, 0.24);
  background: #ffffff;
  color: #0f766e;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
  white-space: nowrap;
}

.sa-sample-btn:hover,
.sa-sample-btn.is-active {
  background: #0f766e;
  color: #ffffff;
  border-color: #0f766e;
}

/* ---------------------- 黄金双栏工作台（左图右控） ---------------------- */
.sa-workbench {
  display: grid;
  grid-template-columns: minmax(340px, 44%) minmax(0, 56%);
  gap: 0;
  align-items: start;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.sa-map-col {
  min-width: 0;
  padding: 16px;
  background: #f1f5f9;
  border-right: 1px solid rgba(15, 23, 42, 0.08);
  position: sticky;
  top: 76px;
}

.sa-map-shell {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #e2e8f0;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
}

.sa-map-shell.is-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 9990;
  border-radius: 0;
  border: none;
  display: flex;
  flex-direction: column;
  background: #0f172a;
}

.sa-map-lock-scroll {
  overflow: hidden;
}

.sa-map-canvas {
  width: 100%;
  height: 410px;
  z-index: 1;
}

.sa-map-shell.is-fullscreen .sa-map-canvas {
  flex: 1;
  height: 100%;
}

.sa-map-radar-fallback {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 5;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #0f172a 0%, #020617 100%);
  color: #cbd5e1;
  text-align: center;
}

.sa-offline-box p {
  margin: 8px 0 0;
  font-size: 12px;
  color: #94a3b8;
}

/* 地图悬浮顶部搜索 + 控制条 */
.sa-map-top-bar {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  z-index: 600;
  display: flex;
  gap: 6px;
  align-items: flex-start;
  pointer-events: none;
}

.sa-map-search-box {
  position: relative;
  flex: 1;
  min-width: 0;
  pointer-events: auto;
}

.sa-map-search-input {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.18);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  color: #0f172a;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
}

.sa-map-search-input:focus {
  outline: 2px solid #0f766e;
  border-color: #0f766e;
}

.sa-map-suggest {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 10px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.18);
  max-height: 260px;
  overflow-y: auto;
  z-index: 800;
}

.sa-suggest-item {
  width: 100%;
  text-align: left;
  padding: 8px 11px;
  border: none;
  border-bottom: 1px solid #f1f5f9;
  background: #ffffff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sa-suggest-item:hover {
  background: #f0fdfa;
}

.sa-si-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}

.sa-si-main strong {
  font-size: 13px;
  color: #0f172a;
}

.sa-si-src {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-weight: 700;
  white-space: nowrap;
}

.sa-suggest-item small {
  font-size: 11px;
  color: #64748b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sa-map-tools {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
  pointer-events: auto;
}

.sa-map-pill-btn {
  padding: 7px 9px;
  border-radius: 9px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  color: #0f172a;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.10);
  transition: all 0.15s ease;
}

.sa-map-pill-btn:hover {
  background: #0f766e;
  color: #ffffff;
  border-color: #0f766e;
}

.sa-map-pill-btn.is-busy {
  opacity: 0.7;
  cursor: wait;
}

.sa-map-confirm-bar {
  display: none;
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 850;
}

.sa-map-shell.is-fullscreen .sa-map-confirm-bar {
  display: block;
}

.sa-map-confirm-btn {
  padding: 11px 24px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #0f766e, #047857);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(4, 120, 87, 0.45);
  cursor: pointer;
}

/* 地图底部圈层与分类过滤（单行毛玻璃胶囊，绝不换行遮挡视野） */
.sa-map-bottom-bar {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 550;
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  max-width: calc(100% - 54px);
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 1px;
}

.sa-map-bottom-bar::-webkit-scrollbar {
  display: none;
}

.sa-ring-btn,
.sa-cat-btn {
  flex-shrink: 0;
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  color: #334155;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.sa-ring-btn.is-active {
  background: #0f766e;
  color: #ffffff;
  border-color: #0f766e;
}

.sa-cat-btn.is-active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

/* 地图大头针脉冲 */
.sa-pin-wrap { background: transparent; border: none; }
.sa-pin-marker { position: relative; width: 32px; height: 40px; }
.sa-pin-pulse {
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 24px;
  height: 24px;
  margin-left: -12px;
  border-radius: 50%;
  background: rgba(15, 118, 110, 0.32);
  animation: saPulse 1.8s infinite;
}
@keyframes saPulse {
  0% { transform: scale(0.45); opacity: 0.9; }
  100% { transform: scale(1.85); opacity: 0; }
}

.sa-map-popup strong { display: block; font-size: 13px; color: #0f172a; margin: 2px 0; }
.sa-map-popup p { margin: 0; font-size: 12px; color: #334155; }
.sa-map-popup small { display: block; margin-top: 2px; font-size: 11px; color: #64748b; }
.sa-mp-tag { font-size: 11px; font-weight: 700; }

/* 地图下方位置状态条 + 现场实勘快捷三连按钮 */
.sa-map-status {
  margin-top: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  font-size: 12px;
  color: #334155;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sa-map-status strong {
  color: #0f172a;
  font-size: 13px;
}

.sa-field-quick-bar {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.sa-field-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 9px 8px;
  border-radius: 10px;
  border: 1px solid rgba(15, 118, 110, 0.28);
  background: #ffffff;
  color: #0f172a;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
  text-align: center;
}

.sa-field-btn:hover {
  background: #f0fdfa;
  border-color: #0f766e;
  color: #0f766e;
}

.sa-field-btn.is-accent {
  background: linear-gradient(135deg, #ecfdf5, #f0fdfa);
  color: #047857;
}

/* ---------------------- 右侧 3 步渐进式评估控制卡 ---------------------- */
.sa-ctrl-col {
  padding: 18px 20px 20px;
  background: #ffffff;
}

.sa-step-block {
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px dashed rgba(15, 23, 42, 0.10);
}

.sa-step-block:last-of-type {
  border-bottom: none;
  margin-bottom: 10px;
  padding-bottom: 6px;
}

.sa-step-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 10px;
}

.sa-step-title h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 7px;
}

.sa-step-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #0f766e;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sa-step-hint {
  font-size: 11.5px;
  color: #64748b;
}

.sa-sub-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  margin: 10px 0 6px;
}

.sa-sub-label small {
  font-weight: 500;
  color: #64748b;
  font-size: 11px;
}

/* 通用响应式芯片组 */
.sa-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sa-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 11px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.13);
  background: #f8fafc;
  color: #1e293b;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.14s ease;
  user-select: none;
}

.sa-chip:hover {
  border-color: #0f766e;
  background: #f0fdfa;
}

.sa-chip.is-active {
  background: #0f766e;
  border-color: #0f766e;
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(15, 118, 110, 0.22);
}

.sa-chip small {
  font-size: 10.5px;
  opacity: 0.78;
  font-weight: 500;
}

.sa-chip.is-active small {
  color: #ccfbf1;
  opacity: 1;
}

.sa-chip-venue {
  flex: 1 1 calc(33.33% - 6px);
  min-width: 105px;
  justify-content: center;
  padding: 8px 8px;
}

.sa-chip-band {
  flex: 1 1 calc(20% - 6px);
  min-width: 92px;
  flex-direction: column;
  align-items: center;
  padding: 7px 6px;
  gap: 2px;
  text-align: center;
}

.sa-cascade-note {
  margin-top: 6px;
  padding: 7px 10px;
  border-radius: 8px;
  background: #f0fdfa;
  border: 1px solid rgba(15, 118, 110, 0.16);
  font-size: 11.5px;
  color: #0f766e;
  line-height: 1.5;
}

/* 面积行 */
.sa-inline-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.sa-num-input-wrap {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 10px;
  background: #ffffff;
  overflow: hidden;
  padding-right: 10px;
}

.sa-num-input-wrap:focus-within {
  border-color: #0f766e;
  box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.15);
}

.sa-num-input-wrap input {
  width: 106px;
  border: none;
  padding: 8px 10px;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  background: transparent;
}

.sa-num-input-wrap input:focus {
  outline: none;
}

.sa-num-unit {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}

.sa-preset-pill {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: #ffffff;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.sa-preset-pill:hover,
.sa-preset-pill.is-active {
  border-color: #0f766e;
  background: #ecfdf5;
  color: #047857;
}

/* 双轨人流分段切换 */
.sa-seg-tabs {
  display: inline-flex;
  padding: 3px;
  border-radius: 10px;
  background: #f1f5f9;
  gap: 3px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.sa-seg-tab {
  padding: 6px 11px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sa-seg-tab.is-active {
  background: #ffffff;
  color: #0f766e;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.sa-slot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.sa-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sa-field > span {
  font-size: 11.5px;
  font-weight: 700;
  color: #334155;
}

.sa-field > span small {
  display: block;
  font-weight: 500;
  font-size: 10.5px;
  color: #64748b;
}

.sa-field input,
.sa-field select {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border-radius: 9px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  background: #ffffff;
  color: #0f172a;
  font-size: 13px;
}

.sa-field input:focus,
.sa-field select:focus {
  outline: none;
  border-color: #0f766e;
  box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.14);
}

/* 租金反算条 */
.sa-rent-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.sa-rent-preview {
  font-size: 12px;
  color: #0f766e;
  font-weight: 600;
}

/* ---------------------- 现场实拍照片直析区 ---------------------- */
.sa-photo-box {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px dashed rgba(15, 118, 110, 0.36);
  background: linear-gradient(180deg, #f8fafc 0%, #f0fdfa 100%);
}

.sa-photo-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sa-photo-head strong {
  font-size: 13px;
  color: #0f172a;
}

.sa-photo-head small {
  display: block;
  font-size: 11.5px;
  color: #475569;
}

.sa-photo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sa-photo-btn {
  padding: 6px 11px;
  border-radius: 9px;
  border: 1px solid rgba(15, 118, 110, 0.32);
  background: #ffffff;
  color: #0f766e;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.sa-photo-btn:hover {
  background: #0f766e;
  color: #ffffff;
}

.sa-photo-btn.is-primary {
  background: #0f766e;
  color: #ffffff;
  border-color: #0f766e;
}

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

.sa-photo-thumbs {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 8px;
}

.sa-photo-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #ffffff;
}

.sa-photo-card img {
  width: 100%;
  height: 82px;
  object-fit: cover;
  display: block;
}

.sa-photo-card select {
  width: 100%;
  border: none;
  border-top: 1px solid #e2e8f0;
  padding: 4px 6px;
  font-size: 11px;
  font-weight: 600;
  color: #334155;
  background: #ffffff;
}

.sa-photo-del {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: rgba(15, 23, 42, 0.72);
  color: #ffffff;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}

/* 折叠高阶财务 */
.sa-advanced {
  margin-top: 10px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 10px;
  padding: 8px 12px;
  background: #f8fafc;
}

.sa-advanced summary {
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 700;
  color: #334155;
  list-style: none;
}

.sa-advanced-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

/* 主提交行 */
.sa-submit-row {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sa-submit-btn {
  flex: 1 1 240px;
  padding: 12px 20px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #0f766e 0%, #047857 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.26);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sa-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(15, 118, 110, 0.34);
}

.sa-submit-btn:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.sa-submit-btn.is-dirty {
  background: linear-gradient(135deg, #0d9488 0%, #059669 100%);
}

.sa-action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sa-btn-lite {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 11px;
  border-radius: 9px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: #ffffff;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.sa-btn-lite:hover {
  border-color: #0f766e;
  color: #0f766e;
  background: #f0fdfa;
}

/* ---------------------- 评估结果区 ---------------------- */
.sa-output {
  padding: 20px 22px 24px;
  background: #f8fafc;
  border-radius: 0 0 19px 19px;
}

.sa-loading {
  padding: 32px 20px;
  text-align: center;
  color: #475569;
  font-size: 14px;
  font-weight: 600;
}

.sa-verdict-banner {
  padding: 16px 18px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.10);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.sa-verdict-banner.is-ok { border-left: 5px solid #10b981; }
.sa-verdict-banner.is-warn { border-left: 5px solid #f59e0b; }
.sa-verdict-banner.is-risk { border-left: 5px solid #ef4444; }

.sa-verdict-title {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
}

.sa-verdict-sub {
  margin: 0;
  font-size: 12.5px;
  color: #475569;
}

/* 结果交付按钮栏（分层清晰） */
.sa-deliver-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.sa-deliver-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 15px;
  border-radius: 10px;
  background: #0f172a;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.sa-deliver-primary:hover {
  background: #0f766e;
}

.sa-deliver-compare {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px 13px;
  border-radius: 10px;
  border: 1px solid #0f766e;
  background: #ecfdf5;
  color: #047857;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.sa-deliver-compare.is-added {
  background: #0f766e;
  color: #ffffff;
}

/* 冲突预警条 */
.sa-conflicts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.sa-conflict-item {
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 12.5px;
  line-height: 1.55;
}

.sa-conflict-item.is-high {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.sa-conflict-item.is-warn {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

.sa-conflict-item strong {
  display: block;
  font-size: 13px;
  margin-bottom: 2px;
}

/* 4 列核心 KPI */
.sa-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.sa-kpi {
  padding: 14px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sa-kpi-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #64748b;
  font-weight: 700;
}

.sa-kpi-val {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.sa-kpi-val.is-ok { color: #047857; }
.sa-kpi-val.is-warn { color: #b45309; }
.sa-kpi-val.is-risk { color: #b91c1c; }

.sa-kpi-sub {
  font-size: 11.5px;
  color: #475569;
  line-height: 1.45;
}

/* 通用报告卡片网格 */
.sa-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.sa-card {
  padding: 16px 18px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  margin-bottom: 14px;
}

.sa-grid-2 .sa-card {
  margin-bottom: 0;
}

.sa-card-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.sa-card-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
}

/* 24h 双曲线 SVG */
.sa-curve-wrap {
  width: 100%;
  overflow-x: auto;
}

.sa-curve-svg {
  width: 100%;
  min-width: 360px;
  height: auto;
  display: block;
}

.sa-curve-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
  color: #475569;
  margin-top: 6px;
}

.sa-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
}

/* 透明公式清单 */
.sa-formula-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.sa-formula-list li {
  padding: 8px 10px;
  border-radius: 9px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 12px;
  color: #334155;
  line-height: 1.5;
}

.sa-formula-list li strong {
  color: #0f172a;
}

/* 三档人流/营收条 */
.sa-tier-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0;
}

.sa-tier-box {
  padding: 10px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  text-align: center;
}

.sa-tier-box.is-main {
  background: #f0fdfa;
  border-color: rgba(15, 118, 110, 0.35);
}

.sa-tier-box small {
  display: block;
  font-size: 11px;
  color: #64748b;
}

.sa-tier-box strong {
  display: block;
  font-size: 16px;
  color: #0f172a;
  margin: 3px 0 2px;
}

.sa-tier-box span {
  font-size: 11px;
  color: #475569;
}

/* 实拍 AI 视觉诊断卡片 */
.sa-photo-audit-card {
  border: 1px solid rgba(15, 118, 110, 0.32);
  background: linear-gradient(180deg, #ffffff 0%, #f0fdfa 100%);
}

.sa-score-bars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.sa-score-mini {
  padding: 9px 10px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
}

.sa-score-mini span {
  font-size: 11px;
  color: #64748b;
  display: block;
}

.sa-score-mini strong {
  font-size: 17px;
  color: #0f766e;
}

.sa-bar-track {
  height: 5px;
  border-radius: 99px;
  background: #e2e8f0;
  margin-top: 4px;
  overflow: hidden;
}

.sa-bar-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #0f766e, #10b981);
}

/* POI 分组与三圈统计 */
.sa-ring-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.sa-ring-stat {
  padding: 9px 10px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  text-align: center;
}

.sa-ring-stat span { font-size: 11px; color: #64748b; display: block; }
.sa-ring-stat strong { font-size: 18px; color: #0f172a; }

.sa-poi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.sa-poi-box {
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.sa-poi-box h4 {
  margin: 0 0 6px;
  font-size: 12.5px;
  color: #0f172a;
  display: flex;
  justify-content: space-between;
}

.sa-poi-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sa-poi-list li {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  font-size: 11.5px;
  color: #334155;
}

.sa-poi-dist {
  white-space: nowrap;
  color: #0f766e;
  font-weight: 700;
}

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

.sa-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

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

.sa-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
}

.sa-table td.is-best {
  background: #ecfdf5;
  color: #047857;
  font-weight: 800;
}

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

.sa-rule-item {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  font-size: 12px;
  line-height: 1.55;
}

.sa-rule-item.is-high { border-left: 4px solid #ef4444; background: #fef2f2; }
.sa-rule-item.is-warn { border-left: 4px solid #f59e0b; background: #fffbeb; }
.sa-rule-item.is-info { border-left: 4px solid #0f766e; }

.sa-bullet-list {
  margin: 0;
  padding-left: 18px;
  font-size: 12.5px;
  color: #334155;
  line-height: 1.65;
}

/* ---------------------- 内置 15 分钟踩点计时器弹窗 ---------------------- */
.sa-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9995;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.sa-modal-backdrop[hidden] {
  display: none;
}

.sa-modal-card {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
}

.sa-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.sa-modal-head h3 {
  margin: 0;
  font-size: 16px;
  color: #0f172a;
}

.sa-modal-close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  cursor: pointer;
  font-size: 16px;
}

.sa-counter-clock {
  text-align: center;
  padding: 14px;
  border-radius: 14px;
  background: #0f172a;
  color: #ffffff;
  margin-bottom: 12px;
}

.sa-counter-time {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 36px;
  font-weight: 800;
  color: #5eead4;
  line-height: 1.1;
}

.sa-counter-stats {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 8px;
  font-size: 12.5px;
  color: #cbd5e1;
}

.sa-counter-stats strong {
  color: #ffffff;
  font-size: 16px;
}

.sa-tap-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.sa-tap-btn {
  padding: 16px 10px;
  border-radius: 14px;
  border: 2px solid #0f766e;
  background: #f0fdfa;
  color: #0f766e;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.08s ease;
}

.sa-tap-btn:active {
  transform: scale(0.96);
  background: #0f766e;
  color: #ffffff;
}

.sa-tap-btn.is-five {
  background: #0f766e;
  color: #ffffff;
}

/* ---------------------- 多铺 A/B/C 横向对比浮窗与抽屉 ---------------------- */
.sa-compare-fab {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 900;
  padding: 11px 16px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #0f172a, #0f766e);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.30);
  cursor: pointer;
}

.sa-compare-fab[hidden] {
  display: none;
}

.sa-compare-drawer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9992;
  background: #ffffff;
  border-top: 2px solid #0f766e;
  box-shadow: 0 -16px 48px rgba(15, 23, 42, 0.25);
  padding: 18px 22px 24px;
  max-height: 78vh;
  overflow-y: auto;
}

.sa-compare-drawer[hidden] {
  display: none;
}

/* 移动端底部吸顶操作栏 */
.sa-mobile-sticky {
  display: none;
}

/* 次级折叠纯财务计算器 */
.xw-calc-collapse {
  margin-top: 22px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 16px;
  background: #ffffff;
  padding: 14px 18px;
}

.xw-calc-collapse > summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
}

.xw-calc-collapse > summary small {
  font-weight: 500;
  font-size: 12px;
  color: #64748b;
}

/* ---------------------- 响应式适配：窄屏 / 平板 / 手机 ---------------------- */
@media (max-width: 1120px) {
  .sa-workbench {
    grid-template-columns: 1fr;
  }
  .sa-map-col {
    position: static;
    border-right: none;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  }
  .sa-map-canvas {
    height: 300px;
  }
  .sa-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sa-poi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .sa-head {
    padding: 16px;
  }
  .sa-head h2 {
    font-size: 18px;
  }
  .sa-map-col {
    padding: 12px;
  }
  .sa-map-canvas {
    height: 240px;
  }
  .sa-map-top-bar {
    flex-direction: column;
  }
  .sa-map-search-box {
    width: 100%;
  }
  .sa-ctrl-col {
    padding: 14px 14px 18px;
  }
  .sa-chip-venue {
    flex: 1 1 calc(50% - 6px);
  }
  .sa-chip-band {
    flex: 1 1 calc(33.3% - 6px);
  }
  .sa-slot-grid,
  .sa-advanced-grid,
  .sa-grid-2,
  .sa-poi-grid,
  .sa-score-bars {
    grid-template-columns: 1fr;
  }
  .sa-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sa-field-quick-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sa-output {
    padding: 14px 14px 92px;
  }
  .sa-mobile-sticky {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 880;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(15, 23, 42, 0.12);
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.10);
  }
  .sa-mobile-sticky-info {
    font-size: 11.5px;
    color: #334155;
    line-height: 1.35;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .sa-mobile-sticky-info strong {
    display: block;
    color: #0f172a;
    font-size: 12.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .sa-mobile-sticky-btn {
    flex-shrink: 0;
    padding: 10px 16px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #0f766e, #047857);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
  }
  .sa-compare-fab {
    left: auto;
    bottom: 76px;
    right: 12px;
    font-size: 12px;
    padding: 9px 13px;
  }
}

/* 20大业态四类分组标签栏（零拥挤高可扫描） */
.sa-ind-cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.sa-ind-cat-tab {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.14s ease;
}

.sa-ind-cat-tab small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  color: #475569;
  font-size: 10.5px;
  font-weight: 800;
}

.sa-ind-cat-tab:hover {
  border-color: #0f766e;
  color: #0f766e;
  background: #f0fdfa;
}

.sa-ind-cat-tab.is-active {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}

.sa-ind-cat-tab.is-active small {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.sa-chip[hidden] {
  display: none !important;
}

/* ==========================================================================
   实址 3D 城市数字孪生舞台（Three.js 真实 500m 建筑群 + 卫星地表 + 日照阴影 + AI 实景对比）
   ========================================================================== */
.sa-map-pill-btn.is-3d-cta {
  background: linear-gradient(135deg, #0f766e, #0d9488);
  border-color: #0f766e;
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(15, 118, 110, 0.34);
}
.sa-map-pill-btn.is-3d-cta:hover,
.sa-map-pill-btn.is-3d-cta.is-active {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  border-color: #0f172a;
  color: #ffffff;
}

.sa-field-btn.is-3d {
  background: linear-gradient(135deg, #0f172a, #0f766e);
  border-color: #0f766e;
  color: #ffffff;
  font-weight: 800;
}
.sa-field-btn.is-3d:hover {
  filter: brightness(1.08);
}

.sa-map-shell.is-3d-mode .sa-map-canvas,
.sa-map-shell.is-3d-mode .sa-map-bottom-bar,
.sa-map-shell.is-3d-mode .sa-map-radar-fallback,
.sa-map-shell.is-3d-mode #sa-btn-layer {
  display: none !important;
}

.sa-3d-twin {
  position: relative;
  width: 100%;
  height: 560px;
  background: #0b1324;
  overflow: hidden;
  border-radius: 14px;
}

.sa-map-shell.is-fullscreen .sa-3d-twin {
  height: 100% !important;
  border-radius: 0;
}

.s3d-stage {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  user-select: none;
}

.s3d-canvas-wrap {
  position: absolute;
  inset: 0;
  cursor: grab;
}
.s3d-canvas-wrap:active {
  cursor: grabbing;
}
.s3d-canvas-wrap canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* 顶部半透明毛玻璃遥测信息与图层切换条（避开父级搜索条） */
.s3d-hud-top {
  position: absolute;
  top: 52px;
  left: 10px;
  right: 10px;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}

.s3d-telemetry {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f8fafc;
  font-size: 11px;
  pointer-events: auto;
  max-width: 100%;
  overflow: hidden;
}
.s3d-telemetry strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 240px;
  font-weight: 700;
}
.s3d-telemetry small {
  color: #94a3b8;
  font-size: 10.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.s3d-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
  flex-shrink: 0;
}

.s3d-hud-pills {
  display: flex;
  flex-wrap: nowrap;
  gap: 5px;
  pointer-events: auto;
}

.s3d-btn {
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.s3d-btn:hover {
  background: rgba(30, 41, 59, 0.92);
  border-color: rgba(45, 212, 191, 0.65);
  color: #ffffff;
}
.s3d-btn.is-on {
  background: rgba(15, 118, 110, 0.85);
  border-color: rgba(45, 212, 191, 0.7);
  color: #ffffff;
}
.s3d-btn.is-ai {
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  border-color: rgba(254, 215, 170, 0.55);
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.42);
}
.s3d-btn.is-ai:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

/* 底部两行紧凑控制坞：日照时间轴 + 机位/AI 实景渲染 */
.s3d-hud-bottom {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  z-index: 25;
  display: flex;
  flex-direction: column;
  gap: 5px;
  pointer-events: none;
}

.s3d-time-strip {
  display: flex;
  flex-wrap: nowrap;
  gap: 3px;
  overflow-x: auto;
  scrollbar-width: none;
  pointer-events: auto;
  padding: 3px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  width: fit-content;
  max-width: 100%;
}
.s3d-time-strip::-webkit-scrollbar { display: none; }

.s3d-time-btn {
  flex-shrink: 0;
  padding: 3.5px 7.5px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: #cbd5e1;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.14s ease;
}
.s3d-time-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}
.s3d-time-btn.is-active {
  background: linear-gradient(135deg, #0d9488, #0f766e);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(13, 148, 136, 0.45);
}

.s3d-action-strip {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
  pointer-events: auto;
  overflow-x: auto;
  scrollbar-width: none;
}
.s3d-action-strip::-webkit-scrollbar { display: none; }
.s3d-cam-group,
.s3d-cta-group {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  flex-shrink: 0;
}
.s3d-action-strip .s3d-btn {
  padding: 4.5px 8px;
  font-size: 10.5px;
}

/* 3D 实时投影 POI / 竞品浮标（自动避让重叠） */
.s3d-labels-layer {
  position: absolute;
  inset: 0;
  z-index: 12;
  pointer-events: none;
  overflow: hidden;
}

.s3d-tag {
  position: absolute;
  transform: translate(-50%, -100%);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.80);
  backdrop-filter: blur(6px);
  border: 1px solid var(--tag-col, #38bdf8);
  color: #f8fafc;
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(2, 6, 23, 0.45);
}
.s3d-tag em {
  font-style: normal;
  font-size: 9.5px;
  color: #94a3b8;
  font-weight: 600;
}
.s3d-tag.is-hero {
  background: rgba(15, 118, 110, 0.94);
  border: 1.5px solid #5eead4;
  font-size: 11.5px;
  padding: 4px 10px;
  z-index: 5;
  box-shadow: 0 6px 20px rgba(15, 118, 110, 0.55);
}
.s3d-tag.is-hero em {
  color: #ccfbf1;
}
.s3d-tag.is-comp {
  background: rgba(127, 29, 29, 0.86);
  border-color: #f87171;
}

/* 3D 加载遮罩 */
.s3d-loading {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(11, 19, 36, 0.72);
  backdrop-filter: blur(6px);
  color: #f8fafc;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  padding: 20px;
}
.s3d-loading[hidden] {
  display: none !important;
}
.s3d-spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.22);
  border-top-color: #2dd4bf;
  animation: s3d-spin 0.8s linear infinite;
}
@keyframes s3d-spin {
  to { transform: rotate(360deg); }
}

/* AI 电影级实景航拍渲染：前后对比滑块弹窗 */
.s3d-pr-card {
  width: min(920px, 94vw);
  max-height: 92vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.42);
}
.s3d-pr-card .sa-modal-head small {
  display: block;
  color: #64748b;
  font-size: 12px;
  margin-top: 3px;
}
.s3d-pr-styles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}
.s3d-pr-style {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}
.s3d-pr-style.is-active {
  background: #0f766e;
  border-color: #0f766e;
  color: #ffffff;
}
.s3d-pr-viewer {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  background: #0f172a;
}
.s3d-pr-img-before,
.s3d-pr-img-after {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.s3d-pr-after-clip {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 22%);
}
.s3d-pr-slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 8;
}
.s3d-pr-badge {
  position: absolute;
  top: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(8px);
  z-index: 6;
  pointer-events: none;
}
.s3d-pr-badge.is-left { left: 12px; }
.s3d-pr-badge.is-right { right: 12px; background: linear-gradient(135deg, #f59e0b, #ea580c); }
.s3d-pr-busy {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(15, 23, 42, 0.74);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 13.5px;
  padding: 20px;
  text-align: center;
}
.s3d-pr-busy[hidden] { display: none !important; }
.s3d-pr-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}
.s3d-pr-note {
  font-size: 11.5px;
  color: #64748b;
}
.s3d-pr-foot-btns {
  display: flex;
  gap: 8px;
  align-items: center;
}

@media (max-width: 720px) {
  .sa-3d-twin {
    height: 430px;
  }
  .s3d-telemetry small {
    display: none;
  }
  .s3d-hud-top {
    top: 86px;
  }
  .s3d-action-strip {
    justify-content: flex-start;
  }
}

/* ---------------------- 专业 A4 尽调报告打印排版 ---------------------- */
@media print {
  .wb-page-hero,
  .sa-samples-strip,
  .sa-ctrl-col,
  .sa-field-quick-bar,
  .sa-map-top-bar,
  .sa-map-bottom-bar,
  .sa-deliver-bar,
  .sa-mobile-sticky,
  .sa-compare-fab,
  .sa-compare-drawer,
  .sa-modal-backdrop,
  .xw-calc-collapse,
  header,
  footer,
  nav {
    display: none !important;
  }
  .sa-shell {
    border: none !important;
    box-shadow: none !important;
  }
  .sa-workbench {
    display: block !important;
  }
  .sa-map-col {
    position: static !important;
    padding: 0 0 12px !important;
    background: #ffffff !important;
    border: none !important;
  }
  .sa-map-canvas {
    height: 220px !important;
  }
  .sa-output {
    padding: 0 !important;
    background: #ffffff !important;
  }
  .sa-card,
  .sa-kpi,
  .sa-verdict-banner {
    break-inside: avoid;
    box-shadow: none !important;
  }
}
