/* ====== 发布管理 Drawer ====== */

.publish-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1050;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.publish-drawer-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.publish-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(88vw, 1100px);
  background: var(--bg-elevated);
  z-index: 1060;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease-out;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
}

/* ====== Modal z-index override ====== */
.modal-backdrop {
  z-index: 1065;
}
.modal {
  z-index: 1070;
}

.publish-drawer.open {
  transform: translateX(0);
}

.publish-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}

.publish-drawer-header h5 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.publish-drawer-close {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--text-tertiary);
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.publish-drawer-close:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.publish-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}

.publish-drawer-footer {
  display: flex;
  justify-content: flex-end;
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  flex-shrink: 0;
}

/* ====== 基本信息编辑样式 ====== */

.cat-select-row select {
  min-width: 180px;
}

#cat-select-container .cat-select-row:last-child .cat-remove-btn {
  visibility: visible !important;
}

#avatar-preview {
  transition: all 0.3s ease;
}

#signature-input {
  resize: none;
}

#signature-display {
  line-height: 1.4;
}

/* ====== 签名编辑 ====== */

#btn-ai-generate {
  white-space: nowrap;
}

#sig-loading {
  border-radius: 6px;
  background: #f0f7ff;
}

#sig-quota-text strong {
  color: var(--text-primary, #333);
}

#sig-result .text-success i,
#sig-result .text-danger i {
  margin-right: 4px;
}
