
/* =====================================
   小地图样式 - Ancient Mini Map
   ===================================== */

/* 地图开关按钮 */
.mini-map-toggle-btn {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, #5a4a2a, #1a1410);
  border: 2px solid #d4a574;
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.mini-map-toggle-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(212, 165, 116, 0.6);
}

.mini-map-toggle-btn .map-icon-svg {
  filter: drop-shadow(0 2px 2px rgba(0,0,0,0.5));
  transition: all 0.3s ease;
}

.mini-map-toggle-btn:hover .map-icon-svg {
  stroke: #f5e6d3;
  filter: drop-shadow(0 0 5px rgba(212, 165, 116, 0.8));
}

/* =====================================
   探索进度按钮 - Exploration Progress
   ===================================== */

/* 探索进度开关按钮 */
.exploration-progress-toggle-btn {
  position: absolute;
  bottom: 20px;
  right: 90px;
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, #5a4a2a, #1a1410);
  border: 2px solid #d4a574;
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.exploration-progress-toggle-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(212, 165, 116, 0.6);
}

.exploration-progress-toggle-btn .progress-icon-svg {
  filter: drop-shadow(0 2px 2px rgba(0,0,0,0.5));
  transition: all 0.3s ease;
}

.exploration-progress-toggle-btn:hover .progress-icon-svg {
  stroke: #f5e6d3;
  filter: drop-shadow(0 0 5px rgba(212, 165, 116, 0.8));
}

/* 探索进度遮罩层 */
.exploration-progress-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.exploration-progress-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

/* 探索进度容器 */
.exploration-progress-container {
  position: relative;
  width: 90%;
  max-width: 800px;
  max-height: 80%;
  background: #f5e6d3;
  background-image: radial-gradient(#d4a574 1px, transparent 1px);
  background-size: 20px 20px;
  border: 4px solid #5a4a2a;
  border-radius: 8px;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.8), inset 0 0 100px rgba(139, 106, 54, 0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* 探索进度头部 */
.exploration-progress-header {
  height: 60px;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.3);
  border-bottom: 2px solid #d4a574;
}

.exploration-title {
  padding: 8px 16px;
  background: linear-gradient(90deg, #5a4a2a, #8b6a36);
  border: 2px solid #d4a574;
  color: #f5e6d3;
  border-radius: 4px;
  font-weight: bold;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  gap: 8px;
}

.title-icon {
  font-size: 18px;
}

.exploration-progress-close {
  width: 40px;
  height: 40px;
  background: #c52626;
  color: #fff;
  font-size: 24px;
  line-height: 40px;
  text-align: center;
  border-radius: 50%;
  border: 2px solid #d4a574;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.exploration-progress-close:hover {
  transform: rotate(90deg) scale(1.1);
}

/* 探索进度内容区 */
.exploration-progress-content {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  background: rgba(255, 230, 180, 0.2);
}

/* 总体统计 */
.overall-stats {
  margin-bottom: 20px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.5);
  border: 2px solid #d4a574;
  border-radius: 6px;
}

.overall-progress-bar {
  width: 100%;
  height: 20px;
  background: rgba(90, 74, 42, 0.3);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
  border: 1px solid #8b6a36;
}

.overall-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #c52626, #d4a574);
  transition: width 0.5s ease;
  box-shadow: 0 0 10px rgba(197, 38, 38, 0.5);
}

.overall-text {
  text-align: center;
  font-weight: bold;
  color: #5a4a2a;
  font-size: 14px;
}

/* 场景进度项 */
.scene-progress-item {
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.7);
  border: 2px solid #d4a574;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.scene-progress-header {
  padding: 12px 15px;
  background: linear-gradient(90deg, rgba(139, 106, 54, 0.2), rgba(90, 74, 42, 0.2));
  border-bottom: 1px solid #d4a574;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.scene-name {
  font-weight: bold;
  color: #5a4a2a;
  font-size: 16px;
}

.scene-stats {
  padding: 4px 10px;
  background: #8b6a36;
  color: #f5e6d3;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
}

/* 已探索/未探索区块 */
.explored-section,
.unexplored-section {
  padding: 12px 15px;
}

