/* Blog Styles - Beautiful modern blog UI */

.blog-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

/* ===== 用户状态栏 ===== */
.user-status-bar {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 12px 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.user-status-bar .user-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 16px;
  color: white;
  flex-shrink: 0;
}

.user-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-details {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-weight: 600;
  font-size: 15px;
}

.user-email {
  font-size: 12px;
  opacity: 0.8;
}

.user-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.login-prompt {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  opacity: 0.9;
}

/* ===== Auth 模态框 ===== */
.auth-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.auth-modal.show {
  display: flex;
}

.auth-modal-content {
  background: white;
  border-radius: 16px;
  width: 90%;
  max-width: 420px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from { transform: translateY(-30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.auth-modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid #e1e8ed;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.auth-modal-header h3 {
  margin: 0;
  font-size: 18px;
  color: #2c3e50;
}

.auth-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #6c757d;
  padding: 4px;
  line-height: 1;
}

.auth-modal-body {
  padding: 24px;
}

.auth-form .form-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.auth-form .form-actions .btn {
  flex: 1;
}

/* ===== 博客头部 ===== */
.blog-header {
  text-align: center;
  margin-bottom: 30px;
  color: white;
}

.blog-header h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.blog-header .subtitle {
  font-size: 14px;
  opacity: 0.9;
  font-weight: 300;
}

/* ===== 导航标签 ===== */
.blog-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.blog-tab {
  padding: 10px 20px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  backdrop-filter: blur(10px);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.blog-tab:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.blog-tab.active {
  background: white;
  color: #667eea;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.blog-tab .icon {
  width: 16px;
  height: 16px;
}

/* ===== 筛选栏 ===== */
.blog-filter {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.blog-filter input,
.blog-filter select {
  padding: 10px 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 25px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  transition: all 0.2s ease;
  color: #333;
}

.blog-filter input:focus,
.blog-filter select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.blog-filter input {
  min-width: 200px;
}

/* ===== 标签云 ===== */
.tag-cloud {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 24px;
}

.tag-cloud .article-tag {
  cursor: pointer;
  padding: 5px 14px;
  border-radius: 18px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  transition: all 0.2s ease;
}

.tag-cloud .article-tag:hover {
  background: white;
  color: #667eea;
  transform: translateY(-2px);
}

/* ===== 文章卡片 ===== */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.article-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.article-cover {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: linear-gradient(135deg, #667eea, #764ba2);
}

.article-body {
  padding: 24px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 13px;
  color: #6c757d;
  flex-wrap: wrap;
}

.article-category {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
}

.article-author {
  font-weight: 500;
}

.article-date {
  opacity: 0.8;
}

.article-title {
  font-size: 22px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 12px;
  line-height: 1.3;
}

.article-summary {
  font-size: 14px;
  color: #6c757d;
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.article-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.article-tag {
  padding: 4px 10px;
  border-radius: 15px;
  font-size: 11px;
  background: #f0f4ff;
  color: #667eea;
  font-weight: 500;
  transition: all 0.2s ease;
}

.article-tag:hover {
  background: #667eea;
  color: white;
}

.article-stats {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: #6c757d;
}

.article-stats span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ===== 文章阅读 ===== */
.article-read {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.article-read-header {
  padding: 32px 32px 0;
}

.article-read-header .article-meta {
  margin-bottom: 16px;
}

.article-read-title {
  font-size: 32px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 16px;
  line-height: 1.3;
}

.article-read-cover {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
}

.article-read-content {
  padding: 24px 32px 32px;
  font-size: 16px;
  line-height: 1.8;
  color: #333;
}

.article-read-content h1,
.article-read-content h2,
.article-read-content h3 {
  margin: 24px 0 12px;
  color: #2c3e50;
}

.article-read-content h1 { font-size: 28px; }
.article-read-content h2 { font-size: 24px; }
.article-read-content h3 { font-size: 20px; }

.article-read-content p { margin-bottom: 16px; }

.article-read-content pre {
  background: #1e1e2e;
  color: #cdd6f4;
  padding: 20px;
  border-radius: 12px;
  overflow-x: auto;
  margin: 16px 0;
  font-size: 14px;
  line-height: 1.6;
}

.article-read-content code {
  background: #f0f4ff;
  color: #667eea;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 14px;
}

.article-read-content pre code {
  background: none;
  color: inherit;
  padding: 0;
}

.article-read-content blockquote {
  border-left: 4px solid #667eea;
  padding: 12px 20px;
  margin: 16px 0;
  background: #f8f9ff;
  border-radius: 0 8px 8px 0;
  color: #555;
  font-style: italic;
}

.article-read-content img {
  max-width: 100%;
  border-radius: 8px;
  margin: 16px 0;
}

.article-read-content ul,
.article-read-content ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.article-read-content a {
  color: #667eea;
  text-decoration: none;
  border-bottom: 1px solid #667eea;
}

.article-read-content a:hover {
  color: #764ba2;
  border-color: #764ba2;
}

.article-read-content hr {
  border: none;
  height: 1px;
  background: #e1e8ed;
  margin: 24px 0;
}

.article-read-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}

.article-read-content th,
.article-read-content td {
  border: 1px solid #e1e8ed;
  padding: 12px 16px;
  text-align: left;
}

.article-read-content th {
  background: #f8f9ff;
  font-weight: 600;
}

.article-read-footer {
  padding: 0 32px 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ===== 返回按钮 ===== */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.back-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* ===== 评论 ===== */
.comments-section {
  padding: 24px 32px 32px;
  border-top: 1px solid #e1e8ed;
}

.comments-title {
  font-size: 20px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 20px;
}

.comment-login-hint {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: #f8f9ff;
  border-radius: 12px;
  color: #667eea;
  font-size: 14px;
  margin-bottom: 20px;
}

.comment-form textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e1e8ed;
  border-radius: 12px;
  font-size: 14px;
  resize: vertical;
  min-height: 80px;
  transition: all 0.2s ease;
  font-family: inherit;
}

.comment-form textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.comment-form .btn {
  margin-top: 12px;
}

.comment-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.comment-item {
  padding: 16px;
  background: #f8f9ff;
  border-radius: 12px;
  border: 1px solid #e1e8ed;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.comment-author {
  font-weight: 600;
  color: #667eea;
  font-size: 14px;
}

.comment-date {
  font-size: 12px;
  color: #6c757d;
}

.comment-content {
  font-size: 14px;
  line-height: 1.6;
  color: #333;
}

.comment-replies {
  margin-left: 24px;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comment-reply-btn {
  background: none;
  border: none;
  color: #667eea;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  margin-top: 8px;
  padding: 4px 8px;
  border-radius: 4px;
}

.comment-reply-btn:hover {
  background: #f0f4ff;
}

/* ===== 分页 ===== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
}

.page-btn {
  padding: 8px 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
}

.page-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.page-btn.active {
  background: white;
  color: #667eea;
  border-color: white;
}

.page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ===== 空状态 ===== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: white;
}

.empty-state .icon {
  font-size: 64px;
  margin-bottom: 16px;
}

.empty-state h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 14px;
  opacity: 0.8;
}

/* ===== 加载状态 ===== */
.blog-loading {
  text-align: center;
  padding: 40px;
  color: white;
}

.blog-loading .spinner {
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid white;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto 16px;
}

/* ===== 编辑器模态框 ===== */
.editor-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.editor-modal.show {
  display: flex;
}

.editor-modal-content {
  background: white;
  border-radius: 16px;
  width: 95%;
  max-width: 1100px;
  height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25);
  animation: modalSlideIn 0.3s ease;
}

.editor-modal-header {
  padding: 16px 24px;
  border-bottom: 1px solid #e1e8ed;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.editor-modal-header h3 {
  margin: 0;
  font-size: 18px;
  color: #2c3e50;
}

.editor-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #6c757d;
  padding: 4px;
  line-height: 1;
}

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

/* 编辑器元信息 */
.editor-meta {
  margin-bottom: 16px;
}

.editor-meta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.editor-meta-row .form-group {
  flex: 1;
  min-width: 150px;
}

/* 标签输入 */
.tag-input-container {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 8px;
  border: 2px solid #e1e8ed;
  border-radius: 8px;
  min-height: 42px;
  cursor: text;
  background: white;
  transition: all 0.2s ease;
}

.tag-input-container:focus-within {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 500;
}

.tag-chip .remove-tag {
  cursor: pointer;
  opacity: 0.8;
  font-size: 14px;
  line-height: 1;
}

.tag-chip .remove-tag:hover {
  opacity: 1;
}

.tag-input {
  border: none;
  outline: none;
  font-size: 14px;
  flex: 1;
  min-width: 100px;
  padding: 4px;
}

/* 封面上传 */
.cover-upload {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cover-preview {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid #e1e8ed;
}

/* 编辑工具栏 */
.editor-toolbar {
  display: flex;
  gap: 4px;
  padding: 8px 12px;
  background: #f8f9ff;
  border-radius: 8px 8px 0 0;
  border: 1px solid #e1e8ed;
  border-bottom: none;
  flex-wrap: wrap;
}

.toolbar-btn {
  padding: 6px 10px;
  border: none;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  color: #666;
  transition: all 0.2s ease;
  font-weight: 600;
}

.toolbar-btn:hover {
  background: #e1e8ed;
  color: #333;
}

/* 编辑器分栏 */
.editor-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid #e1e8ed;
  border-radius: 0 0 8px 8px;
  overflow: hidden;
  height: 45vh;
  min-height: 300px;
}

.editor-pane, .preview-pane {
  display: flex;
  flex-direction: column;
  background: white;
  overflow: hidden;
}

.editor-pane {
  border-right: 1px solid #e1e8ed;
}

.pane-header {
  padding: 8px 14px;
  font-weight: 600;
  font-size: 12px;
  color: #667eea;
  background: #f8f9ff;
  border-bottom: 1px solid #e1e8ed;
  flex-shrink: 0;
}

.editor-pane textarea {
  flex: 1;
  border: none;
  padding: 16px;
  font-size: 14px;
  line-height: 1.7;
  resize: none;
  outline: none;
  font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  background: white;
}

.word-count {
  padding: 6px 14px;
  font-size: 11px;
  color: #6c757d;
  text-align: right;
  border-top: 1px solid #e1e8ed;
  flex-shrink: 0;
}

.preview-content {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.8;
}

.preview-placeholder {
  color: #6c757d;
  text-align: center;
  padding: 40px;
}

.preview-content pre {
  background: #1e1e2e;
  color: #cdd6f4;
  padding: 14px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 12px 0;
  font-size: 13px;
  line-height: 1.5;
}

.preview-content code {
  background: #f0f4ff;
  color: #667eea;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
}

.preview-content pre code {
  background: none;
  color: inherit;
  padding: 0;
}

.preview-content h1 { font-size: 22px; margin: 16px 0 8px; }
.preview-content h2 { font-size: 18px; margin: 14px 0 8px; }
.preview-content h3 { font-size: 16px; margin: 12px 0 8px; }

.preview-content blockquote {
  border-left: 3px solid #667eea;
  padding: 8px 14px;
  margin: 12px 0;
  background: #f8f9ff;
  border-radius: 0 6px 6px 0;
  color: #666;
}

.preview-content ul, .preview-content ol { padding-left: 20px; }

.preview-content img {
  max-width: 100%;
  border-radius: 6px;
}

/* 编辑器操作按钮 */
.editor-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e1e8ed;
  flex-wrap: wrap;
}

/* ===== 状态徽章 ===== */
.status-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
}

.status-draft { background: #fff3cd; color: #856404; }
.status-published { background: #d4edda; color: #155724; }
.status-private { background: #f8d7da; color: #721c24; }

/* ===== 我的文章列表 ===== */
.my-posts-section {
  margin-top: 24px;
}

.my-posts-title {
  color: white;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  text-align: center;
}

.my-post-item {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 14px 20px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  transition: all 0.2s ease;
}

.my-post-item:hover {
  background: rgba(255, 255, 255, 0.25);
}

.my-post-info {
  flex: 1;
}

.my-post-title-text {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
}

.my-post-date {
  font-size: 12px;
  opacity: 0.8;
}

.my-post-actions {
  display: flex;
  gap: 8px;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .blog-container {
    padding: 10px;
  }

  .article-read-title {
    font-size: 24px;
  }

  .article-read-content {
    padding: 16px;
    font-size: 15px;
  }

  .article-read-header {
    padding: 24px 24px 0;
  }

  .comments-section {
    padding: 16px;
  }

  .article-body {
    padding: 16px;
  }

  .article-title {
    font-size: 18px;
  }

  .editor-split {
    grid-template-columns: 1fr;
    height: 60vh;
  }

  .editor-pane {
    border-right: none;
    border-bottom: 1px solid #e1e8ed;
  }

  .editor-modal-content {
    width: 100%;
    height: 100%;
    border-radius: 0;
  }

  .login-prompt {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }

  .user-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .editor-meta-row {
    flex-direction: column;
  }
}

/* ===== 阅读进度条 ===== */
.read-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  width: 0%;
  z-index: 10000;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}

/* ===== 阅读时间 & 浏览数 ===== */
.read-time,
.view-count {
  font-size: 12px;
  color: #6c757d;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ===== 文章操作栏 ===== */
.article-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 32px 16px;
  border-top: 1px solid #f0f0f0;
}

.like-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border: 2px solid #e1e8ed;
  border-radius: 25px;
  background: white;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: #555;
  transition: all 0.2s ease;
}

.like-btn:hover {
  border-color: #e74c3c;
  color: #e74c3c;
  background: #fff5f5;
  transform: scale(1.05);
}

.like-btn.liked {
  border-color: #e74c3c;
  color: #e74c3c;
  background: #fff5f5;
}

.edit-post-btn {
  padding: 8px 16px;
  border: 2px solid #667eea;
  border-radius: 25px;
  background: white;
  color: #667eea;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.edit-post-btn:hover {
  background: #667eea;
  color: white;
}

/* ===== 评论删除按钮 ===== */
.comment-delete-btn {
  background: none;
  border: none;
  color: #dc3545;
  cursor: pointer;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: auto;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.comment-delete-btn:hover {
  opacity: 1;
  background: #fff0f0;
}

/* ===== 搜索框 ===== */
#filterKeyword {
  min-width: 220px;
}
