/* 笔记本 */
#page-notebook,
#page-notebook-detail {
  background: #fff;
}

.yd-notebook-content {
  background: #F2F2F7;
  padding: 12px 16px 90px;
  box-sizing: border-box;
}

.yd-notebook-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.yd-note-card {
  background: #fff;
  border-radius: 16px;
  padding: 14px 14px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
  cursor: pointer;
}

.yd-note-card:active {
  opacity: 0.88;
}

.yd-note-card__title {
  font-size: 15px;
  font-weight: 700;
  color: #111;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.yd-note-card__preview {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.yd-note-card__meta {
  margin-top: 10px;
  font-size: 12px;
  color: #9ca3af;
}

.yd-notebook-empty {
  text-align: center;
  padding: 48px 20px;
  color: #8E8E93;
}

.yd-notebook-empty__icon {
  font-size: 44px;
  opacity: 0.55;
  margin-bottom: 12px;
}

/* 底部新增按钮 */
.yd-notebook-fab {
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: none;
  background: #007AFF;
  color: #fff;
  font-size: 32px;
  font-weight: 300;
  line-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 34px rgba(0,122,255,0.36);
  cursor: pointer;
  z-index: 200;
}

.yd-notebook-fab:active {
  transform: translateY(1px);
  opacity: 0.92;
}

/* 详情页 */
.yd-notebook-detail {
  background: #fff;
  padding: 14px 16px 18px;
  box-sizing: border-box;
}

.yd-notebook-title {
  width: 100%;
  border: none;
  outline: none;
  font-size: 18px;
  font-weight: 700;
  color: #111;
  padding: 10px 10px;
  border-radius: 12px;
  background: rgba(0,0,0,0.04);
  margin-bottom: 10px;
}

.yd-notebook-editor {
  width: 100%;
  min-height: 60vh;
  border: none;
  outline: none;
  font-size: 15px;
  line-height: 1.6;
  color: #111;
  padding: 12px 10px;
  border-radius: 12px;
  background: rgba(0,0,0,0.04);
  resize: none;
}

