/**
 * map-tool.css —— 三角洲行动地图工具 · 官方布局样式
 * 左侧工具面板 + 右侧地图（PC） / 底部抽屉（移动端）
 * 主题：深色科技 + 青绿点缀，柔光玻璃质感
 */

/* ============ 隐藏站点 header/footer ============ */
body:has(.map-tool) .site-header,
body:has(.map-tool) .ops-header,
body:has(.map-tool) footer,
body:has(.map-tool) .ops-footer,
body.map-tool-page .site-header,
body.map-tool-page .ops-header,
body.map-tool-page footer,
body.map-tool-page .ops-footer { display: none !important; }
body:has(.map-tool) #siteShell,
body.map-tool-page #siteShell { padding-top: 0 !important; height: auto !important; min-height: 0 !important; }
body:has(.map-tool) main,
body.map-tool-page main { contain: none !important; overflow: visible !important; }

/* ============ 样式隔离 ============ */
.map-tool,
.map-tool * { box-sizing: border-box; }
.map-tool button { background: none; border: none; padding: 0; margin: 0; font: inherit; color: inherit; cursor: pointer; }
.map-tool input { font: inherit; }
.map-tool svg { display: inline-block; vertical-align: middle; }
.map-tool ul, .map-tool li { list-style: none; margin: 0; padding: 0; }
.map-tool a { color: inherit; text-decoration: none; }

/* ============ 主容器 ============ */
.map-tool {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  z-index: 999;
  display: flex;
  overflow: hidden;
  background: #0b0f14;
  font-size: 13px;
  line-height: 1.5;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #dbe4ee;
}

