/* 悬浮窗口样式 - 优化隐藏效果 */
.float-window {
  position: fixed;
  left: -37px; /* 默认左侧隐藏一半 */
  top: 50%;
  transform: translateY(-50%);
  width: 74px;
  height: 74px;
  z-index: 9999;
  cursor: pointer;
  border-radius: 0 50% 50% 0;
  overflow: visible;
  transition: left 0.3s ease;
}

.float-window.right-hidden {
  left: auto;
  right: -37px; /* 右侧隐藏一半 */
  border-radius: 50% 0 0 50%;
}

.float-window img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease;
}

.float-window:hover {
  left: 0; /* 鼠标悬停时完全显示 */
}

.float-window.right-hidden:hover {
  left: auto;
  right: 0; /* 右侧隐藏时悬停效果 */
}

/* 弹窗样式 */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  justify-content: center;
  align-items: center;
}

.modal-container {
  width: 90%;
  height: 85%;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
}

.modal-header {
  padding: 12px 15px;
  background: #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ddd;
}

.modal-title {
/*  font-weight: bold;*/
  font-size: 25px;
}

.modal-close {
  cursor: pointer;
  font-size: 30px;
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  transition: background 0.2s;
}

.modal-close:hover {
  background: #e0e0e0;
}

.modal-content {
  flex: 1;
  border: none;
  width: 100%;
  height: 100%;
}