/* ============================================
   世界书样式
   ============================================ */

.worldbook-entries-editor {
  margin-top: 16px;
}

.entries-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}
.entries-header h4 {
  font-size: 14px;
  font-weight: 600;
}

.entries-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.entry-card {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 12px;
  transition: border-color var(--transition-fast);
}
.entry-card:hover {
  border-color: var(--primary-light);
}

.entry-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.entry-card-header input[type="text"] {
  flex: 1;
  border: 1px solid var(--border-light);
  padding: 4px 8px;
  border-radius: var(--border-radius-sm);
  font-size: 13px;
  font-weight: 500;
}
.entry-card-header input[type="text"]:focus {
  border-color: var(--primary);
}

.entry-card-body textarea {
  width: 100%;
  min-height: 60px;
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-sm);
  padding: 8px 10px;
  font-size: 13px;
  line-height: 1.5;
  resize: vertical;
}
.entry-card-body textarea:focus {
  border-color: var(--primary);
}

.entry-keywords {
  margin-top: 6px;
}
.entry-keywords input {
  width: 100%;
  border: 1px solid var(--border-light);
  padding: 4px 8px;
  border-radius: var(--border-radius-sm);
  font-size: 12px;
  color: var(--text-secondary);
}
.entry-keywords input::placeholder {
  color: var(--text-muted);
}

.entry-delete-btn {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
}
.entry-delete-btn:hover {
  background: var(--danger-bg);
  color: var(--danger);
}
