/* 沙盘展示端手机样式：由 body.sandtable-mobile-view 显式启用，避免影响桌面端。 */
.sandtable-mobile-view .zhibeizhenbox {
  display: none !important;
}

.sandtable-mobile-view .amap-controlbar {
  display: none !important;
}

.sandtable-mobile-view .sandtable-player-map-tools {
  position: fixed;
  top: calc(var(--tt-title-side-overlap,0px) + var(--tt-title-marquee,0px) + 80px);
  right: 12px;
  z-index: 100001;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sandtable-mobile-view .sandtable-map-settings-toggle,
.sandtable-mobile-view .fillscreenbut,
.sandtable-mobile-view .huahuabibut {
  position: static;
  right: auto !important;
  top: auto !important;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(24, 24, 24, .78);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .2);
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

.sandtable-mobile-view .fillscreenbut svg,
.sandtable-mobile-view .huahuabibut svg {
  width: 16px;
  height: 16px;
}

.sandtable-mobile-view .fillscreenbut svg path,
.sandtable-mobile-view .huahuabibut svg path {
  fill: #fff;
}

.sandtable-mobile-view .quanpingtxt,
.sandtable-mobile-view .huabitxt {
  display: none !important;
}

.sandtable-mobile-view .amap-toolbar {
  top: calc(var(--tt-title-side-overlap,0px) + var(--tt-title-marquee,0px) + 12px) !important;
  right: 12px !important;
  /*
  transform: scale(.88);
  */
  transform-origin: top right;
}

.sandtable-mobile-view .map-features {
  top: auto !important;
  right: auto;
  bottom: auto;
  position: static;
  display: none !important;
  width: auto;
  height: 36px;
  gap: 6px;
  flex-direction: row;
  flex: 0 0 auto;
}

.sandtable-mobile-view .map-features .iconfont {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border: 0;
  border-radius: 9px;
  background: rgba(24, 24, 24, .78);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
  box-sizing: border-box;
  color: #fff;
  font-size: 17px;
  -webkit-tap-highlight-color: transparent;
}

.sandtable-mobile-view .map-features .iconfont.active {
  border: 0;
  background: #fa6400;
}

/* 手机端将地图要素与地图样式收进同一个工具抽屉，默认只显示入口按钮。 */
.sandtable-mobile-view .map-styles-container {
  position: relative;
  right: auto;
  bottom: auto;
  width: 36px;
  height: 36px;
  order: 1;
}

.sandtable-mobile-view .fillscreenbut {
  order: 2;
}

.sandtable-mobile-view .huahuabibut {
  order: 3;
}

.sandtable-mobile-view .map-styles-container > .sandtable-map-settings-toggle {
  position: static;
  display: flex !important;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: rgba(24, 24, 24, .78);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .2);
  box-sizing: border-box;
  color: #fff;
  font-size: 18px;
  -webkit-tap-highlight-color: transparent;
}

.sandtable-mobile-view .map-styles-container.is-open > .sandtable-map-settings-toggle {
  background: #fa6400;
  transform: rotate(180deg);
}

.sandtable-mobile-view .sandtable-map-settings-panel {
  position: static;
}

.sandtable-mobile-view .sandtable-mobile-map-tools-scroll {
  display: none;
  position: fixed;
  left: 12px;
  right: 58px;
  bottom: 110px;
  height: 52px;
  padding: 6px;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
  overflow-x: auto;
  overflow-y: hidden;
  border-radius: 11px;
  background: rgba(24, 24, 24, .82);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .26);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  box-sizing: border-box;
  scrollbar-width: none;
}

.sandtable-mobile-view .map-styles-container.is-open .sandtable-mobile-map-tools-scroll {
  display: flex;
}

.sandtable-mobile-view .map-styles-container.is-open .map-features {
  display: flex !important;
}

.sandtable-mobile-view .sandtable-map-tool-section {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.sandtable-mobile-view .sandtable-map-tool-title {
  height: 28px;
  line-height: 28px;
  padding: 0 8px;
  border-radius: 7px;
  background: rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .82);
  font-size: 11px;
  white-space: nowrap;
  display: none;
}

.sandtable-mobile-view .map-styles {
  position: static;
  display: flex;
  width: max-content !important;
  height: 36px;
  padding: 0;
  gap: 6px;
  justify-content: flex-start;
  overflow: visible;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: none;
  box-sizing: border-box;
  flex: 0 0 auto;
}

.sandtable-mobile-view .map-styles .mapstyle {
  position: relative;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border: 2px solid rgba(255, 255, 255, .55);
  border-radius: 8px;
  transform: none !important;
}

.sandtable-mobile-view .map-styles:hover .mapstyle {
  position: relative;
  transform: none !important;
}

.sandtable-mobile-view .map-styles:hover {
  width: max-content !important;
  gap: 6px;
}

.sandtable-mobile-view .map-styles .mapstyle.active {
  border-color: #fa6400;
}

