/* ============ 公共详情交互组件：灵感笔记面板 ============
   知识卡片 / 长文阅读 / 人物专栏三类详情页共用，外观跟随主题变量 */

.note-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 14px;
}

.note-panel-header {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 5px;
  color: var(--accent);
}

.note-panel-title {
  margin: 0;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text);
}

.note-panel-sub {
  margin: 0 0 13px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-2);
}

.note-editor-box {
  position: relative;
  margin-bottom: 12px;
}

.note-editor-textarea {
  width: 100%;
  min-height: 108px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  resize: vertical;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.note-editor-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.note-editor-textarea::placeholder {
  color: var(--text-3);
}

.draft-status-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  font-size: 11px;
  color: var(--text-3);
  pointer-events: none;
}

.note-btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.btn-voice {
  appearance: none;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--card);
  color: var(--accent);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.16s ease;
}

.btn-voice:active {
  background: var(--bg);
  transform: scale(0.985);
}

.btn-voice.is-listening {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.btn-save-note {
  appearance: none;
  height: 44px;
  border: none;
  border-radius: 12px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(26, 29, 36, 0.14);
  transition: all 0.16s ease;
}

.btn-save-note:active {
  transform: scale(0.985);
  opacity: 0.92;
}

.btn-export-notes {
  appearance: none;
  width: 100%;
  height: 42px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  background: var(--card);
  color: var(--text-2);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: background 0.16s ease;
}

.btn-export-notes:active {
  background: var(--bg);
}

.saved-notes-section {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px dashed var(--line-strong);
}

.saved-notes-label {
  font-size: 12px;
  font-weight: 650;
  color: var(--text-2);
  margin-bottom: 8px;
}

.saved-note-item {
  padding: 10px 12px;
  border-radius: 11px;
  background: var(--bg);
  border: 1px solid var(--line);
  margin-bottom: 8px;
}

.saved-note-item:last-child {
  margin-bottom: 0;
}

.saved-note-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
  font-size: 11px;
  color: var(--text-3);
}

.saved-note-tag {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

.saved-note-content {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-2);
  white-space: pre-line;
}

.note-item-ops {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 6px;
}

.note-edit {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
}

.note-del {
  font-size: 11px;
  font-weight: 600;
  color: var(--red);
  cursor: pointer;
}

.edit-input {
  width: 100%;
  min-height: 70px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px;
  font-size: 12.5px;
  line-height: 1.6;
  outline: none;
  resize: vertical;
}

.edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 7px;
  font-size: 11.5px;
}

.edit-cancel {
  color: var(--text-3);
  cursor: pointer;
}

.edit-save {
  color: var(--accent);
  font-weight: 700;
  cursor: pointer;
}

/* ============ 专栏：同主理人其他期 ============ */
.other-issues {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 14px;
}

.other-issues-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.other-issue-item {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--bg);
  margin-bottom: 8px;
  cursor: pointer;
  transition: background 0.16s ease;
}

.other-issue-item:last-child {
  margin-bottom: 0;
}

.other-issue-item:active {
  background: var(--accent-soft);
}

.other-issue-label {
  font-size: 11px;
  color: var(--text-3);
  margin-bottom: 3px;
}

.other-issue-title {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-2);
}
