/* ============================================
   大纲样式
   ============================================ */

.outline-chapters-editor {
  margin-top: 16px;
}

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

.outline-chapters-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 400px;
  overflow-y: auto;
}

.outline-chapter-card {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-sm);
  align-items: flex-start;
  transition: border-color var(--transition-fast);
}
.outline-chapter-card:hover {
  border-color: var(--primary-light);
}

.outline-chapter-num {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-bg);
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
  margin-top: 2px;
}

.outline-chapter-fields {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.outline-chapter-fields input {
  border: 1px solid var(--border-light);
  padding: 4px 8px;
  border-radius: var(--border-radius-sm);
  font-size: 13px;
  font-weight: 500;
}
.outline-chapter-fields textarea {
  border: 1px solid var(--border-light);
  padding: 6px 8px;
  border-radius: var(--border-radius-sm);
  font-size: 12px;
  line-height: 1.5;
  min-height: 50px;
  resize: vertical;
}
.outline-chapter-fields input:focus,
.outline-chapter-fields textarea:focus {
  border-color: var(--primary);
}

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