/* ============ 左侧面板 ============ */
.map-side {
  flex: 0 0 352px;
  width: 352px;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 20;
  background: linear-gradient(180deg, #10161f 0%, #0d131b 100%);
  border-right: 1px solid rgba(56, 76, 96, 0.35);
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.35);
  transition: margin-left 0.28s cubic-bezier(0.4, 0, 0.2, 1), transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.map-side.collapsed { margin-left: -352px; }

/* 侧边栏边缘折叠按钮 */
.side-edge-toggle {
  position: absolute;
  top: 50%;
  left: 352px;
  transform: translateY(-50%);
  z-index: 30;
  width: 26px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 12px 12px 0;
  border: 1px solid rgba(56, 76, 96, 0.5);
  border-left: none;
  background: rgba(15, 21, 30, 0.92);
  backdrop-filter: blur(10px);
  color: #8aa0b8;
  box-shadow: 4px 0 14px rgba(0, 0, 0, 0.35);
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.side-edge-toggle svg { width: 15px; height: 15px; transition: transform 0.28s; }
.side-edge-toggle:hover { color: #22d3a5; border-color: rgba(34, 211, 165, 0.5); box-shadow: 4px 0 18px rgba(34, 211, 165, 0.18); }
.map-side.collapsed ~ .side-edge-toggle { left: 6px; border-radius: 12px 0 0 12px; border: 1px solid rgba(56, 76, 96, 0.5); border-right: none; box-shadow: -4px 0 14px rgba(0, 0, 0, 0.35); }
.map-side.collapsed ~ .side-edge-toggle svg { transform: rotate(180deg); }

/* 面板头部 */
.side-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px 12px 16px;
  border-bottom: 1px solid rgba(56, 76, 96, 0.25);
  background: linear-gradient(180deg, rgba(20, 30, 42, 0.9), rgba(14, 20, 29, 0.9));
}
.side-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: #f0f6fc;
}
.side-title svg { width: 20px; height: 20px; color: #22d3a5; }
.side-title em {
  font-style: normal;
  background: linear-gradient(90deg, #22d3a5, #4fd1ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.side-collapse {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 8px;
  color: #8aa0b8;
  transition: background 0.2s, color 0.2s, transform 0.3s;
}
.side-collapse svg { width: 17px; height: 17px; }
.side-collapse:hover { background: rgba(34, 211, 165, 0.12); color: #22d3a5; }
.map-side.collapsed .side-collapse svg { transform: rotate(180deg); }

/* 模式卡片 */
.mode-cards {
  display: flex;
  gap: 6px;
  padding: 10px 12px 8px;
}
.mode-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 11px 4px 10px;
  border-radius: 12px;
  border: 1px solid rgba(56, 76, 96, 0.35);
  background: rgba(20, 28, 40, 0.6);
  color: #8aa0b8;
  font-size: 12px;
  transition: all 0.22s ease;
}
.mode-card-icon {
  width: 34px; height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(56, 76, 96, 0.25);
  transition: all 0.22s ease;
}
.mode-card-icon svg { width: 19px; height: 19px; }
.mode-card:hover { border-color: rgba(34, 211, 165, 0.5); color: #cfe8ff; transform: translateY(-1px); }
.mode-card:hover .mode-card-icon { background: rgba(34, 211, 165, 0.1); border-color: rgba(34, 211, 165, 0.4); }
.mode-card.act {
  border-color: rgba(34, 211, 165, 0.65);
  background: linear-gradient(160deg, rgba(34, 211, 165, 0.16), rgba(34, 211, 165, 0.05));
  color: #4ee6b6;
  box-shadow: 0 0 18px rgba(34, 211, 165, 0.15), inset 0 0 12px rgba(34, 211, 165, 0.06);
}
.mode-card.act .mode-card-icon {
  background: rgba(34, 211, 165, 0.18);
  border-color: rgba(34, 211, 165, 0.55);
  box-shadow: 0 0 12px rgba(34, 211, 165, 0.3);
}
.mode-card.act .mode-card-text { font-weight: 600; }

/* 分区标题 */
.side-sec-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 2px 4px;
}
.side-sec-title .ss-name {
  font-size: 13px;
  font-weight: 700;
  color: #f0f6fc;
  letter-spacing: 0.5px;
}
.side-sec-title .ss-name::before {
  content: '';
  display: inline-block;
  width: 3px; height: 12px;
  margin-right: 7px;
  border-radius: 2px;
  background: linear-gradient(180deg, #22d3a5, #4fd1ff);
  vertical-align: -2px;
}
.side-sec-title .ss-sub { font-size: 10.5px; color: #5d7489; }

/* 全面战场子 tab */
.war-sub-tabs {
  display: flex;
  gap: 6px;
  padding: 0 12px 8px;
}
.war-sub-tab {
  flex: 1;
  padding: 7px 0;
  border-radius: 9px;
  border: 1px solid rgba(56, 76, 96, 0.35);
  background: rgba(20, 28, 40, 0.5);
  color: #8aa0b8;
  font-size: 12px;
  transition: all 0.2s;
}
.war-sub-tab.act { border-color: rgba(34, 211, 165, 0.6); background: rgba(34, 211, 165, 0.12); color: #4ee6b6; font-weight: 600; }

/* 全面战场区域切换（A/B/C/D） */
.war-lv-tabs {
  display: flex;
  gap: 6px;
  padding: 0 12px 10px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.war-lv-tabs::-webkit-scrollbar { display: none; }
.war-lv-tab {
  flex: 0 0 auto;
  min-width: 52px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(56, 76, 96, 0.35);
  background: rgba(20, 28, 40, 0.5);
  color: #8aa0b8;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.war-lv-tab:hover { color: #cfe0f0; border-color: rgba(90, 130, 170, 0.5); }
.war-lv-tab.act {
  border-color: rgba(255, 170, 66, 0.65);
  background: linear-gradient(135deg, rgba(255, 170, 66, 0.2), rgba(255, 120, 40, 0.12));
  color: #ffc36b;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(255, 150, 50, 0.18);
}

/* 当前地图栏 */
.curr-map-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 12px 10px;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid rgba(56, 76, 96, 0.35);
  background: rgba(18, 25, 36, 0.8);
}
.curr-map-info { display: flex; align-items: baseline; gap: 6px; min-width: 0; flex-wrap: wrap; }
.curr-map-name { font-size: 15px; font-weight: 700; color: #f0f6fc; }
.curr-map-lv {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(34, 211, 165, 0.15);
  color: #4ee6b6;
  white-space: nowrap;
}
.curr-map-extra { font-size: 11px; color: #7d94ab; width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btn-change-map {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 9px;
  border: 1px solid rgba(34, 211, 165, 0.4);
  color: #4ee6b6;
  font-size: 12px;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-change-map svg { width: 15px; height: 15px; }
.btn-change-map:hover { background: rgba(34, 211, 165, 0.14); box-shadow: 0 0 14px rgba(34, 211, 165, 0.2); }

/* 面板滚动区 */
.side-body {
  flex: 1;
  overflow-y: auto;
  padding: 2px 12px 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(79, 209, 255, 0.3) transparent;
}
.side-body::-webkit-scrollbar { width: 6px; }
.side-body::-webkit-scrollbar-thumb { background: rgba(79, 209, 255, 0.25); border-radius: 3px; }
.side-body::-webkit-scrollbar-track { background: transparent; }

/* 搜索 */
.nav-search {
  position: relative;
  margin-bottom: 8px;
}
.nav-search-icon {
  position: absolute;
  left: 11px; top: 50%;
  transform: translateY(-50%);
  width: 15px; height: 15px;
  color: #7d94ab;
  pointer-events: none;
}
.nav-search-input {
  width: 100%;
  padding: 9px 34px 9px 34px;
  border-radius: 11px;
  border: 1px solid rgba(56, 76, 96, 0.4);
  background: rgba(16, 23, 33, 0.85);
  color: #e6eef7;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.nav-search-input::placeholder { color: #5d7489; }
.nav-search-input:focus { border-color: rgba(34, 211, 165, 0.6); box-shadow: 0 0 0 3px rgba(34, 211, 165, 0.1); }
.nav-search-clear {
  position: absolute;
  right: 8px; top: 50%;
  transform: translateY(-50%);
  display: none;
  width: 22px; height: 22px;
  border-radius: 6px;
  color: #7d94ab;
}
.nav-search-clear svg { width: 13px; height: 13px; }
.nav-search-clear:hover { color: #e6eef7; background: rgba(255, 255, 255, 0.08); }

/* 筛选下拉栏 */
.nav-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}
.nav-filter-item { position: relative; flex: 1 1 0; min-width: 110px; }
.nav-filter-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  padding: 10px 8px;
  border-radius: 11px;
  border: 1px solid rgba(56, 76, 96, 0.35);
  background: rgba(18, 25, 36, 0.8);
  color: #a8bcd0;
  font-size: 12.5px;
  font-weight: 500;
  transition: all 0.2s;
}
.nav-filter-btn svg { width: 15px; height: 15px; color: #6e8aa4; flex-shrink: 0; }
.nav-filter-btn .nav-filter-arrow { width: 12px; height: 12px; transition: transform 0.25s; }
.nav-filter-item.open .nav-filter-btn .nav-filter-arrow { transform: rotate(180deg); }
.nav-filter-item.open .nav-filter-btn { border-color: rgba(34, 211, 165, 0.5); color: #4ee6b6; }
.nav-filter-item.open .nav-filter-btn svg { color: #22d3a5; }
.nav-filter-btn:hover { border-color: rgba(34, 211, 165, 0.4); }
.random-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 9px;
  background: rgba(34, 211, 165, 0.1);
  color: #4ee6b6;
}
.random-status::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #4ee6b6;
  box-shadow: 0 0 6px rgba(78, 230, 182, 0.6);
}
.nav-filter-dropdown {
  position: absolute;
  left: 0; top: calc(100% + 6px);
  z-index: 60;
  min-width: 200px;
  max-height: 280px;
  overflow-y: auto;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid rgba(56, 76, 96, 0.5);
  background: rgba(15, 21, 30, 0.97);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.5);
}
.region-list .region-item,
.floor-list .floor-item,
.random-event-list .random-event-item {
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12.5px;
  color: #a8bcd0;
  cursor: pointer;
  transition: all 0.15s;
}
.region-list .region-item:hover,
.floor-list .floor-item:hover,
.random-event-list .random-event-item:hover { background: rgba(34, 211, 165, 0.1); color: #e6eef7; }
.region-list .region-item.act,
.floor-list .floor-item.act,
.random-event-list .random-event-item.act { background: rgba(34, 211, 165, 0.16); color: #4ee6b6; }
.view-list { display: flex; flex-direction: column; gap: 2px; }
.view-list .view-item {
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12.5px;
  color: #a8bcd0;
  text-align: left;
  transition: all 0.15s;
}
.view-list .view-item:hover { background: rgba(34, 211, 165, 0.1); color: #e6eef7; }
.view-list .view-item.act { background: rgba(34, 211, 165, 0.16); color: #4ee6b6; }
.random-off-btn {
  width: 100%;
  margin-top: 4px;
  padding: 8px;
  border-radius: 8px;
  font-size: 12px;
  color: #8aa0b8;
  background: rgba(255, 255, 255, 0.04);
  transition: all 0.15s;
}
.random-off-btn:hover { color: #ff8d7a; background: rgba(255, 141, 122, 0.1); }

/* 爆破快捷图卡 */
.bp-map-change {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.bp-map-change::-webkit-scrollbar { display: none; }
.bp-map-change .bp-map-item {
  display: inline-flex; align-items: center; gap: 6px;
  flex: 0 0 auto;
  padding: 7px 12px 7px 9px;
  border-radius: 10px;
  border: 1px solid rgba(56, 76, 96, 0.35);
  background: rgba(18, 25, 36, 0.8);
  color: #a8bcd0;
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.bp-map-change .bp-map-item .mi {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; flex: 0 0 auto;
  border-radius: 6px;
  background: rgba(78, 230, 182, 0.1);
  border: 1px solid rgba(78, 230, 182, 0.16);
  color: #7dd9bd;
}
.bp-map-change .bp-map-item .mi svg { width: 12px; height: 12px; }
.bp-map-change .bp-map-item.act { border-color: rgba(34, 211, 165, 0.6); background: rgba(34, 211, 165, 0.12); color: #4ee6b6; font-weight: 600; }
.bp-map-change .bp-map-item.act .mi { background: rgba(78, 230, 182, 0.22); border-color: rgba(78, 230, 182, 0.4); color: #5cf0c3; }
.bp-map-change .bp-map-item:hover { border-color: rgba(34, 211, 165, 0.45); }

/* 爆破 tab */
.bp-tabs-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}
.bp-tab {
  flex: 1;
  padding: 8px 0;
  border-radius: 10px;
  border: 1px solid rgba(56, 76, 96, 0.35);
  background: rgba(18, 25, 36, 0.8);
  color: #a8bcd0;
  font-size: 12.5px;
  transition: all 0.2s;
}
.bp-tab.act { border-color: rgba(34, 211, 165, 0.6); background: rgba(34, 211, 165, 0.12); color: #4ee6b6; font-weight: 600; }

/* 全选 */
.choose-all-bar {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  padding: 2px 4px;
}
.choose-all-label { display: flex; align-items: center; gap: 7px; cursor: pointer; }
.choose-all-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 16px; height: 16px;
  border-radius: 5px;
  border: 1.5px solid rgba(79, 209, 255, 0.5);
  background: rgba(18, 25, 36, 0.8);
  cursor: pointer;
  position: relative;
  transition: all 0.18s;
}
.choose-all-checkbox:checked { background: #22d3a5; border-color: #22d3a5; }
.choose-all-checkbox:checked::after {
  content: '';
  position: absolute;
  left: 4px; top: 1px;
  width: 5px; height: 9px;
  border: solid #06231a;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.choose-all-text { font-size: 12.5px; color: #a8bcd0; }

/* 筛选网格 */
.marker-filter-grid { margin-bottom: 6px; }
.filter-hint {
  padding: 10px 12px;
  margin-bottom: 8px;
  border-radius: 10px;
  border: 1px dashed rgba(79, 209, 255, 0.3);
  background: rgba(79, 209, 255, 0.05);
  color: #7d94ab;
  font-size: 12px;
  line-height: 1.6;
}
/* 大类分组 */
#filterList {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.filter-group { width: 100%; margin-bottom: 2px; }
.filter-group-title {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 2px 7px;
}
.filter-group-title .fg-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--fg-color, #9db4c8);
  box-shadow: 0 0 8px var(--fg-color, #9db4c8);
}
.filter-group-title .fg-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #dbe4ee;
  letter-spacing: 0.5px;
}
.filter-group-title .fg-num {
  margin-left: auto;
  font-size: 10.5px;
  color: #5d7489;
}
.filter-group-red { --fg-color: #ff5d5d; }
.filter-group-orange { --fg-color: #ffa64d; }
.filter-group-blue { --fg-color: #4da6ff; }
.filter-group-green { --fg-color: #4ee6b6; }
.filter-group-cyan { --fg-color: #22d3a5; }
.filter-group-purple { --fg-color: #c77dff; }
.filter-group-gray { --fg-color: #9db4c8; }
.filter-group-war { --fg-color: #ffc36b; }

.marker-filter-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}
.marker-filter-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 2px 6px;
  border-radius: 10px;
  border: 1px solid rgba(56, 76, 96, 0.3);
  background: rgba(18, 25, 36, 0.7);
  cursor: pointer;
  transition: all 0.18s;
  overflow: hidden;
}
.marker-filter-item:hover { border-color: rgba(79, 209, 255, 0.45); transform: translateY(-1px); }
.marker-filter-item.act {
  border-color: var(--fg-color, #4ee6b6);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  box-shadow: 0 2px 12px color-mix(in srgb, var(--fg-color, #4ee6b6) 30%, transparent);
}
.marker-filter-item .mfi-icon {
  width: 30px; height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.marker-filter-item .mfi-img {
  width: 26px; height: 26px;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}
.marker-filter-item .mfi-icon.fallback::after {
  content: '';
  display: block;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--fg-color, #22d3a5);
  border: 2px solid rgba(255, 255, 255, 0.85);
}
.marker-filter-item .mfi-name {
  font-size: 10.5px;
  color: #a8bcd0;
  text-align: center;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.marker-filter-item.act .mfi-name { color: var(--fg-color, #4ee6b6); }
.marker-filter-item .mfi-num {
  position: absolute;
  top: 3px; right: 5px;
  font-size: 9.5px;
  color: #5d7489;
  line-height: 1;
}
.marker-filter-item.act .mfi-num { color: var(--fg-color, #4ee6b6); }
.marker-filter-empty {
  grid-column: 1 / -1;
  padding: 14px 8px;
  text-align: center;
  font-size: 12px;
  color: #5d7489;
}

/* 爆破干员面板 */
.bp-role-panel { margin-top: 4px; }
.bp-role-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 10px;
}
.bp-role-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 8px;
  border-radius: 10px;
  border: 1px solid rgba(56, 76, 96, 0.3);
  background: rgba(18, 25, 36, 0.7);
  color: #a8bcd0;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.18s;
}
.bp-role-item:hover { border-color: rgba(79, 209, 255, 0.4); }
.bp-role-item.act { border-color: rgba(34, 211, 165, 0.6); background: rgba(34, 211, 165, 0.12); color: #4ee6b6; font-weight: 600; }
.bp-role-img { width: 24px; height: 24px; object-fit: contain; }
.bp-skill-title {
  margin: 2px 0 6px;
  font-size: 12px;
  font-weight: 600;
  color: #7d94ab;
  letter-spacing: 1px;
}
.bp-skill-list { display: flex; flex-direction: column; gap: 5px; }
.bp-skill-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(56, 76, 96, 0.3);
  background: rgba(18, 25, 36, 0.7);
  color: #a8bcd0;
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.18s;
}
.bp-skill-item:hover { border-color: rgba(79, 209, 255, 0.4); }
.bp-skill-item.act { border-color: rgba(34, 211, 165, 0.6); background: rgba(34, 211, 165, 0.12); color: #4ee6b6; }
.bp-skill-item.no-pt { opacity: 0.6; }
.bp-skill-item.no-pt::after {
  content: '视频教学';
  position: absolute;
  right: 8px;
  font-size: 9px;
  color: #ffd84d;
  opacity: 0.85;
}
.bp-skill-img { width: 22px; height: 22px; object-fit: contain; }
.bp-skill-camp {
  padding: 1px 7px;
  margin-left: auto;
  font-size: 10px;
  border-radius: 8px;
  background: rgba(34, 211, 165, 0.12);
  color: #4ee6b6;
  white-space: nowrap;
}

/* 底部操作 */
.side-footer {
  display: flex;
  gap: 8px;
  padding: 10px 12px 12px;
  border-top: 1px solid rgba(56, 76, 96, 0.25);
  background: rgba(13, 19, 27, 0.9);
}
.nav-btn-reset,
.nav-btn-check {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 0;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
}
.nav-btn-reset svg, .nav-btn-check svg { width: 16px; height: 16px; }
.nav-btn-reset {
  border: 1px solid rgba(56, 76, 96, 0.5);
  color: #a8bcd0;
  background: rgba(18, 25, 36, 0.8);
}
.nav-btn-reset:hover { border-color: rgba(255, 141, 122, 0.5); color: #ff9d8a; }
.nav-btn-check {
  border: 1px solid transparent;
  color: #06231a;
  background: linear-gradient(135deg, #22d3a5, #18b8a0);
  box-shadow: 0 4px 16px rgba(34, 211, 165, 0.3);
}
.nav-btn-check:hover { filter: brightness(1.1); box-shadow: 0 6px 22px rgba(34, 211, 165, 0.4); transform: translateY(-1px); }

/* ============ 地图画布 ============ */
.map-canvas {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 10;
  background: #0b0f14;
}
.map-canvas .leaflet-container { background: #0b0f14; }
.map-canvas .leaflet-control-zoom {
  border: 1px solid rgba(56, 76, 96, 0.5) !important;
  background: rgba(15, 21, 30, 0.9) !important;
  border-radius: 10px !important;
  overflow: hidden;
  backdrop-filter: blur(8px);
}
.map-canvas .leaflet-control-zoom a {
  color: #a8bcd0 !important;
  background: transparent !important;
  border-bottom: 1px solid rgba(56, 76, 96, 0.4) !important;
  width: 30px !important; height: 30px !important; line-height: 30px !important;
}
.map-canvas .leaflet-control-zoom a:hover { background: rgba(34, 211, 165, 0.12) !important; color: #22d3a5 !important; }
.map-canvas .leaflet-control-attribution {
  background: rgba(11, 15, 20, 0.75) !important;
  color: #5d7489 !important;
  font-size: 10px !important;
  backdrop-filter: blur(6px);
}
.map-canvas .leaflet-control-attribution a { color: #6e8aa4 !important; }

/* 点位标记（大类着色 + 深色底片，保证对比度） */
.map-marker-wrap {
  background: linear-gradient(180deg, rgba(13, 20, 28, 0.92), rgba(7, 12, 18, 0.92)) !important;
  border-radius: 50% !important;
  border: 2px solid var(--cls-color, #22d3a5) !important;
  box-shadow: 0 0 0 2px rgba(5, 9, 14, 0.85), 0 2px 8px rgba(0, 0, 0, 0.65), 0 0 12px color-mix(in srgb, var(--cls-color, #22d3a5) 55%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.map-marker-wrap.cls-red { --cls-color: #ff5d5d; }
.map-marker-wrap.cls-orange { --cls-color: #ffa64d; }
.map-marker-wrap.cls-blue { --cls-color: #4da6ff; }
.map-marker-wrap.cls-green { --cls-color: #4ee6b6; }
.map-marker-wrap.cls-purple { --cls-color: #c77dff; }
.map-marker-wrap.cls-gray { --cls-color: #9db4c8; }
.map-marker-wrap.cls-cyan { --cls-color: #22d3a5; }
.map-marker-wrap .map-marker-img {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.6));
}
.map-marker-wrap.fallback::after {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 13px; height: 13px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: var(--cls-color, #22d3a5);
  border: 2px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 10px var(--cls-color, #22d3a5);
}
.map-marker-wrap.big.fallback::after { width: 17px; height: 17px; margin: -9px 0 0 -9px; }
.map-marker-img {
  transition: transform 0.15s ease;
  pointer-events: none;
}
.map-marker-wrap:hover .map-marker-img { transform: scale(1.15); }

/* 楼层/区域导航（地图底部，避开 DIY 页脚） */
.floor-nav, .region-nav {
  position: absolute;
  left: 50%;
  bottom: 62px;
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
.floor-nav-list, .region-nav-list { display: flex; gap: 5px; pointer-events: auto; }
.floor-nav-list .floor-nav-item, .region-nav-list .region-nav-item {
  padding: 6px 13px;
  border-radius: 9px;
  border: 1px solid rgba(56, 76, 96, 0.5);
  background: rgba(15, 21, 30, 0.92);
  backdrop-filter: blur(10px);
  color: #a8bcd0;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.floor-nav-list .floor-nav-item.act, .region-nav-list .region-nav-item.act {
  border-color: rgba(34, 211, 165, 0.65);
  background: rgba(34, 211, 165, 0.18);
  color: #4ee6b6;
  font-weight: 700;
}
.floor-nav-ctrl, .region-nav-ctrl {
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(56, 76, 96, 0.4);
  background: rgba(15, 21, 30, 0.9);
  backdrop-filter: blur(10px);
}
.floor-nav-btn, .region-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  border-radius: 7px;
  color: #a8bcd0;
  transition: all 0.2s;
}
.floor-nav-btn svg, .region-nav-btn svg { width: 14px; height: 14px; }
.floor-nav-btn:hover, .region-nav-btn:hover { background: rgba(34, 211, 165, 0.15); color: #22d3a5; }
.floor-nav-tip, .region-nav-tip {
  font-size: 11.5px;
  color: #7d94ab;
  min-width: 90px;
  text-align: center;
}

/* ============ 右侧悬浮按钮 ============ */
.right-nav {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.right-nav-btn {
  width: 38px; height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  border: 1px solid rgba(56, 76, 96, 0.5);
  background: rgba(15, 21, 30, 0.88);
  backdrop-filter: blur(10px);
  color: #8aa0b8;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
.right-nav-btn svg { width: 18px; height: 18px; }
.right-nav-btn:hover { color: #22d3a5; border-color: rgba(34, 211, 165, 0.5); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(34, 211, 165, 0.2); }

/* ============ 地图选择面板 ============ */
.map-select-panel { position: absolute; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; }
.map-select-panel-mask { position: absolute; inset: 0; background: rgba(4, 7, 11, 0.62); backdrop-filter: blur(5px); }
.map-select-panel-body {
  position: relative;
  width: min(460px, calc(100vw - 32px));
  max-height: 78vh;
  overflow-y: auto;
  padding: 20px 20px 18px;
  border-radius: 20px;
  border: 1px solid rgba(96, 138, 176, 0.35);
  background: linear-gradient(160deg, rgba(24, 33, 47, 0.92), rgba(13, 19, 28, 0.96));
  backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(160, 210, 255, 0.12);
  scrollbar-width: thin;
}
.map-select-panel-body::before {
  content: '';
  position: absolute;
  top: 0; left: 24px; right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(110, 231, 183, 0.7), rgba(96, 165, 250, 0.5), transparent);
  pointer-events: none;
}
.map-select-panel-title {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 14px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #eef6ff;
}
.map-select-panel-title svg { width: 19px; height: 19px; color: #4ee6b6; filter: drop-shadow(0 0 6px rgba(78, 230, 182, 0.55)); }
.map-list, .war-list, .bp-map-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.map-item, .war-list .map-item, .bp-map-list .bp-map-item {
  display: inline-flex; align-items: center; gap: 7px;
  min-width: 0;
  padding: 9px 14px 9px 10px;
  border-radius: 12px;
  border: 1px solid rgba(74, 100, 130, 0.4);
  background: linear-gradient(165deg, rgba(26, 36, 50, 0.85), rgba(16, 23, 33, 0.9));
  color: #b7cbe0;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: inset 0 1px 0 rgba(150, 200, 250, 0.08);
}
.map-item .mi, .war-list .map-item .mi, .bp-map-list .bp-map-item .mi {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; flex: 0 0 auto;
  border-radius: 8px;
  background: rgba(78, 230, 182, 0.1);
  border: 1px solid rgba(78, 230, 182, 0.18);
  color: #7dd9bd;
}
.map-item .mi svg, .war-list .map-item .mi svg, .bp-map-list .bp-map-item .mi svg { width: 14px; height: 14px; }
.map-item .mn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.map-item:hover, .bp-map-list .bp-map-item:hover {
  border-color: rgba(78, 230, 182, 0.55);
  color: #e8f3ff;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(34, 211, 165, 0.18), inset 0 1px 0 rgba(150, 200, 250, 0.1);
}
.map-item:hover .mi, .bp-map-list .bp-map-item:hover .mi { background: rgba(78, 230, 182, 0.18); border-color: rgba(78, 230, 182, 0.4); }
.map-item.action, .bp-map-list .bp-map-item.act {
  border-color: rgba(78, 230, 182, 0.7);
  background: linear-gradient(165deg, rgba(34, 211, 165, 0.2), rgba(34, 211, 165, 0.08));
  color: #5cf0c3;
  font-weight: 600;
  box-shadow: 0 0 0 1px rgba(78, 230, 182, 0.25), 0 10px 26px rgba(34, 211, 165, 0.25), inset 0 1px 0 rgba(190, 250, 230, 0.15);
}
.map-item.action .mi, .bp-map-list .bp-map-item.act .mi { background: rgba(78, 230, 182, 0.22); border-color: rgba(78, 230, 182, 0.5); color: #5cf0c3; }
.map-lv-list, .war-lv-list, .random-list { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; padding-top: 8px; border-top: 1px dashed rgba(74, 100, 130, 0.35); }
/* 空列表容器不占位，避免弹窗中间出现空白与虚线 */
.map-list:empty, .map-lv-list:empty, .war-list:empty, .war-lv-list:empty, .random-list:empty, .bp-map-list:empty { display: none; }
.map-lv-item {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  border-radius: 9px;
  border: 1px solid rgba(74, 100, 130, 0.35);
  background: rgba(16, 23, 33, 0.7);
  color: #93aabd;
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.18s;
}
.map-lv-item:hover { border-color: rgba(96, 165, 250, 0.55); color: #d4e9ff; transform: translateY(-1px); }
.map-lv-item.action { border-color: rgba(78, 230, 182, 0.6); background: rgba(34, 211, 165, 0.12); color: #4ee6b6; }

/* ============ 点位详情弹窗 ============ */
.marker-pop {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 70;
  width: min(330px, calc(100vw - 40px));
  max-height: calc(100% - 100px);
  overflow-y: auto;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(56, 76, 96, 0.55);
  background: rgba(15, 21, 30, 0.96);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.5);
  animation: popIn 0.22s ease;
}
@keyframes popIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.marker-pop-close {
  position: absolute;
  right: 8px; top: 8px;
  width: 26px; height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #8aa0b8;
  transition: all 0.2s;
}
.marker-pop-close svg { width: 14px; height: 14px; }
.marker-pop-close:hover { color: #ff8d7a; background: rgba(255, 141, 122, 0.1); }
.marker-pop-name {
  font-size: 16px;
  font-weight: 700;
  color: #f0f6fc;
  padding-right: 26px;
  margin-bottom: 4px;
}
.marker-pop-addr { font-size: 12px; color: #7d94ab; margin-bottom: 10px; }
.marker-pop-addr span { color: #a8bcd0; }
.marker-pop-meta { max-height: 40vh; overflow-y: auto; scrollbar-width: thin; }
.marker-pop-meta::-webkit-scrollbar { width: 5px; }
.marker-pop-meta::-webkit-scrollbar-thumb { background: rgba(79, 209, 255, 0.25); border-radius: 3px; }
.mp-row {
  display: flex;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(56, 76, 96, 0.4);
  font-size: 12.5px;
  line-height: 1.55;
}
.mp-row:last-child { border-bottom: none; }
.mp-k { color: #7d94ab; flex: 0 0 auto; min-width: 58px; white-space: nowrap; }
.mp-v { color: #dbe4ee; word-break: break-all; }
.mp-img { padding: 4px 0 8px; text-align: center; }
.mp-img img { width: 46px; height: 46px; object-fit: contain; }

/* 全面战场部署信息卡片 */
.war-deploy-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 9px;
  margin-top: 6px;
  border-radius: 9px;
  background: rgba(34, 211, 165, 0.07);
  border: 1px solid rgba(34, 211, 165, 0.18);
  font-size: 12px;
}
.war-deploy-item .wd-left { display: flex; align-items: center; gap: 7px; min-width: 0; }
.war-deploy-item .wd-img { width: 24px; height: 24px; object-fit: contain; flex: 0 0 auto; }
.war-deploy-item .wd-name { color: #cfe0f0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.war-deploy-item .wd-info { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.war-deploy-item .wd-cd { color: #ffc36b; }
.war-deploy-item .wd-num { color: #4ee6b6; }
.mp-link { color: #22d3a5; text-decoration: none; }
.mp-link:hover { text-decoration: underline; }
.marker-pop-floor {
  margin-top: 10px;
  width: 100%;
  padding: 9px 0;
  border-radius: 10px;
  border: 1px solid rgba(34, 211, 165, 0.45);
  color: #4ee6b6;
  font-size: 12.5px;
  font-weight: 600;
  transition: all 0.2s;
}
.marker-pop-floor:hover { background: rgba(34, 211, 165, 0.12); }

/* ============ 日志/分享弹窗 ============ */
.log-pop, .share-pop { position: absolute; inset: 0; z-index: 90; }
.log-pop-mask, .share-pop-mask { position: absolute; inset: 0; background: rgba(5, 8, 12, 0.6); backdrop-filter: blur(4px); }
.log-pop-dialog, .share-pop-dialog {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: min(480px, calc(100vw - 40px));
  max-height: 78vh;
  overflow-y: auto;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid rgba(56, 76, 96, 0.5);
  background: rgba(15, 21, 30, 0.97);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}
.log-pop-close, .share-pop-close {
  position: absolute;
  right: 12px; top: 12px;
  width: 28px; height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #8aa0b8;
  transition: all 0.2s;
}
.log-pop-close svg, .share-pop-close svg { width: 15px; height: 15px; }
.log-pop-close:hover, .share-pop-close:hover { color: #ff8d7a; background: rgba(255, 141, 122, 0.1); }
.log-pop-title, .share-pop-title { font-size: 17px; font-weight: 700; color: #f0f6fc; margin-bottom: 6px; }
.log-pop-warn { font-size: 11.5px; color: #ffd84d; margin-bottom: 12px; }
.log-pop-item { display: flex; gap: 12px; margin-bottom: 12px; }
.log-pop-time {
  flex: 0 0 74px;
  font-size: 12px;
  font-weight: 600;
  color: #22d3a5;
  padding-top: 2px;
}
.log-pop-content { font-size: 12.5px; color: #a8bcd0; line-height: 1.7; }
.log-pop-content ul { list-style: disc; padding-left: 16px; margin: 0; }
.share-pop-url { display: flex; gap: 8px; margin-top: 12px; }
.share-pop-input {
  flex: 1;
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid rgba(56, 76, 96, 0.45);
  background: rgba(18, 25, 36, 0.8);
  color: #dbe4ee;
  font-size: 12.5px;
  outline: none;
}
.share-pop-copy {
  padding: 9px 16px;
  border-radius: 10px;
  border: none;
  color: #06231a;
  background: linear-gradient(135deg, #22d3a5, #18b8a0);
  font-size: 12.5px;
  font-weight: 600;
  transition: all 0.2s;
}
.share-pop-copy:hover { filter: brightness(1.1); }
.share-pop-tip { margin-top: 8px; font-size: 12px; color: #22d3a5; min-height: 16px; }

/* ============ Toast ============ */
.map-toast {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 95;
  padding: 10px 20px;
  border-radius: 12px;
  border: 1px solid rgba(34, 211, 165, 0.4);
  background: rgba(15, 21, 30, 0.95);
  backdrop-filter: blur(12px);
  color: #e6eef7;
  font-size: 13px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  white-space: nowrap;
}
.map-toast.show { opacity: 1; transform: translateX(-50%) translateY(-6px); }

/* ============ DIY 页脚 ============ */
.map-diy-footer {
  position: fixed;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  z-index: 96;
  max-width: min(560px, calc(100vw - 30px));
  padding: 7px 16px;
  border-radius: 10px;
  border: 1px solid rgba(56, 76, 96, 0.45);
  background: rgba(15, 21, 30, 0.85);
  backdrop-filter: blur(10px);
  color: #9db4c8;
  font-size: 12px;
  text-align: center;
  line-height: 1.6;
  pointer-events: none;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.3);
}
@media (max-width: 767px) {
  .map-diy-footer { bottom: 66px; font-size: 11.5px; }
}

/* ============ 桌面端增强 ============ */
@media (min-width: 768px) {
  .map-tool { font-size: 14px; }
  .map-side { flex-basis: 356px; width: 356px; }
  .map-side.collapsed { margin-left: -356px; }
  .marker-filter-list { grid-template-columns: repeat(6, 1fr); }
  .marker-filter-item { padding: 9px 2px 7px; }
  .right-nav { right: 16px; bottom: 16px; }
}

/* ============ 移动端：面板变底部抽屉 ============ */
@media (max-width: 767px) {
  .map-tool { flex-direction: column; }
  .map-side {
    flex: 0 0 auto;
    width: 100%;
    height: 58vh;
    max-height: 58vh;
    position: absolute;
    left: 0; bottom: 0;
    z-index: 50;
    border-right: none;
    border-top: 1px solid rgba(56, 76, 96, 0.35);
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.4);
    border-radius: 16px 16px 0 0;
    transform: translateY(0);
    margin-left: 0 !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .map-side.collapsed { transform: translateY(calc(100% - 42px)); }
  .map-side.collapsed .side-body,
  .map-side.collapsed .side-footer { opacity: 0; pointer-events: none; }
  .side-body, .side-footer { transition: opacity 0.2s; }
  .map-canvas { flex: 1; width: 100%; position: absolute; inset: 0; }
  .side-header {
    padding: 10px 12px 9px 14px;
    border-radius: 16px 16px 0 0;
  }
  .side-title { font-size: 13.5px; }
  .mode-cards { padding: 8px 10px 6px; }
  .mode-card { flex-direction: row; justify-content: center; gap: 6px; padding: 8px 2px; }
  .mode-card-icon { width: 26px; height: 26px; border-radius: 8px; }
  .mode-card-icon svg { width: 15px; height: 15px; }
  .curr-map-bar { margin: 0 10px 8px; }
  .marker-filter-list { grid-template-columns: repeat(5, 1fr); }
  .bp-role-list { grid-template-columns: repeat(3, 1fr); }
  .nav-filter-dropdown { min-width: 190px; max-height: 230px; }
  .marker-pop { left: 12px; right: 12px; top: auto; bottom: 12px; width: auto; max-height: 46vh; }
  .right-nav { right: 12px; top: 12px; bottom: auto; flex-direction: row; gap: 6px; }
  .right-nav-btn { width: 34px; height: 34px; }
  .floor-nav, .region-nav { bottom: 106px; }
  .map-toast { bottom: 62vh; white-space: normal; max-width: 88vw; text-align: center; }
  .side-edge-toggle { display: none; }
}
