.note {
  padding: 0.5vw;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #1f1f1f;
  border-radius: 0.5vw;
  margin-bottom: 0.3vw;
}
.note .notes {
  display: flex;
  height: 50%;
  flex-direction: column;
  flex: 1;
}
.note .notes .search_area {
  position: relative;
}
.note .notes .search_area .search {
  width: 100%;
  display: flex;
  align-items: center;
  background: #383838;
  height: 1.6vw;
  min-height: 32px;
  border-radius: 5px;
}
.note .notes .search_area .search input {
  flex: 1;
  height: 100%;
  background: transparent;
  outline: none;
  border: none;
  color: #c4c4c4;
  padding: 0 0.5vw;
}
.note .notes .search_area .search span {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 2.3vw;
  height: 100%;
  cursor: pointer;
}
.note .notes .search_area .search span em {
  color: #c4c4c4;
}
.note .notes .search_area .search span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translate(-100%, -50%);
  width: 0.2vw;
  height: 70%;
  background: #1f1f1f;
  border-radius: 1vw;
}
.note .notes .search_area .search span:hover em {
  color: #2a82e4;
}
.note .notes .search_area .search_key {
  width: 100%;
  position: absolute;
  display: flex;
  align-items: center;
  left: 0;
  top: 0;
  height: 1.6vw;
  min-height: 32px;
  background: #808080;
  border-radius: 5px;
  padding: 0 0.5vw;
  transition: 0.3s;
}
.note .notes .search_area .search_key p {
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.8rem;
}
.note .notes .search_area:hover .search_key {
  visibility: hidden;
  opacity: 0;
}
.note .notes .note_list {
  margin-top: 0.5vw;
  flex: 1;
  grid-auto-rows: auto;
  /* 让行高自动 */
  overflow-y: auto;
  padding: 0 4px 5px 0;
}
.note .notes .note_list .note_item {
  width: 100%;
  height: 2.4vw;
  margin-bottom: 0.3vw;
  border: 1px solid #3d3d3d;
  background: #262626;
  border-radius: 0.3vw;
  display: grid;
  align-items: center;
  color: #ffffff;
  padding: 0 1vw;
  transition: 0.3s;
}
.note .notes .note_list .note_item .note_header {
  display: flex;
  justify-content: space-between;
  margin: 0.3vw 0.1vw;
  align-items: center;
}
.note .notes .note_list .note_item .note_header .name {
  font-size: 1.1rem;
  font-weight: bold;
}
.note .notes .note_list .note_item .note_header .option {
  display: none;
}
.note .notes .note_list .note_item .note_header .option em {
  font-size: 1.1rem;
  cursor: pointer;
  margin-left: 0.1vw;
}
.note .notes .note_list .note_item:hover {
  background: #383838;
}
.note .notes .note_list .note_item:hover .option {
  display: block;
}
.note .notes .note_list .note_item.selected {
  background: #4a4a4a;
  /* 高亮颜色 */
  border-color: #ffffff;
  /* 高亮边框颜色 */
  height: auto;
  /* 让高度自动适应内容，包括文本编辑框 */
}
.note .notes .note_list .note_item .note-content-editor {
  width: 100%;
  height: auto;
  padding: 0.5vw;
  margin-top: 0.2vw;
  margin-bottom: 0.5vw;
  background: #3d3d3d;
  color: #ffffff;
  border-radius: 0.3vw;
  resize: none;
  /* 禁止调整文本框大小 */
  box-sizing: border-box;
  /* 确保内边距和边框包含在宽度和高度内 */
  overflow: hidden;
  /* 隐藏滚动条 */
}
.note .notes .note_list::-webkit-scrollbar {
  width: 8px;
  background: transparent;
}
.note .notes .note_list::-webkit-scrollbar-thumb:vertical {
  border-radius: 20px;
  background: #808080;
}
.note .notes .empty_note {
  margin-top: 0.5vw;
  flex: 1;
}
.note .notes button {
  margin-top: 5px;
  width: 100%;
  height: 2.1vw;
  border-radius: 0.3vw;
  font-weight: bold;
  font-size: 1.1rem;
  background: #383838;
  transition: 0.3s;
  color: #ffffff;
}
.note .notes button:hover {
  background: #2a82e4;
}
.note .form {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  background: #181818a2;
  display: flex;
  justify-content: center;
  align-items: center;
}
.note .form .form_content {
  width: 100%;
  height: 13.9vw;
  background: #1a1b1c;
  border-radius: 0.5vw;
  box-shadow: 0 0 5px 1px #60606084;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.note .form .form_content p {
  font-size: 1.3rem;
  font-weight: bold;
}
.note .form .form_content .input_area {
  margin: 1vw 0 2.2vw 0;
  display: flex;
  align-items: center;
  position: relative;
}
.note .form .form_content .input_area input {
  width: 18vw;
  height: 1.6vw;
  min-height: 32px;
  color: #ffffff;
  font-weight: bold;
  background: #383838;
  font-size: 1.2rem;
  border-radius: 2vw;
  padding: 0 0.7vw;
}
.note .form .form_content .input_area .show_clear {
  opacity: 1 !important;
  visibility: visible !important;
}
.note .form .form_content .input_area .clear {
  position: absolute;
  right: -0.3vw;
  transform: translateX(100%);
  width: 1.6vw;
  height: 1.6vw;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: 0.3s;
  background: #383838;
  opacity: 0;
  visibility: hidden;
}
.note .form .form_content .input_area .clear em {
  font-size: 0.8rem;
}
.note .form .form_content .input_area .clear:hover {
  background: #ff5733;
}
.note .form .form_content .button_group {
  display: flex;
  align-items: center;
  justify-content: center;
}
.note .form .form_content .button_group .button_item {
  height: 2.2vw;
  min-height: 40px;
  background: #383838;
  transition: 0.2s;
  display: flex;
  justify-content: space-between;
  align-items: center;
  white-space: nowrap;
  cursor: pointer;
}
.note .form .form_content .button_group .button_item .icon {
  width: 1.5vw;
  height: 1.5vw;
  min-height: 23px;
  min-width: 23px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.2s;
  border-radius: 50%;
}
.note .form .form_content .button_group .button_item .icon em {
  font-size: 1rem;
}
.note .form .form_content .button_group .button_item .text {
  font-size: 1rem;
}
.note .form .form_content .button_group .accept {
  border-radius: 2vw 0 0 2vw;
  padding: 0 1vw 0 0.5vw;
}
.note .form .form_content .button_group .accept .icon {
  margin-right: 1.5vw;
  background: #43cf7c;
}
.note .form .form_content .button_group .accept:hover {
  background: #43cf7c;
  color: #ffffff;
}
.note .form .form_content .button_group .accept:hover .icon {
  background: #383838;
}
.note .form .form_content .button_group .refuse {
  border-radius: 0 2vw 2vw 0;
  padding: 0 0.5vw 0 1vw;
}
.note .form .form_content .button_group .refuse .icon {
  margin-left: 1.5vw;
  background: #ff5733;
}
.note .form .form_content .button_group .refuse:hover {
  background: #ff5733;
  color: #ffffff;
}
.note .form .form_content .button_group .refuse:hover .icon {
  background: #383838;
}
