* {
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  color: #333;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

h1 {
  color: white;
  text-align: center;
  margin: 0 0 30px 0;
  font-size: 2.5rem;
  font-weight: 300;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

h2 {
  color: white;
  text-align: center;
  margin: 30px 0 20px 0;
  font-size: 1.8rem;
  font-weight: 300;
}

#map {
  height: 60vh;
  width: 100%;
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  margin-bottom: 20px;
}

/* 地图中央十字标 */
.crosshair {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 32px;
  height: 32px;
  margin-left: -16px;
  margin-top: -16px;
  pointer-events: none;
  background: url("https://upload.wikimedia.org/wikipedia/commons/e/e0/Crosshairs.svg")
    no-repeat center;
  background-size: contain;
  z-index: 1000;
}

button {
  margin: 10px;
  padding: 12px 24px;
  font-size: 1rem;
  border: none;
  background: linear-gradient(45deg, #667eea, #764ba2);
  color: white;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  font-weight: 500;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  background: linear-gradient(45deg, #764ba2, #667eea);
}

button:active {
  transform: translateY(0);
}

ul {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 0 auto;
}

li {
  margin: 15px 0;
  background: rgba(255,255,255,0.95);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

li:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

li a {
  display: inline-block;
  margin: 5px 8px;
  padding: 8px 16px;
  background: linear-gradient(45deg, #667eea, #764ba2);
  color: white;
  text-decoration: none;
  border-radius: 20px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

li a:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* 定位按钮右下角固定 */
#recenterBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(45deg, #667eea, #764ba2);
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
  z-index: 1001;
}

#recenterBtn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .container {
    padding: 10px;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  #map {
    height: 50vh;
    border-radius: 10px;
  }
  
  li {
    padding: 15px;
    margin: 10px 0;
  }
  
  li a {
    margin: 3px 5px;
    padding: 6px 12px;
    font-size: 0.8rem;
  }
  
  #recenterBtn {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
  }
}

/* 加载动画 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

li {
  animation: fadeInUp 0.5s ease forwards;
}

/* 十字标样式优化 */
.crosshair {
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

/* 通知动画 */
@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translate(-50%, -100%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes slideOutUp {
  from {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  to {
    opacity: 0;
    transform: translate(-50%, -100%);
  }
}

/* 按钮容器样式 */
.button-container {
  text-align: center;
  margin: 20px 0;
}

/* 改进空状态样式 */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #666;
  font-style: italic;
}

/* 位置项目内的按钮样式 */
li button {
  margin: 5px;
  padding: 6px 12px;
  font-size: 0.85rem;
  border-radius: 15px;
}

/* 删除按钮特殊样式 */
li button[title="删除"] {
  background: linear-gradient(45deg, #f44336, #d32f2f) !important;
  transition: all 0.3s ease;
}

li button[title="删除"]:hover {
  background: linear-gradient(45deg, #d32f2f, #b71c1c) !important;
  transform: scale(1.1);
}

/* 跳转按钮样式 */
li button:not([title="删除"]) {
  background: linear-gradient(45deg, #4CAF50, #45a049) !important;
}

li button:not([title="删除"]):hover {
  background: linear-gradient(45deg, #45a049, #3d8b40) !important;
  transform: scale(1.05);
}