.section-title {
  font-weight: bold;
  margin-bottom: 8px;
  font-size: 14px;
}

.explored-title {
  color: #2d7a2d;
}

.unexplored-title {
  color: #8b6a36;
}

.hotspot-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hotspot-item {
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 13px;
  transition: all 0.3s ease;
}

.hotspot-item.explored {
  background: rgba(45, 122, 45, 0.1);
  border: 1px solid rgba(45, 122, 45, 0.3);
  color: #2d7a2d;
}

.hotspot-item.explored:hover {
  background: rgba(45, 122, 45, 0.2);
  transform: translateX(5px);
}

.hotspot-item.unexplored {
  background: rgba(139, 106, 54, 0.1);
  border: 1px solid rgba(139, 106, 54, 0.3);
  color: #5a4a2a;
}

.hotspot-item.unexplored:hover {
  background: rgba(139, 106, 54, 0.2);
}

.no-content {
  text-align: center;
  padding: 40px;
  color: #8b6a36;
  font-size: 16px;
}

/* 地图全屏遮罩 */
.mini-map-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.mini-map-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

/* 地图容器 */
.mini-map-container {
  position: relative;
  width: 90%;
  max-width: 1000px;
  height: 80%;
  background: #f5e6d3; /* 宣纸色 */
  background-image: radial-gradient(#d4a574 1px, transparent 1px);
  background-size: 20px 20px;
  border: 4px solid #5a4a2a;
  border-radius: 8px;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.8), inset 0 0 100px rgba(139, 106, 54, 0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* 地图头部 */
.mini-map-header {
  height: 60px;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.3);
  border-bottom: 2px solid #d4a574;
}

/* 探索进度 */
.exploration-progress {
  padding: 8px 16px;
  background: linear-gradient(90deg, #5a4a2a, #8b6a36);
  border: 2px solid #d4a574;
  color: #f5e6d3;
  border-radius: 4px;
  font-weight: bold;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  gap: 8px;
}

.progress-icon {
  font-size: 18px;
}

/* 关闭按钮 */
.mini-map-close {
  width: 40px;
  height: 40px;
  background: #c52626;
  color: #fff;
  font-size: 24px;
  line-height: 40px;
  text-align: center;
  border-radius: 50%;
  border: 2px solid #d4a574;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.mini-map-close:hover {
  transform: rotate(90deg) scale(1.1);
}

/* 地图内容区 */
.mini-map-content {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: rgba(255, 230, 180, 0.2);
}

/* SVG 路径 */
.map-path-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.map-path-line {
  stroke: #8b6a36;
  stroke-width: 6;
  stroke-dasharray: 15 15;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,0.2));
  opacity: 0.6;
}

/* 地图节点 */
.map-node {
  position: absolute;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 10;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.map-node:hover {
  transform: translate(-50%, -50%) scale(1.1);
  z-index: 20;
}

.map-node .node-icon {
  width: 32px;
  height: 32px;
  background: radial-gradient(circle, #e0e0e0, #bfbfbf);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  color: #555;
  font-size: 18px;
  transition: all 0.3s ease;
}

.map-node .node-label {
  margin-top: 10px;
  padding: 4px 10px;
  background: rgba(245, 230, 211, 0.9);
  border-radius: 4px;
  border: 1px solid #d4a574;
  font-size: 12px;
  color: #5a4a2a;
  font-weight: bold;
  white-space: nowrap;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  opacity: 0.8;
  transform: translateY(0);
  transition: all 0.3s ease;
}

/* 激活(当前场景)节点状态 - 红色样式 */
.map-node.active .node-icon {
  background: radial-gradient(circle, #c52626, #8b1a1a);
  border-color: #d4a574;
  color: #fff;
  transform: scale(1.2);
  box-shadow: 0 0 20px rgba(197, 38, 38, 0.6);
}

.map-node.active .node-label {
  opacity: 1;
  background: #f5e6d3;
  color: #c52626;
  border-color: #c52626;
  font-weight: 800;
  transform: translateY(5px) scale(1.1);
}

/* 已访问节点状态 */
.map-node.visited .node-icon {
  background: radial-gradient(circle, #d4a574, #b08d55);
  border-color: #fff;
  color: #fff;
}
