/*主界面顶部工具栏样式*/
.toolbar {
  width: calc(100% - 20px);
  display: flex;
  justify-content: space-between;
  background-color: #fff;
  align-items: center;
  border-bottom: 1px solid #ccc;
  padding: 5px;
  box-sizing: border-box;
  position: relative;
  z-index: 2000;
}

.toolbar .left,
.toolbar .right {
  display: flex;
  align-items: center;
}

.toolbar .right {
  justify-content: flex-end;
}

.toolbar .dropdown {
  position: relative;
}

.toolbar button {
  background: none;
  border: none;
  margin: 0 5px;
  font-size: 14px;
  cursor: pointer;
  position: relative;
  padding: 5px 10px;
}

/*主界面左上角按钮*/
.left button:focus,
.left button.selected,
.left button:hover {
  outline: none;
  background-color: #f0f0f0;
  border-radius: 5px;
}

/*左上角下拉菜单样式*/
.dropdown-content {
  display: none;
  position: absolute;
  background-color: rgb(241, 239, 241);
  margin-top: 5px;
  min-width: 160px;
  box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.13);
  z-index: 1;
  left: 0;
  top: 100%;
  border-radius: 8px;
  border: 1px solid #ccc;
  padding: 5px;
  box-sizing: border-box;
}

.dropdown-content a {
  color: black;
  padding: 4px 4px;
  text-decoration: none;
  display: block;
  font-size: 14px;
}

.dropdown-content a:hover {
  background-color: #ddd;
  border-radius: 8px;
}

/*搜索样式*/
.search-input {
  padding: 5px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 5px;
  outline: none;
}

.search-btn {
  padding: 5px 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-left: none;
  background-color: #f0f0f0;
  cursor: pointer;
  border-radius: 5px;
}

.search-btn:hover {
  background-color: #e0e0e0;
}

.clear-btn {
  position: absolute;
  right: 65px;
  top: 10px;
  font-size: 18px;
  cursor: pointer;
  color: #999;
  display: none; /* 默认隐藏 */
}

.clear-btn:hover {
  color: #333;
}
/* 搜索结果容器样式 */
.search-results {
  position: absolute;
  background: white;
  border: 1px solid #ccc;
  max-height: 300px;
  overflow-y: auto;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: none; /* 默认隐藏 */
  border-radius: 0 0 5px 5px;
}

.search-result-item {
  padding: 8px;
  cursor: pointer;
}

.search-result-item:hover {
  background-color: #f0f0f0;
}

.show {
  display: block;
}
/* 标题栏 */
.toolbar .toptitle {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 16px;
  padding: 6px;
  font-weight: bold;
  cursor: pointer;
}
/* 使用说明 */
#helpText {
  position: absolute;
  top: 50px;
  left: 10px;
  width: 280px;
  height: auto;
  font-size: 14px;
  line-height: 18px;
  padding: 5px;
  /* border: 1px solid #ddd; */
  /* border-radius: 5px; */
  /* background-color: #f9f9f9; */
  white-space: pre-wrap;
  user-select: none; /* 不可选择 */
  /* display: none;  */
  text-align: left;
}
/* 关于我们黑色半透明蒙版 */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: none; /* 初始隐藏 */
  justify-content: center;
  align-items: center;
  z-index: 2000;
}
/* 弹出框 */
.about-popup {
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  width: 80%;
  max-width: 600px;
  text-align: center;
}
/* 关闭按钮 */
.close-btn {
  background-color: #2196f3;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  margin-top: 20px;
}
.close-btn:hover {
  background-color: #1976d2;
}
.close-btn:active {
  background-color: #1565c0;
}
/* 关于页面内容 */
.about-content h2 {
  margin-top: 0;
}
.about-content p {
  margin: 10px 0;
}
/* 版本更新记录 */
.update-log {
  position: relative;
  left: 50%;
  top:40%;
  transform: translate(-50%,-50%);
  width: 450px;
  max-height: 60%;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 10px;
  margin-top: 20px;
  background-color: #f9f9f9;
}
.update-log h2 {
  font-size: 1.5em;
  border-bottom: 1px solid #ccc;
  padding-bottom: 5px;
}
.update-log p {
  margin: 0px 0;
}
.logContent
{
  text-align: left;
  max-height: calc(60vh - 160px);
    overflow-y: auto;
  user-select: none; /* 不可选择 */
}
/* 统计页面 */
.statistics {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 64%;
  max-height: 90%;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 0px 10px;
  background-color: #f9f9f9;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 50px; /* 为关闭按钮预留空间 */
}

.chart-row, .chart-column {
  display: flex;
  justify-content: space-around;
  width: 100%;
  margin-bottom: 20px;
}

.chart-column {
  flex-direction: column;
  align-items: center;
}

.chart-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 10px;
}

canvas {
  image-rendering: pixelated; 
  display: block;
}
.statistics .close-btn {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
/* 分享页面 */
#copyLinkButton, #uploadDataButton {
  margin-left: 10px;
  padding: 5px 10px;
  cursor: pointer;
  border: none;
  border-radius: 5px;
  background-color: #007bff;
  color: white;
}

#copyLinkButton:hover, #uploadDataButton:hover {
  background-color: #0056b3;
}


/* 主题切换 */
.theme-btn
{
  position: relative;
  top: 2px;
  width: 20px;
  height: 20px;
}

.theme-btn:hover {
  transform: scale(1.1); /* 鼠标悬停时放大按钮 */
  filter: brightness(1.2); /* 鼠标悬停时增加亮度 */
}

.theme-btn:active {
  transform: scale(0.9); /* 点击时缩小按钮 */
  filter: brightness(0.8); /* 点击时降低亮度 */
}