/* 工具栏样式 */
.reveal-toolbar {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  background: rgba(29, 32, 37, 0.9);
  border-radius: 8px;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  transition: opacity 0.3s;
}

.reveal-toolbar:hover {
  opacity: 1;
}

/* 工具栏按钮样式 */
.reveal-toolbar button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 8px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.2s;
}

.reveal-toolbar button:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  transform: translateY(-1px);
}

.reveal-toolbar button:active {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(0);
}

/* 分隔线样式 */
.reveal-toolbar .divider {
  width: 1px;
  height: 24px;
  margin: 0 2px;
  background: rgba(255, 255, 255, 0.2);
}

/* 工具栏图标样式 */
.reveal-toolbar svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  transition: transform 0.2s;
}

.reveal-toolbar button:hover svg {
  transform: scale(1.1);
}

.reveal-toolbar img {
  width: 20px;
  height: 20px;
  fill: currentColor;
  transition: transform 0.2s;
}

/* 录制按钮闪烁动画 */
@keyframes recording-blink {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

.reveal-toolbar .record_video.recording {
  animation: recording-blink 1s infinite;
}

/* 摄像头按钮样式 */
.reveal-toolbar .camera-toggle {
  background: rgba(29, 32, 37, 0.9);
  border-radius: 6px;
  width: 36px;
  height: 36px;
  padding: 8px;
}

.reveal-toolbar .camera-toggle.active {
  background: #4CAF50;
  box-shadow: 0 0 12px rgba(76, 175, 80, 0.5);
}

.reveal-toolbar .camera-toggle:hover {
  transform: scale(1.1);
}

/* 响应式样式 */
@media (max-width: 640px) {
  .reveal-toolbar {
    bottom: 20px;
    top: auto;
    padding: 4px;
  }
  
  .reveal-toolbar button {
    width: 32px;
    height: 32px;
    padding: 6px;
  }
}

/* 系统设置 */
.systemset-selector {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(29, 32, 37, 1);
  padding: 40px; /* 增大弹出层尺寸 */
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1001;
  color: #fff;
}
.systemset-selector p {
  line-height: 2rem;
}
.systemset-selector .close-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #f0f0f000;
  border: 0px solid #ccc;
  /* border-radius: 4px; */
  /* padding: 5px; */
  cursor: pointer;
  /* transition: background-color 0.3s, transform 0.3s; */
  color: #ffffff;
}

/* 使用说明样式 */
.help-selector {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(29, 32, 37, 1);
  padding: 40px; /* 增大弹出层尺寸 */
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1001;
  color: #fff;
}
.help-selector p {
  line-height: 1.5rem;
}
.help-selector .close-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #f0f0f000;
  border: 0px solid #ccc;
  /* border-radius: 4px; */
  /* padding: 5px; */
  cursor: pointer;
  /* transition: background-color 0.3s, transform 0.3s; */
  color: #ffffff;
}

/* 主题选择器样式 */
.theme-selector {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(29, 32, 37, 1);
  padding: 40px; /* 增大弹出层尺寸 */
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1001;
  color: #fff;
}

.theme-option {
  margin: 10px 10px;
  cursor: pointer;
  transition: color 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.theme-option img {
  width: 10rem;
  height: auto;
  margin-bottom: 10px;
}

.theme-selector {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(29, 32, 37, 1);
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1001;
  color: #fff;
  width: 80%;
  /*display: flex;
  display: ruby;
    */
    overflow: hidden;
    height: 80vh;
}

.theme-selector .close-icon3 {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
  cursor: pointer;
  background: url('close-icon.svg') no-repeat center center;
  background-size: contain;
}

.theme-option:hover {
  color: #4CAF50;
}

.theme-selector .close-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #f0f0f000;
  border: 0px solid #ccc;
  /* border-radius: 4px; */
  /* padding: 5px; */
  cursor: pointer;
  /* transition: background-color 0.3s, transform 0.3s; */
  color: #ffffff;
}

.close-button2:hover {
  background-color: #e0e0e0;
  transform: scale(1.1);
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  grid-auto-rows: minmax(120px, auto);
  gap: 12px;
  padding: 16px;
  max-width: 90vw;
  max-height: 90vh;
  overflow: auto;
}
/* 定义闪烁动画 */
@keyframes ai-blink {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

/* 应用闪烁效果的类 */
.navigate-aiexplain.blinking {
  animation: ai-blink 1s ease-in-out infinite;
  background-color: #4CAF50;
}
/* 定义闪烁动画 */
@keyframes buttonBlink {
  0% { background-color: rgba(255, 255, 255, 0.1); } /* 初始背景 */
  50% { background-color: rgba(74, 144, 226, 0.3); } /* 高亮背景 */
  100% { background-color: rgba(255, 255, 255, 0.1); } /* 恢复初始 */
}

/* 应用闪烁的类 */
.reveal-toolbar .auto-play.blinking {
  animation: buttonBlink 1s ease-in-out infinite;
}



/* 应用闪烁的类 */
.reveal-toolbar .auto-replay.blinking {
  animation: buttonBlink 1s ease-in-out infinite;
}