/* 泓盛泽客服工作台 - 博客管理样式 */

/* ---- 博客列表顶部工具条 ---- */
.blog-toolbar {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap;
}
.blog-toolbar .btn-new {
  background: #FF6B35; color: #fff; border: none; padding: 8px 18px; border-radius: 8px;
  font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.blog-toolbar .btn-new:hover { background: #e85a28; }
.blog-toolbar select, .blog-toolbar input {
  border: 1px solid #d5dee8; border-radius: 6px; padding: 7px 10px; font-size: 13px; outline: none;
}
.blog-toolbar input { min-width: 200px; }
.blog-toolbar select:focus, .blog-toolbar input:focus { border-color: #FF6B35; }

/* ---- 批量操作条 ---- */
.blog-batch-bar {
  display: none; align-items: center; gap: 10px; margin-bottom: 10px;
  padding: 8px 14px; background: #f0f4f8; border-radius: 8px;
}
.blog-batch-bar span { font-size: 13px; color: #43596e; }
.blog-batch-bar .btn-batch {
  background: #fff; border: 1px solid #d5dee8; border-radius: 6px; padding: 5px 12px;
  cursor: pointer; font-size: 12px; color: #43596e;
}
.blog-batch-bar .btn-batch:hover { border-color: #FF6B35; color: #FF6B35; }
.blog-batch-bar .btn-batch.danger:hover { border-color: #e04545; color: #e04545; }
.blog-batch-bar .btn-batch.primary { background: #1a73c2; color: #fff; border-color: #1a73c2; }
.blog-batch-bar .btn-batch.primary:hover { background: #155a9e; }

/* ---- 语言标签 ---- */
.lang-badge {
  display: inline-block; padding: 2px 8px; border-radius: 10px;
  font-size: 11px; font-weight: 700; background: #e8eef3; color: #43596e;
}

/* ---- 博客编辑器弹窗 ---- */
.blog-editor-overlay {
  position: fixed; inset: 0; background: rgba(13,43,78,.5); z-index: 200;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.blog-editor-overlay.show { display: flex; }

.blog-editor {
  width: 95%; max-width: 1200px; height: 92vh; background: #fff; border-radius: 12px;
  display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 24px 70px rgba(0,0,0,.3);
}

/* 编辑器头 */
.blog-editor-head {
  background: #0D2B4E; color: #fff; padding: 12px 20px; display: flex;
  justify-content: space-between; align-items: center; flex-shrink: 0;
}
.blog-editor-head h2 { font-size: 16px; font-weight: 600; }
.blog-editor-head .head-actions { display: flex; gap: 8px; align-items: center; }
.blog-editor-head .btn-save {
  background: #14855a; color: #fff; border: none; padding: 7px 18px; border-radius: 6px;
  font-size: 13px; font-weight: 600; cursor: pointer;
}
.blog-editor-head .btn-save:hover { background: #0f6b47; }
.blog-editor-head .btn-publish {
  background: #FF6B35; color: #fff; border: none; padding: 7px 18px; border-radius: 6px;
  font-size: 13px; font-weight: 600; cursor: pointer;
}
.blog-editor-head .btn-publish:hover { background: #e85a28; }
.blog-editor-head .btn-close {
  background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.25);
  border-radius: 6px; padding: 6px 14px; cursor: pointer; font-size: 13px;
}

/* 编辑器内容区 */
.blog-editor-body { flex: 1; display: flex; overflow: hidden; }
.blog-editor-left { flex: 1; padding: 18px 20px; overflow-y: auto; }
.blog-editor-right { width: 320px; border-left: 1px solid #e3eaf2; padding: 18px 16px; overflow-y: auto; background: #fafcfe; }

/* 内部面板切换 */
.blog-panel-tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.blog-panel-tab {
  padding: 6px 14px; border-radius: 6px; cursor: pointer; font-size: 13px; color: #5A6C7D;
  background: #f0f4f8;
}
.blog-panel-tab.active { background: #0D2B4E; color: #fff; }

/* 编辑面板 */
.blog-panel-editor { display: flex; flex-direction: column; gap: 14px; height: 100%; }
.blog-panel-media { display: none; flex-direction: column; gap: 14px; }

/* 标题输入 */
.blog-title-input {
  width: 100%; border: 2px solid #e3eaf2; border-radius: 8px; padding: 12px 14px;
  font-size: 18px; font-weight: 600; outline: none; transition: border .2s;
}
.blog-title-input:focus { border-color: #FF6B35; }

/* 工具栏 */
.blog-toolbar-btns {
  display: flex; gap: 4px; padding: 6px 8px; background: #f4f7fb; border-radius: 6px; flex-wrap: wrap;
}
.blog-toolbar-btns button {
  background: #fff; border: 1px solid #d5dee8; border-radius: 4px; padding: 4px 10px;
  cursor: pointer; font-size: 13px; color: #43596e; min-width: 32px;
}
.blog-toolbar-btns button:hover { border-color: #FF6B35; color: #FF6B35; }

/* 内容 textarea */
.blog-content-area {
  width: 100%; flex: 1; min-height: 300px; border: 1px solid #d5dee8; border-radius: 8px;
  padding: 14px; font-size: 14px; line-height: 1.7; font-family: inherit; outline: none;
  resize: vertical;
}
.blog-content-area:focus { border-color: #FF6B35; }

/* 右侧设置 */
.blog-settings label {
  display: block; font-size: 12px; color: #5A6C7D; margin-bottom: 5px; font-weight: 600;
}
.blog-settings input, .blog-settings textarea, .blog-settings select {
  width: 100%; border: 1px solid #d5dee8; border-radius: 6px; padding: 8px 10px;
  font-size: 13px; outline: none; margin-bottom: 14px; font-family: inherit;
}
.blog-settings input:focus, .blog-settings textarea:focus { border-color: #FF6B35; }
.blog-settings textarea { min-height: 60px; resize: vertical; }

/* 语言 Tab */
.blog-lang-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 14px; }
.blog-lang-tab {
  display: inline-block; padding: 5px 12px; border-radius: 6px; cursor: pointer;
  font-size: 12px; font-weight: 700; background: #e8eef3; color: #5A6C7D;
  border: 1px solid transparent; transition: all .15s;
}
.blog-lang-tab:hover { background: #d8e3ec; }
.blog-lang-tab.active { background: #0D2B4E; color: #fff; }

/* Permalink 预览 */
.blog-permalink {
  background: #f0f4f8; border-radius: 6px; padding: 7px 10px; font-size: 12px;
  color: #5A6C7D; word-break: break-all; margin-bottom: 14px;
}

/* 封面图预览 */
.blog-cover-preview {
  width: 100%; height: 80px; background: #f0f4f8; border-radius: 6px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  margin-bottom: 14px;
}

/* OG 预览卡片 */
.og-preview { margin-top: 10px; }
.og-preview h4 { font-size: 12px; color: #5A6C7D; margin-bottom: 8px; }
.og-card {
  border: 1px solid #e3eaf2; border-radius: 8px; overflow: hidden; background: #fff;
  box-shadow: 0 1px 3px rgba(13,43,78,.08);
}
.og-card img, .og-card .og-img-placeholder { width: 100%; height: 160px; object-fit: cover; background: #e8eef3; display: flex; align-items: center; justify-content: center; color: #9db0c3; font-size: 12px; }
.og-text { padding: 10px 12px; }
.og-url { font-size: 11px; color: #7a8ea3; margin-bottom: 4px; }
.og-title { font-size: 14px; font-weight: 600; color: #1a2b3c; margin-bottom: 4px; line-height: 1.3; }
.og-desc { font-size: 12px; color: #5A6C7D; line-height: 1.5; }

/* ---- 媒体库 ---- */
.blog-upload-area {
  display: flex; gap: 10px; align-items: center; padding: 14px; background: #f4f7fb;
  border-radius: 8px; border: 2px dashed #cfdce8; margin-bottom: 14px;
}
.blog-upload-area input[type=file] { flex: 1; font-size: 13px; }
.blog-upload-btn {
  background: #0D2B4E; color: #fff; border: none; padding: 8px 16px; border-radius: 6px;
  font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.blog-upload-btn:hover { background: #16427A; }

.media-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px;
}
.media-item {
  background: #fff; border: 1px solid #e3eaf2; border-radius: 8px; overflow: hidden; cursor: pointer;
  transition: box-shadow .2s;
}
.media-item:hover { box-shadow: 0 2px 12px rgba(13,43,78,.12); }
.media-thumb { width: 100%; height: 100px; overflow: hidden; background: #f0f4f8; display: flex; align-items: center; justify-content: center; }
.media-thumb img { width: 100%; height: 100%; object-fit: cover; }
.media-file-icon { font-size: 32px; }
.media-name { font-size: 11px; color: #5A6C7D; padding: 6px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.media-actions { padding: 4px 8px 8px; font-size: 11px; display: flex; justify-content: space-between; }

/* ---- 响应式 ---- */
@media (max-width: 900px) {
  .blog-editor-right { display: none; }
  .blog-editor { width: 100%; height: 100vh; border-radius: 0; }
}

/* 评论管理分页条 */
.cmt-pager{margin:10px 0;display:flex;gap:8px;align-items:center;flex-wrap:wrap}
