/* 完全适配WeMD界面风格的笔记样式 */
.wemd-notebook {
  width: 100% !important;
  padding: 16px !important;
  margin-top: 16px !important;
  border-top: 1px solid #f0f0f0 !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

.wemd-notebook h4 {
  font-size: 15px !important;
  color: rgba(0, 0, 0, 0.88) !important;
  margin: 0 0 12px 0 !important;
  font-weight: 500 !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

/* 新增分类输入 */
.notebook-cate-add {
  display: flex !important;
  gap: 8px !important;
  margin-bottom: 12px !important;
}

.notebook-cate-add input {
  flex: 1 !important;
  padding: 8px 12px !important;
  border: 1px solid #d9d9d9 !important;
  border-radius: 6px !important;
  font-size: 14px !important;
  outline: none !important;
  transition: border 0.2s !important;
}

.notebook-cate-add input:focus {
  border-color: #4096ff !important;
  box-shadow: 0 0 0 2px rgba(64, 150, 255, 0.2) !important;
}

.notebook-cate-add button {
  padding: 8px 16px !important;
  font-size: 14px !important;
  background-color: #4096ff !important;
  color: white !important;
  border: none !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  transition: background 0.2s !important;
}

.notebook-cate-add button:hover {
  background-color: #1890ff !important;
}

/* 分类列表 */
.notebook-cate-list {
  margin-bottom: 12px !important;
}

.notebook-cate-item {
  padding: 8px 12px !important;
  margin-bottom: 4px !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  font-size: 14px !important;
  color: rgba(0, 0, 0, 0.75) !important;
  transition: all 0.2s !important;
}

.notebook-cate-item.active {
  background-color: #e6f7ff !important;
  color: #1890ff !important;
  font-weight: 500 !important;
}

.notebook-cate-item:hover:not(.active) {
  background-color: #f5f5f5 !important;
}

.notebook-cate-delete {
  float: right !important;
  color: rgba(0, 0, 0, 0.45) !important;
  font-size: 12px !important;
  width: 16px !important;
  height: 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.notebook-cate-item:hover .notebook-cate-delete {
  color: #ff4d4f !important;
}

/* 笔记输入区 */
.notebook-note-input textarea {
  width: 100% !important;
  height: 80px !important;
  padding: 8px 12px !important;
  border: 1px solid #d9d9d9 !important;
  border-radius: 6px !important;
  font-size: 14px !important;
  resize: vertical !important;
  margin-bottom: 8px !important;
  outline: none !important;
  transition: border 0.2s !important;
  font-family: inherit !important;
  line-height: 1.5 !important;
}

.notebook-note-input textarea:focus {
  border-color: #4096ff !important;
  box-shadow: 0 0 0 2px rgba(64, 150, 255, 0.2) !important;
}

.notebook-note-btn {
  width: 100% !important;
  padding: 8px !important;
  background-color: #52c41a !important;
  color: white !important;
  border: none !important;
  border-radius: 6px !important;
  font-size: 14px !important;
  cursor: pointer !important;
  transition: background 0.2s !important;
}

.notebook-note-btn:hover {
  background-color: #52c41a !important;
  opacity: 0.9 !important;
}

/* 笔记列表 */
.notebook-note-list {
  margin-top: 12px !important;
  max-height: 200px !important;
  overflow-y: auto !important;
}

.notebook-note-item {
  padding: 8px 12px !important;
  margin-bottom: 6px !important;
  background-color: #fafafa !important;
  border-left: 3px solid #4096ff !important;
  border-radius: 6px !important;
  font-size: 13px !important;
  color: rgba(0, 0, 0, 0.75) !important;
  position: relative !important;
  line-height: 1.5 !important;
}

.notebook-note-delete {
  position: absolute !important;
  top: 6px !important;
  right: 6px !important;
  background: none !important;
  border: none !important;
  color: rgba(0, 0, 0, 0.45) !important;
  font-size: 12px !important;
  cursor: pointer !important;
  width: 16px !important;
  height: 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.notebook-note-delete:hover {
  color: #ff4d4f !important;
}

.notebook-note-time {
  font-size: 12px !important;
  color: rgba(0, 0, 0, 0.45) !important;
  margin-top: 4px !important;
  display: block !important;
}