 /* 右下角開啟按鈕（可自行換成你原本的機器人圖） */
  #chatbot-toggle {
    position: fixed;
    bottom: 80px; right: 15px;
    width: 60px; height: 60px;
    background: #007bff;
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(0,123,255,0.5);
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
  }
  #chatbot-toggle:hover { transform: scale(1.1); }

  /* 主聊天視窗 - 只允許特定邊緣拖曳 */
  #chatbot-window {
    position: fixed;
    bottom: 80px; right: 30px;
    width: 380px;
    height: 580px;
    min-width: 320px;
    min-height: 480px;
    max-width: 90vw;
    max-height: 90vh;
    background: white;
    border-radius: 28px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    overflow: hidden;
    z-index: 999;
    display: none;
    flex-direction: column;
    /*transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1);*/
    transform: scale(0.9) translateY(30px);
    opacity: 0;
  }
  
  #chatbot-window.open {
    display: flex;
    transform: scale(1) translateY(0);
    opacity: 1;
  }

  /* ==== 關鍵：只讓四個角落 + 底部可拖 ==== */
  .resize-corner {
    position: absolute;
    width: 30px; height: 30px;
    background: transparent;
    z-index: 10;
  }
  /* 左下角 */
  .resize-corner.sw { bottom: 0; left: 0; cursor: sw-resize; }
  /* 右下角 */
  .resize-corner.se { bottom: 0; right: 0; cursor: se-resize; }
  /* 左上角（如果要） */
  .resize-corner.nw { top: 0; left: 0; cursor: nw-resize; }
  /* 右上角（如果要） */
  .resize-corner.ne { top: 0; right: 0; cursor: ne-resize; }
  /* 底部整條邊 */
  
  .resize-bottom {
    position: absolute;
    bottom: 0; left: 30px; right: 30px;
    height: 20px;
    cursor: ns-resize;
    background: transparent;
  }

  .chat-header {
	  position: relative;
      width: 100%;
      height: 100%;
      
      border-radius: 12px;
      overflow: hidden;
  }
  
  .close-btn {
    position: absolute;
    right: 12px; top: 2%;
    transform: translateY(0%);
    width: 32px; height: 32px;
    background: rgba(255,255,255,0.25);
    border: none; border-radius: 50%;
    color: white; font-size: 20px;
    cursor: pointer;
  }