
    /* 移动端隐藏 */
@media (max-width: 768px) {
  #live2d-container, #test-containers {
    display: none !important;
  }
}

/* 桌面端样式 */
#live2d-container {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 200px;
  height: 200px;
  z-index: 10;
  user-select: none;
  /* 添加悬停效果 */
  transition: transform 0.3s ease;
}

/* 鼠标悬停时稍微放大 */
#live2d-container:hover {
  transform: scale(1.05);
  z-index: 11; /* 确保悬停时在最上层 */
}
      canvas {
        width: 100%;
        height: 100%;
        display: block;
      }
      #dialogue-box {
        position: fixed; /* 改为 fixed 定位，相对于视口 */
        left: 10%; /* 水平高度 */
        top: 75%; /* 垂直高度 */
        transform: translate(-50%, -50%); /* 精确居中 */
        background-color: rgba(23, 23, 116, 0.7);
        color: white;
        padding: 12px 24px;
        border-radius: 12px;
        max-width: 250px;
        min-width: 150px;
        text-align: center;
        font-size: 16px;
        display: none;
        z-index: 100;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        user-select: none;
        animation: float 3s ease-in-out infinite;
      
      }
      #test-containers {
        position: fixed;
        top: 20px;
        left: 20px;
        background: white;
        padding: 15px;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        user-select: none;
      }
      .test-btn {
        display: block;
        margin: 8px 0;
        padding: 8px 12px;
        background: #4caf50;
        color: white;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        transition: background 0.3s;
        user-select: none;
      }
      .test-btn:hover {
        background: #45a049;
      }
      /* 开发时调试命中区域用，可删 */
      /*
      .debug-area {
        position: absolute;
        border: 2px dashed rgba(255, 0, 0, 0.5);
        pointer-events: none;
        z-index: 15;
      }
      */
