.cloud-map-page {
  width: 100%;
  height: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
.cloud-map-page.embedded {
  background: #f0f2f5;
}
.cloud-map-page.no-chrome {
  grid-template-rows: 1fr;
}
.cloud-map-page.embedded .erp-body {
  grid-template-columns: 1fr;
  flex: 1;
  min-height: 0;
  height: 100%;
}
.cloud-map-page.embedded .erp-main-map {
  min-height: 0;
  height: 100%;
}
.cloud-map-page .erp-map-card-fill,
.cloud-map-page .erp-map-stage {
  height: 100%;
  min-height: 0;
}
.cloud-left-rail {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 35;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  /* 不能 overflow:auto，否则图层向右展开会被裁成滚动条 */
  overflow: visible;
  pointer-events: none;
}
.cloud-side-stack {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  overflow: visible;
  pointer-events: none;
}
.cloud-side-filter {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  width: 300px;
  max-width: none;
  flex-shrink: 0;
  padding: 12px 14px !important;
  pointer-events: auto;
}
.cloud-side-filter-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cloud-side-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  pointer-events: auto;
  background: transparent;
  border: none;
  box-shadow: none;
  padding-top: 0;
  overflow: visible;
}
.cloud-side-actions .erp-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #d9d9d9;
  color: #595959;
  box-shadow: 0 2px 8px rgba(15, 39, 68, 0.12);
}
.cloud-side-actions .erp-btn:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
}
.cloud-side-actions .cloud-layer-panel {
  position: relative;
  right: auto;
  bottom: auto;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  z-index: 50;
}
.cloud-side-filter .erp-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  color: #8c8c8c;
}
.cloud-side-filter #divRollerLayer,
.cloud-side-filter #divDrawType {
  display: flex !important;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cloud-side-filter #divRollerLayer li,
