/* custom_assets/css/custom.css */

/* 悬浮按钮样式 */
.floating-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #3F51B5;
  /* 更新为您想要的蓝色 */
  /* color: white; */
  border: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  z-index: 1000;
  transition: background-color 0.3s ease;
  overflow: hidden;
}

.floating-btn:hover {
  background-color: #303F9F;
  /* 鼠标悬停时稍微深一点的蓝色 */
}

/* 悬浮按钮内部的 SVG 图像样式 */
.floating-btn img {
  width: 32px;
  height: 32px;
  display: block;
  filter: invert(100%);
  /* 实现颜色反转，如果SVG是深色的，反转后会变浅色，适合深色背景 */
}

/* 如果希望仅在鼠标悬停在按钮上时 SVG 才反色，可以使用下面的代码替换上面的 .floating-btn img */
/*
.floating-btn img {
  width: 32px;
  height: 32px;
  display: block;
  transition: filter 0.3s ease;
}

.floating-btn:hover img {
  filter: invert(100%);
}
*/

/* 弹出窗口 (Modal) 样式 */
.modal {
  display: none;
  position: fixed;
  z-index: 1001;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: #fefefe;
  margin: auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 900px;
  height: 85%;
  max-height: 750px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.modal-content iframe {
  flex-grow: 1;
  border: none;
  width: 100%;
}

/* 弹出窗口的关闭按钮样式 */
.close-btn {
  color: #aaa;
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
}

.close-btn:hover,
.close-btn:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}