/* 基础重置 - 仅作用于新增元素 */
.float-pannel, .happy-island, .float-toast, .open-island {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "微软雅黑", "Comic Sans MS", 幼圆, sans-serif;
}

/* 左侧悬浮官号按钮 */
.float-pannel {
  position: fixed;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.float-left {
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
}
.float-right {
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

/* 圆形卡通悬浮按钮 */
.float-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  cursor: pointer;
  animation: float 3s ease-in-out infinite;
  position: relative;
}
/* 左侧按钮配色（卡通动物） */
.float-btn:nth-child(1) { background: linear-gradient(135deg, #ff9e9e, #ff6b9e); /* 猫咪 */ }
.float-btn:nth-child(2) { background: linear-gradient(135deg, #9ed8ff, #6bb2ff); /* 狗狗 */ }
.float-btn:nth-child(3) { background: linear-gradient(135deg, #9eff9e, #6bff9e); /* 兔子 */ }
.float-btn:nth-child(4) { background: linear-gradient(135deg, #ffd89e, #ffb26b); /* 狐狸 */ }
/* 右侧跳转按钮 */
.float-btn.right { 
  background: linear-gradient(135deg, #c79eff, #9e6bff); 
}
/* 右侧箭头 */
.float-btn.right .arrow {
  position: absolute;
  right: -15px;
  font-size: 18px;
  color: #9e6bff;
  animation: arrow-pulse 1.5s infinite;
}

/* 手机端适配 */
@media (max-width: 768px) {
  .float-btn {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  .float-btn.right .arrow {
    right: -10px;
    font-size: 14px;
  }
}

/* 漂浮动画 */
@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}
@keyframes arrow-pulse {
  0% { opacity: 0.5; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(5px); }
  100% { opacity: 0.5; transform: translateX(0); }
}

/* 友好悬浮提示（替代alert） */
.float-toast {
  position: fixed;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.8);
  color: #fff;
  padding: 12px 20px;
  border-radius: 50px;
  font-size: 14px;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  max-width: 80%;
  text-align: center;
}
.float-toast.show {
  opacity: 1;
}

/* 欢乐岛（核心：墓碑区域） */
.happy-island {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}
.island-container {
  background: #fff;
  border-radius: 20px;
  width: 90%;
  max-width: 600px;
  padding: 30px 20px;
  text-align: center;
  position: relative;
}
/* 关闭按钮 */
.island-close {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 20px;
  color: #999;
  cursor: pointer;
  background: none;
  border: none;
}
/* 欢乐岛标题 */
.island-title {
  color: #ff6b9e;
  font-size: 20px;
  margin-bottom: 10px;
}
.island-subtitle {
  color: #666;
  font-size: 14px;
  margin-bottom: 20px;
}

/* 墓碑容器（重点！显眼的墓碑区域） */
.tombstone-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 15px;
  margin-bottom: 25px;
}
/* 单个墓碑样式（可爱化） */
.tombstone {
  background: linear-gradient(135deg, #f0f8ff, #e8f4f8);
  border-radius: 10px 10px 0 0;
  padding: 15px 10px;
  text-align: center;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}
.tombstone-icon {
  font-size: 28px;
  margin-bottom: 8px;
}
.tombstone-name {
  font-size: 14px;
  color: #333;
  margin-bottom: 4px;
}
.tombstone-desc {
  font-size: 12px;
  color: #888;
}

/* 祈祷按钮 */
.pray-btn {
  background: linear-gradient(135deg, #ff9e9e, #ff6b9e);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 10px 25px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.pray-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(255,107,158,0.3);
}

/* 底部进入欢乐岛按钮 */
.island-entrance {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9997;
  background: linear-gradient(135deg, #9eff9e, #6bff9e);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 12px 30px;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(107,255,158,0.3);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.05); }
  100% { transform: translateX(-50%) scale(1); }
}
/* 手机端底部按钮适配 */
@media (max-width: 768px) {
  .island-entrance {
    padding: 10px 20px;
    font-size: 12px;
    bottom: 20px;
  }
  .island-title {
    font-size: 18px;
  }
  .tombstone-icon {
    font-size: 24px;
  }
}