/* 倒计时提示样式 */
.countdown-tip {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 10px 15px;
  border-radius: 4px;
  font-size: 18px;
  font-weight: bold;
  z-index: 9999;
}

/* 自动锁屏设置样式 */
.auto-lock-settings {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.form-check {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.form-check input[type="checkbox"] {
  margin-right: 10px;
  cursor: pointer;
}

.form-check label {
  cursor: pointer;
  font-weight: normal;
}

.auto-lock-time {
  display: flex;
  align-items: center;
  margin-top: 10px;
  margin-left: 25px;
}

.auto-lock-time label {
  margin-right: 10px;
  font-weight: normal;
}

.auto-lock-time input[type="number"] {
  width: 80px;
  padding: 8px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  text-align: center;
}

.auto-lock-time span {
  margin-left: 10px;
  color: #606266;
}

/* 锁屏功能样式 */
.lock-screen-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.05 );
  z-index: 9999;
}

.lock-screen-content {
  text-align: center;
  color: white;
}

.lock-icon {
  font-size: 64px;
  margin-bottom: 20px;
  opacity: 0.2;
}

.unlock-button {
  position: absolute;
  right: 20px;
  bottom: 20px;
  background-color: #409EFF;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.unlock-button:hover {
  background-color: #66B1FF;
}

/* 解锁面板 */
.unlock-panelA {
  position: absolute;
  right: 20px;
  bottom: 80px;
  transform: scale(0.6); /* 缩小到原来的1/3，即缩小200% */
  transform-origin: right bottom;
  width: 300px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 10000;
}

.unlock-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #EBEEF5;
}

.unlock-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
}

.close-button {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #909399;
}

.close-button:hover {
  color: #606266;
}

.unlock-body {
  padding: 20px;
}

/* 密码显示 */
.password-display {
  margin-bottom: 20px;
  text-align: center;
  position: relative;
}

.password-input {
  width: 100%;
  height: 40px;
  border: 1px solid #DCDFE6;
  border-radius: 4px;
  padding: 0 40px 0 10px;
  font-size: 18px;
  letter-spacing: 4px;
  text-align: center;
  margin-bottom: 20px;
}

/* 密码可见性切换按钮 */
.toggle-password {
  position: absolute;
  right: 10px;
  top: 38%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #909399;
  cursor: pointer;
  font-size: 18px;
  padding: 5px;
  z-index: 1;
}

.toggle-password:hover {
  color: #409EFF;
}

/* 数字键盘 */
.numeric-keypad {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.numeric-keypad.compact {
  gap: 8px;
}

.keypad-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.keypad-button {
  flex: 1;
  height: 50px;
  border: 1px solid #DCDFE6;
  border-radius: 4px;
  background-color: #F5F7FA;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  justify-content: center;
  align-items: center;
}

.keypad-button.small {
  height: 40px;
  font-size: 16px;
}

.keypad-button.small.wide {
  flex: 2;
}

.keypad-button:hover {
  background-color: #E4E7ED;
}

.keypad-button.control {
  background-color: #ECF5FF;
  color: #409EFF;
  border-color: #D9ECFF;
}

.keypad-button.control:hover {
  background-color: #D9ECFF;
}

/* 控制按钮 */
.keypad-controls {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

/* 确定按钮 */
.keypad-button.confirm {
  background-color: #67C23A;
  color: white;
}

/* 错误提示 */
.error-message {
  color: #F56C6C;
  font-size: 14px;
  margin-top: 10px;
  text-align: center;
}

/* 退出登录按钮 */
.logout-button {
  width: 100%;
  height: 40px;
  background-color: #F56C6C;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 10px;
  transition: background-color 0.3s;
}

.logout-button:hover {
  background-color: #F78989;
}

/* 弹窗样式 */
.lock-password-dialog,
.lock-options-dialog {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.dialog-content {
  width: 300px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #EBEEF5;
}

.dialog-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
}

.dialog-body {
  padding: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: #606266;
}

.dialog-footer {
  display: flex;
  justify-content: flex-end;
  padding: 12px 16px;
  border-top: 1px solid #EBEEF5;
  gap: 10px;
}

.cancel-button {
  height: 32px;
  padding: 0 15px;
  border: 1px solid #DCDFE6;
  border-radius: 4px;
  background-color: white;
  color: #606266;
  cursor: pointer;
  transition: all 0.3s;
}

.cancel-button:hover {
  border-color: #C6E2FF;
  color: #409EFF;
}

.confirm-button {
  height: 32px;
  padding: 0 15px;
  border: 1px solid #409EFF;
  border-radius: 4px;
  background-color: #409EFF;
  color: white;
  cursor: pointer;
  transition: all 0.3s;
}

.confirm-button:hover {
  background-color: #66B1FF;
}