/* 遮罩层样式 */
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  z-index: 1000000000;
  transition: opacity 0.3s ease;
}

/* 弹窗容器样式（含关闭按钮） */
.modalPop {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 2rem 3rem 5rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  z-index: 1000000001;
  /* position: relative; */
  min-width: 30rem;
  box-sizing: border-box;
}

/* 关闭按钮样式 */
.closeBtn {
  position: absolute;
  top: 0.3rem;
  right: 1rem;
  font-size: 1.8rem;
  color: #c9c6c6;
  cursor: pointer;
  transition: color 0.3s ease;
  user-select: none;
}

.closeBtn:hover {
  color: #8cabdf;
}

/* 修改按钮样式 */
.edit-btn {
  padding: 0.5rem 1rem;
  background-color: #8cabdf;
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-size: 0.875rem;
}

.edit-btn:hover {
  background-color: #7a9cd8;
}

/* .hintIcon { */
  /* color: rgba(209, 36, 36, 0.8); */
/* } */
/* 弹窗标题 */
#modalTitle {
  font-size: 1.25rem;
  color: #3b3b3b;
  /* 标题深灰 */
  margin-bottom: 1.5rem;
  text-align: center;
}

/* 删除按钮样式 */
.delete-btn {
  padding: 0.5rem 1rem;
  background-color: #f56c6c;
  /* 删除按钮红色（符合用户认知） */
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-size: 0.875rem;
}

.delete-btn:hover {
  background-color: #f56767;
}

/* 输入框样式 */
#keyInput {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 20px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s ease;
}

#keyInput:focus {
  border-color: #8cabdf;
}

/* 确认按钮样式 */
#confirmBtn {
  width: 100%;
  padding: 12px 0;
  background-color: #8cabdf;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#confirmBtn:hover {
  background-color: #7a9cd8;
}

/* 列表（表格）样式 */
#keyTable {
  width: 100%;
  display: none;
  border-collapse: collapse;
  margin-top: 20px;
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#keyTable th,
#keyTable td {
  padding: 15px;
  text-align: left;
  color: #777;
}

#keyTable th {
  background-color: #f8f9fa;
  color: #3d3c3c;
  font-weight: 500;
}

#keyTable tr:nth-child(even) {
  background-color: #f8f9fa;
}

#keyTable tr:hover {
  /* background-color: #e9f0fb; */
  /*  hover 时浅蓝灰背景 */
}

.flex-content {
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: flex-start;
}

.flex-sidebar {
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
}

.navBottom {
  width: 90%;
  position: absolute;
  bottom: 0;
  box-sizing: border-box;
}

.navBottom-item {
  border-top: 1px solid #363f44;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.5rem 1rem;
  color: #777;
  box-sizing: border-box;
  cursor: pointer;
}

.navBottom-item > p {
  margin: 0;
  margin-left: 0.5rem;
  font-size: 0.9rem;
}

.navBottom-item:hover {
  /* color: #6796bd; */
}

.guideCard {
  width: 100%;
  padding: 1rem 2rem 0.5rem;
  border-radius: 0.6rem;
  /* margin-left: 1rem; */
}

.card-title {
  /* font-size: 1.1rem; */
}

.btnItem {
  font-size: 0.8rem;
  color: rgb(245, 169, 29, 0.8);
  cursor: pointer;
}

.deleteItem {
  /* background-color: rgb(250, 37, 37, 0.8); */
  color: rgba(231, 43, 43, 0.8);
}

.content-wrapper {
  /* width: calc(100vw - 250px); */
  display: flex;
  align-items: flex-start;
}

.empty-state {
  width: 100%;
  height: 100%;
  /* display: none; */
  margin-top: 1rem;
  padding: 6rem 1.5rem;
  /* background: #fff; */
  /* border: 1px solid #d0d8e7; */
  border-radius: 0.5rem;
  text-align: center;
  animation: fadeIn 0.3s ease;
}

.empty-icon {
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 auto;
  border: 2px solid #8cabdf;
  border-radius: 50%;
  color: #8cabdf;
  font-weight: bold;
  line-height: 2.3rem;
}