.cloud-side-filter #divDrawType li {
  margin: 0 6px 6px 0 !important;
  padding: 4px 10px !important;
  height: auto !important;
  line-height: 1.4 !important;
  border: 1px solid #d9d9d9 !important;
  border-radius: 4px !important;
  cursor: pointer;
  font-size: 12px;
  background: #fff !important;
  color: #333 !important;
  font-weight: 400 !important;
}
.cloud-side-filter #divRollerLayer li.active,
.cloud-side-filter #divDrawType li.active {
  color: #fff !important;
  background: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  font-weight: 600 !important;
}
.cloud-side-filter #roller {
  width: 100%;
  height: 32px;
  padding: 0 8px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  background: #fff;
  outline: none;
}
.cloud-br-legends {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 34;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  width: auto;
  pointer-events: auto;
}
.cloud-br-legend {
  position: static !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  width: 118px !important;
  padding: 10px !important;
  background: rgba(255, 255, 255, 0.94) !important;
  border: 1px solid rgba(232, 232, 232, 0.95);
  border-radius: 4px;
  box-shadow: 0 6px 20px rgba(15, 39, 68, 0.1);
  backdrop-filter: blur(6px);
}
.cloud-br-legend .color-block span {
  width: calc((100% - 6px) / 6) !important;
  height: 0 !important;
  padding-bottom: calc((100% - 6px) / 6) !important;
  min-height: 0 !important;
  line-height: 0 !important;
  font-size: 0 !important;
  box-sizing: border-box;
  overflow: hidden;
}
.cloud-br-road-legend {
  position: static !important;
  left: auto !important;
  bottom: auto !important;
  right: auto !important;
  top: auto !important;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  width: auto;
  box-sizing: border-box;
  padding: 8px 10px !important;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(232, 232, 232, 0.95);
  border-radius: 4px;
  box-shadow: 0 6px 20px rgba(15, 39, 68, 0.1);
}
.cloud-layer-btn {
  width: 36px;
  height: 36px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  background: #fff;
  color: #595959;
  display: block;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 39, 68, 0.12);
  padding: 0;
  position: relative;
  z-index: 2;
  overflow: hidden;
}
.cloud-layer-btn:hover,
.cloud-layer-btn.active {
  border-color: var(--primary-color);
}
.cloud-layer-btn-thumb {
  display: block;
  width: 100%;
  height: 100%;
}
.cloud-layer-btn-tag {
  position: absolute;
  right: 0;
  bottom: 0;
  max-width: 100%;
  padding: 0 3px;
  font-size: 10px;
  line-height: 14px;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  border-top-left-radius: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cloud-layer-btn.active .cloud-layer-btn-tag,
.cloud-layer-btn:hover .cloud-layer-btn-tag {
  background: var(--primary-color);
}
.cloud-layer-menu {
  position: absolute;
  left: calc(100% + 8px);
  top: 0;
  transform: none;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  z-index: 60;
  white-space: nowrap;
}
.cloud-layer-slide-enter-active,
.cloud-layer-slide-leave-active {
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.cloud-layer-slide-enter,
.cloud-layer-slide-leave-to {
  opacity: 0;
  transform: translateX(-12px);
}
.cloud-layer-card {
  position: relative;
  width: 86px;
  height: 64px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 39, 68, 0.18);
  flex-shrink: 0;
}
.cloud-layer-thumb {
  display: block;
  width: 100%;
  height: 100%;
}
.is-road .cloud-layer-thumb {
  background: linear-gradient(
      90deg,
      transparent 18px,
      #fff 18px 20px,
      transparent 20px
    ),
    linear-gradient(#c8e6c9 0 38%, #e8f0e0 38% 55%, #d7e3f4 55% 100%),
    repeating-linear-gradient(0deg, #b9c4d1 0 1px, transparent 1px 12px),
    repeating-linear-gradient(90deg, #b9c4d1 0 1px, transparent 1px 14px);
  background-color: #eef2f6;
}
.is-satellite .cloud-layer-thumb {
  background: linear-gradient(
      115deg,
      transparent 42%,
      rgba(90, 140, 70, 0.35) 42% 58%,
      transparent 58%
    ),
    linear-gradient(
      25deg,
      transparent 48%,
      rgba(70, 110, 55, 0.4) 48% 62%,
      transparent 62%
    ),
    radial-gradient(ellipse 70% 55% at 22% 70%, #6a8f4a 0%, transparent 70%),
    radial-gradient(ellipse 55% 45% at 78% 28%, #8a9a5a 0%, transparent 68%),
    radial-gradient(ellipse 40% 35% at 55% 55%, #4a6b38 0%, transparent 70%),
    linear-gradient(160deg, #3a5a32 0%, #2a4528 35%, #4d6a3a 68%, #243820 100%);
}
.is-none .cloud-layer-thumb {
  background: linear-gradient(180deg, #f3f5f8 0%, #e5e9ef 100%);
}
.cloud-layer-name {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 1px 6px;
  font-size: 12px;
  line-height: 18px;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  border-top-left-radius: 2px;
}
.cloud-layer-card.active {
  border-color: var(--primary-color);
}
.cloud-layer-card.active .cloud-layer-name {
  background: var(--primary-color);
}
.cloud-layer-card:hover {
  border-color: var(--primary-color);
}
.cloud-playbar {
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  box-sizing: border-box;
  width: min(720px, calc(100% - 48px));
  max-width: calc(100% - 48px);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: #fff;
  border: none;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(15, 39, 68, 0.14);
  overflow: visible;
  z-index: 35;
}
.cloud-play-btn {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border: none;
  border-radius: 50%;
  background: var(--primary-color);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16);
}
.cloud-play-btn .fa-play {
  margin-left: 2px;
  font-size: 14px;
}
.cloud-play-btn .fa-pause {
  font-size: 13px;
}
.cloud-play-btn:hover {
  filter: brightness(1.08);
}
.cloud-play-hidden {
  display: none !important;
}
.cloud-speed-wrap {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  height: 36px;
}
.cloud-speed-trigger {
  border: none;
  background: transparent;
  color: var(--primary-color);
  font-size: 14px;
  font-weight: 500;
  padding: 0 14px 0 0;
  cursor: pointer;
  outline: none;
  position: relative;
  line-height: 36px;
  height: 36px;
}
.cloud-speed-trigger::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--primary-color);
  transform: translateY(-40%);
  pointer-events: none;
}
.cloud-speed-menu {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  margin: 0;
  padding: 6px 0;
  list-style: none;
  min-width: 96px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 6px 16px rgba(15, 39, 68, 0.16);
  z-index: 40;
}
.cloud-speed-menu li {
  padding: 6px 12px;
  font-size: 13px;
  color: #333;
  text-align: center;
  cursor: pointer;
  white-space: nowrap;
}
.cloud-speed-menu li:hover,
.cloud-speed-menu li.active {
  color: var(--primary-color);
  background: rgba(0, 0, 0, 0.04);
}
.cloud-progress-wrap {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  height: 36px;
  margin: 0;
  display: flex;
  align-items: center;
  cursor: pointer;
  touch-action: none;
}
.cloud-progress {
  position: relative;
  width: 100%;
  height: 4px;
  background: #e6e9f0;
  border-radius: 2px;
  cursor: pointer;
  overflow: visible;
}
.cloud-progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  max-width: 100%;
  background: var(--primary-color);
  border-radius: 2px;
  pointer-events: none;
}
.cloud-progress-thumb {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: var(--primary-color);
  transform: translateY(-50%);
  pointer-events: none;
  box-shadow: 0 0 0 2px #fff;
  z-index: 2;
}
.cloud-playbar #gpstime.cloud-progress-tip {
  position: absolute !important;
  top: -2px;
  bottom: auto !important;
  right: auto !important;
  transform: translate(-50%, -100%);
  white-space: nowrap;
  margin: 0 !important;
  min-width: 0 !important;
  width: auto !important;
  max-width: none;
  padding: 4px 8px !important;
  border: none !important;
  border-radius: 3px;
  background: #4a4a4a !important;
  color: #fff !important;
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  pointer-events: none;
  z-index: 3;
}
.cloud-playbar #gpstime.cloud-progress-tip::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  margin-left: -5px;
  border: 5px solid transparent;
  border-top-color: #4a4a4a;
}

