video {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    z-index: 1 !important;
  }
  
  .loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    display: none; /* 初始状态下隐藏 */
  }
  
  .loading-text {
    margin-top: 20px;
    font-size: 1.5rem;
    color: #3498db;
    text-align: center;
  }
  
  /* 模态窗口的整体样式 */
  .image-modal {
    display: none; /* 默认隐藏 */
    position: fixed;
    z-index: 1000; /* 确保在最上层 */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* 使模态框本身可以滚动 */
    background-color: rgba(0, 0, 0, 0.7); /* 灰色半透明背景 */
    align-items: center; /* 垂直居中 */
    justify-content: center; /* 水平居中 */
  }
  
  /* 将模态窗口本身设置为 flexbox 容器 */
  .image-modal-content-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
  }
  
  /* 放大的图片 */
  .image-modal-content {
    max-width: 95%;
    max-height: 95%;
    margin: auto;
    display: block;
  }
  
  /* 关闭按钮 */
  .image-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
  }
  
  .image-close:hover,
  .image-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
  }
.loader {
    border: 16px solid #f3f3f3;
    border-radius: 50%;
    border-top: 16px solid #3498db;
    width: 80px;
    height: 80px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.card-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#sidebar-container {
    height: 100vh; /* 确保 sidebar 高度占满视口高度 */
    position: sticky;
    top: 0;
}

.code-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}

.code-box {
  width: 40px;
  height: 40px;
  text-align: center;
  font-size: 24px;
  margin-right: 10px;
  border: none;
  border-bottom: 2px solid #ccc;
  background-color: transparent;
  transition: border-color 0.3s ease;
}

.code-box.active {
  border-color: #007bff;  /* 激活状态显示不同颜色 */
}

.invisible-input {
  position: absolute;
  opacity: 0;
  pointer-events: auto;
  width: 1px;  /* 确保透明输入框存在，但不影响显示 */
  height: 1px;
  top: 0;
  left: 0;
}