.sandtable-mobile-view .switchbutn {
  left: 50% !important;
  top: 10px !important;
  width: auto;
  min-width: 72px;
  height: 30px;
  line-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 15px;
  /*
  background: rgba(24, 24, 24, .76);
  color: #fff;
  */
  box-shadow: 0 4px 16px rgba(0, 0, 0, .2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-sizing: border-box;
  font-size: 11px;
  transform: translateX(-50%);
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.sandtable-mobile-view .switchbutn_laba {
  top: 46px;
  width: auto;
  min-width: 88px;
  height: 28px;
  line-height: 28px;
  margin-left: 0;
  padding: 0 9px;
  border-radius: 14px;
  font-size: 11px;
  transform: translateX(-50%);
}

/* 沙盘切换改为底部横向缩略图胶囊，避免占据手机左侧纵向空间。 */
.sandtable-mobile-view .swiperSandContainer {
  left: 12px;
  right: 58px;
  bottom: 12px;
  top: auto;
  width: auto;
  max-width: none;
  height: 48px;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.sandtable-mobile-view .right_sandmenu {
  display: inline-flex;
  width: max-content !important;
  min-width: 100%;
  max-width: none;
  height: 48px;
  padding: 4px 0;
  gap: 8px;
  justify-content: flex-start;
  align-items: center;
  flex-direction: row;
  box-sizing: border-box;
  transform: none !important;
  transition: none !important;
}

.sandtable-mobile-view .right_sandmenu a {
  display: flex;
  width: auto !important;
  min-width: 86px;
  max-width: 138px;
  height: 40px;
  padding: 0 10px 0 7px;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 20px;
  align-items: center;
  background: rgba(24, 24, 24, .76);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-sizing: border-box;
  color: #fff;
  -webkit-tap-highlight-color: transparent;
}

.sandtable-mobile-view .right_sandmenu a.active {
  border-color: #fa6400;
  background: rgba(250, 100, 0, .9);
}

.sandtable-mobile-view .right_sandmenu a p {
  position: static;
  width: auto;
  max-width: 94px;
  height: auto;
  line-height: 1;
  overflow: hidden;
  background: transparent;
  color: inherit;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sandtable-mobile-view .right_sandmenu a img {
  display: block;
  order: -1;
  width: 26px;
  height: 26px;
  margin-right: 7px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 26px;
}

/* 分组固定在沙盘列表上方，可滑动浏览全部分组。 */
.sandtable-mobile-view .bottom_sandmenu {
  left: 12px;
  right: 12px;
  bottom: 68px;
  width: auto;
  max-width: none;
  height: 32px;
  padding: 1px 0;
  gap: 6px;
  justify-content: flex-start;
  overflow-x: auto;
  overflow-y: hidden;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  -webkit-overflow-scrolling: touch;
  transform: none;
}

.sandtable-mobile-view .bottom_sandmenu a {
  flex: 0 0 auto;
  width: auto;
  min-width: 54px;
  height: 30px;
  line-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 15px;
  background: rgba(24, 24, 24, .76);
  box-sizing: border-box;
  color: #fff;
  font-size: 11px;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.sandtable-mobile-view .bottom_sandmenu a.active {
  border-color: #fa6400;
  background: #fa6400;
  color: #fff;
}

/* 沙盘较多时可收起列表；按钮与状态均只在手机 class 下生效。 */
.sandtable-mobile-view .sandtable-mobile-list-toggle {
  position: absolute;
  right: 12px;
  bottom: 16px;
  z-index: 1001;
  display: none;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 50%;
  background: rgba(24,24,24,.82);
  box-shadow: 0 4px 14px rgba(0,0,0,.2);
  -webkit-tap-highlight-color: transparent;
}

.sandtable-mobile-view .sandtable-mobile-list-toggle::before {
  content: '';
  position: absolute;
  top: 11px;
  left: 12px;
  width: 9px;
  height: 9px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
  transition: transform .18s ease,top .18s ease;
}

.sandtable-mobile-view .sandtable-mobile-list-toggle.is-collapsed::before {
  top: 15px;
  transform: rotate(225deg);
}

.sandtable-mobile-view #mapsandwarp.sandtable-list-collapsed .swiperSandContainer {
  left: auto;
  right: 58px;
  width: min(58vw,180px);
  overflow: hidden !important;
}

.sandtable-mobile-view #mapsandwarp.sandtable-list-collapsed .right_sandmenu {
  width: 100%;
  min-width: 0;
  padding-right: 0;
  overflow: hidden;
}

.sandtable-mobile-view #mapsandwarp.sandtable-list-collapsed .right_sandmenu a:not(.active) {
  display: none;
}

.sandtable-mobile-view #mapsandwarp.sandtable-list-collapsed .bottom_sandmenu {
  display: none !important;
}

.sandtable-mobile-view #mapsandwarp.sandtable-list-collapsed .right_sandmenu a.active {
  width: 100% !important;
  min-width: 0;
  max-width: none;
  flex: 1 1 auto;
}

.sandtable-mobile-view .bigemapbox > .mapsandMapGroupPanel {
  left: 10px;
  gap: 6px;
}

.sandtable-mobile-view .mapsandMapGroupButton {
  min-width: 62px;
  max-width: 96px;
  height: 28px;
  line-height: 28px;
  padding: 0 9px;
  border-radius: 14px;
  background: rgba(24, 24, 24, .76);
  font-size: 11px;
}

.sandtable-mobile-view .mapsandMapGroupButton:hover,
.sandtable-mobile-view .mapsandMapGroupButton.active {
  background: #fa6400;
}

.sandtable-mobile-view .swiperSandContainer::-webkit-scrollbar,
.sandtable-mobile-view .bottom_sandmenu::-webkit-scrollbar,
.sandtable-mobile-view .sandtable-mobile-map-tools-scroll::-webkit-scrollbar {
  display: none;
}
