/* AI 面板关闭按钮修复 */
.ai-panel-header {
  position: relative !important;
  z-index: 1001 !important;
}

.ai-panel-header > div:last-child {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.ai-panel-header > div:last-child > span {
  cursor: pointer !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.2) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.2rem !important;
  transition: all 0.2s ease !important;
  color: white !important;
}

.ai-panel-header > div:last-child > span:hover {
  background: rgba(255, 255, 255, 0.4) !important;
  transform: rotate(90deg) scale(1.1) !important;
}

/* 确保面板初始隐藏 */
.ai-panel:not(.open) {
  display: none !important;
}