.empty-text {
  margin-top: 0.8rem;
  color: #777;
}

/* .guideCard p{
  color: red;
} */
/* 弹窗基础样式 */
.modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 2rem;
  border-radius: 0.8rem;
  box-shadow: 0 0.4rem 1.6rem rgba(0, 0, 0, 0.1);
  z-index: 1001;
  transition: all 0.3s ease;
}

.modal.show {
  display: block;
  transform: translate(-50%, -50%) scale(1);
}

.modal-title {
  font-size: 1.25rem;
  color: #3b3b3b;
  /* 标题深灰 */
  margin-bottom: 1.5rem;
  text-align: center;
}

.warning-text {
  color: #777;
  font-size: 0.9rem;
  margin: 1.6rem 0;
}

.key-display {
  /* height: 4rem;
  line-height: 4rem;
  text-align: center;
  font-size: 0.9rem;
  color: #777;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 0.4rem;
  margin: 1.6rem 0; */
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 20px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s ease;
}

.btn-group {
  display: flex;
  gap: 1.6rem;
  margin-top: 2rem;
}

.copy-btn,
.close-btn {
  padding: 0.5rem 1rem;
  background: #8cabdf;
  color: #fff;
  border: none;
  border-radius: 0.4rem;
  cursor: pointer;
  font-size: 0.9rem;
  transition: opacity 0.2s;
}

.close-btn {
  background: #777;
}

.btn-group button:hover {
  opacity: 0.8;
}

/* -------------明亮模式-------------- */
.sidebar-light-primary .active-item {
  background-color: #f1f5f9;
  color: #1170ff !important;
  border-radius: 0.25rem;
}

.sidebar-light-primary .nav-pills .active-item > .nav-link {
  color: #1170ff !important;
}

.sidebar-light-primary .navBottom-item {
  border-color: #f1f5f9;
}

/* .light-content{ */
/* width: 100%;
  background-color: #fff;
  min-height: 70vh;
  border-radius: 1rem; */
/* margin-top: 1rem; */
/* } */
.light-content .guideCard {
  background-color: #fff !important;
  color: #777;
}

.light-content .add-btn {
  background-color: #7e9fd8;
}

/* ---------------暗黑模式-------------- */
.sidebar-dark-primary .active-item {
  background-color: #303c47;
  color: #242b36 !important;
  border-radius: 0.25rem;
}

.add-btn {
  width: fit-content;
  padding: 0.5rem 0.7rem;
  border-radius: 0.25rem;
  color: #fff;
  /* margin-left: 1rem; */
  margin-top: 1rem;
  cursor: pointer;
}

.sidebar-dark-primary .nav-pills .active-item > .nav-link {
  color: #8ab4f8 !important;
}

.dark-content .add-btn {
  background-color: #3c5c8f;
}
.dark-content .delete-btn {
  background-color: #d84f4f;
}

.dark-content .guideCard {
  background-color: #303c47 !important;
  color: #dfe0e2;
}

.dark-content .modalPop {
  background-color: #202124 !important;
}

.dark-content #modalTitle {
  color: #fff;
}

.dark-content #keyTable {
  background-color: #46484b;
}
.dark-content #keyTable td {
  color: #dfe0e2;
}

.dark-content #keyTable th {
  background-color: #2e3336;
  color: #fff;
}

.dark-content #confirmBtn {
  background-color: #3c5c8f;
}

.dark-content .empty-state {
  /* background-color: #303c47; */
  /* border-color: #1e2124; */
  color: #dfe0e2;
}

.dark-content #keyTable tr:nth-child(even) {
  background-color: #515558;
  color: #dfe0e2;
}

.dark-content #keyTable .edit-btn {
  background-color: #3c5c8f;
}

.dark-content #keyTable tr:hover {
  background-color: #5e6366;
  /*  hover 时浅蓝灰背景 */
}

.dark-content .empty-text {
  color: #dfe0e2;
}

.dark-content .modal-title {
  color: #dfe0e2;
}

.dark-content .copy-btn {
  background-color: #3c5c8f;
}
