/* ==================== 论坛通用样式 ==================== */
.forum-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

.forum-header {
  margin-bottom: 30px;
}

.forum-title {
  font-size: 28px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.forum-title i {
  color: #667eea;
}

.forum-subtitle {
  color: #6b7280;
  font-size: 14px;
}

/* ==================== 分区选择卡片 ==================== */
.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.section-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  padding: 32px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.section-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  transform: scale(0);
  transition: transform 0.6s ease;
}

.section-card:hover::before {
  transform: scale(1);
}

.section-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.section-card.player {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.section-card.qa {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.section-card.official {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.section-icon {
  font-size: 48px;
  color: white;
  margin-bottom: 16px;
}

.section-name {
  font-size: 24px;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
}

.section-desc {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  line-height: 1.6;
}

/* ==================== 工具栏 ==================== */
.forum-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.toolbar-left, .toolbar-right {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.forum-search {
  position: relative;
  flex: 1;
  min-width: 200px;
  max-width: 400px;
}

.forum-search input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s;
}

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

.forum-search i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
}

.forum-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.forum-btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.forum-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.forum-btn-secondary {
  background: #f3f4f6;
  color: #374151;
}

.forum-btn-secondary:hover {
  background: #e5e7eb;
}

.forum-btn-danger {
  background: #ef4444;
  color: white;
}

.forum-btn-danger:hover {
  background: #dc2626;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.forum-btn-success {
  background: #10b981;
  color: white;
}

.forum-btn-success:hover {
  background: #059669;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.forum-btn-warning {
  background: #f59e0b;
  color: white;
}

.forum-btn-warning:hover {
  background: #d97706;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.forum-btn-sm {
  padding: 6px 14px;
  font-size: 13px;
}

/* ==================== 帖子列表 ==================== */
.post-list {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.post-item {
  display: grid;
  grid-template-columns: 48px 1fr auto auto auto;
  gap: 16px;
  padding: 20px;
  border-bottom: 1px solid #f3f4f6;
  cursor: pointer;
  transition: background-color 0.2s;
  align-items: center;
}

.post-item:hover {
  background-color: #f9fafb;
}

.post-item:last-child {
  border-bottom: none;
}

.post-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.post-info {
  min-width: 0;
}

.post-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.post-title {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.4;
  word-break: break-word;
}

.post-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.post-status {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.post-status.solved {
  background: #d1fae5;
  color: #065f46;
}

.post-status.closed {
  background: #fee2e2;
  color: #991b1b;
}

.post-status.pending {
  background: #fef3c7;
  color: #92400e;
}

.post-meta {
  font-size: 13px;
  color: #6b7280;
}

.post-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #6b7280;
  white-space: nowrap;
}

.post-stat i {
  color: #9ca3af;
}

.post-pinned {
  border-left: 4px solid #f59e0b;
}

.empty-state {
  padding: 60px 20px;
  text-align: center;
  color: #9ca3af;
}

.empty-state i {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state p {
  font-size: 16px;
}

/* ==================== 发帖/回帖弹窗 ==================== */
.forum-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s;
}

.forum-modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.forum-modal-content {
  background: white;
  border-radius: 16px;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  animation: modalSlideIn 0.3s ease;
}

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

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

.forum-modal-title {
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
}

.forum-modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: #f3f4f6;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.forum-modal-close:hover {
  background: #e5e7eb;
}

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

.forum-form-group {
  margin-bottom: 20px;
}

.forum-form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}

.forum-form-input,
.forum-form-select {
  width: 100%;
  padding: 10px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s;
}

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

.reward-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.forum-modal-footer {
  padding: 20px 24px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* ==================== 富文本编辑器 ==================== */
.forum-editor {
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.3s;
  position: relative;
}

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

.editor-toolbar {
  background: #f9fafb;
  padding: 10px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.editor-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: white;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  color: #6b7280;
}

.editor-btn:hover {
  background: #e5e7eb;
  color: #374151;
}

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

.editor-content {
  padding: 16px;
  min-height: 200px;
  max-height: 400px;
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.6;
  color: #374151;
}

.editor-content:focus {
  outline: none;
}

.editor-content:empty:before {
  content: attr(data-placeholder);
  color: #9ca3af;
}


/* ==================== 编辑器增强功能样式 (v2.0) ==================== */

/* 下拉菜单容器 */
.editor-dropdown {
  display: inline-block;
  position: relative;
}

/* 下拉菜单按钮 */
.editor-dropdown-btn,
.editor-color-btn {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-direction: column;
}

/* 下拉菜单内容 */
.editor-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 4px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 10002;
  min-width: 120px;
  max-height: 300px;
  overflow-y: auto;
  padding: 4px;
}

/* 下拉菜单项 */
.editor-dropdown-item {
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
  color: #374151;
  font-size: 14px;
  white-space: nowrap;
}

.editor-dropdown-item:hover {
  background: #f3f4f6;
  color: #667eea;
}

/* 颜色选择器样式 */
.editor-color-picker {
  min-width: 220px;
}

.editor-color-indicator {
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
}

/* 工具栏按钮激活状态增强 */
.editor-dropdown-btn.active {
  background: #667eea;
  color: white;
  border-color: #667eea;
}

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

.editor-color-btn.active .editor-color-indicator {
  background: white !important;
}

/* 编辑器内容区域的样式增强 */
.editor-content h1 {
  font-size: 28px;
  font-weight: bold;
  margin: 16px 0 12px 0;
  line-height: 1.3;
  color: #1e293b;
}

.editor-content h2 {
  font-size: 24px;
  font-weight: bold;
  margin: 14px 0 10px 0;
  line-height: 1.3;
  color: #1e293b;
}

.editor-content h3 {
  font-size: 20px;
  font-weight: bold;
  margin: 12px 0 8px 0;
  line-height: 1.4;
  color: #334155;
}

.editor-content h4 {
  font-size: 18px;
  font-weight: bold;
  margin: 10px 0 6px 0;
  line-height: 1.4;
  color: #334155;
}

.editor-content h5 {
  font-size: 16px;
  font-weight: bold;
  margin: 8px 0 4px 0;
  line-height: 1.5;
  color: #475569;
}

.editor-content h6 {
  font-size: 14px;
  font-weight: bold;
  margin: 6px 0 2px 0;
  line-height: 1.5;
  color: #475569;
}

.editor-content blockquote {
  border-left: 4px solid #667eea;
  padding-left: 16px;
  margin: 12px 0;
  color: #64748b;
  font-style: italic;
  background: #f8f9fa;
  padding: 12px 16px;
  border-radius: 4px;
}

.editor-content pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 16px;
  border-radius: 8px;
  overflow-x: auto;
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px;
  line-height: 1.6;
  margin: 12px 0;
}

.editor-content ul, 
.editor-content ol {
  padding-left: 24px;
  margin: 12px 0;
}

.editor-content li {
  margin: 6px 0;
  line-height: 1.6;
}

.editor-content a {
  color: #667eea;
  text-decoration: underline;
}

.editor-content a:hover {
  color: #764ba2;
}

/* 对齐方式 */
.editor-content [style*="text-align: left"] {
  text-align: left;
}

.editor-content [style*="text-align: center"] {
  text-align: center;
}

.editor-content [style*="text-align: right"] {
  text-align: right;
}

.editor-content [style*="text-align: justify"] {
  text-align: justify;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .editor-dropdown-menu {
    max-width: 200px;
  }
  
  .editor-color-picker {
    min-width: 180px;
    max-width: 200px;
  }
  
  .editor-dropdown-item {
    padding: 6px 10px;
    font-size: 13px;
  }
}
/* ==================== 帖子详情页 ==================== */
.post-detail-header {
  background: white;
  padding: 24px;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.post-detail-title {
  font-size: 24px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 12px;
  line-height: 1.4;
}

.post-detail-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 14px;
  color: #6b7280;
}

.post-detail-reward {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  margin-top: 12px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-radius: 8px;
  border-left: 4px solid #f59e0b;
  color: #92400e;
  font-weight: 600;
  font-size: 15px;
}

.post-detail-reward i {
  font-size: 18px;
  color: #f59e0b;
}

.post-detail-toolbar {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.reply-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.reply-item {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  display: grid;
  grid-template-columns: 200px 1fr;
  transition: all 0.3s ease;
}

.reply-item.reply-accepted {
  background: linear-gradient(to right, #f0fdf4 0%, #ffffff 100%);
  border-left: 4px solid #10b981;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15);
}

.reply-item.reply-accepted .reply-author {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.reply-author {
  background: #f9fafb;
  padding: 20px;
  border-right: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.reply-author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.reply-author-name {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  word-break: break-word;
}

.reply-author-rank {
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 12px;
  background: #e0e7ff;
  color: #3730a3;
  white-space: nowrap;
}

.reply-author-info {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
  font-size: 11px;
  color: #6b7280;
}

.reply-author-info-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: #f3f4f6;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.reply-author-info-item:hover {
  background: #e5e7eb;
}

.reply-author-info-item i {
  font-size: 10px;
  color: #9ca3af;
  min-width: 12px;
  text-align: center;
}

.reply-author-info-item span {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 11px;
}

.reply-author-badge {
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 8px;
  background: #fef3c7;
  color: #92400e;
}

.reply-author-badge.accepted {
  background: #d1fae5;
  color: #065f46;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* 桌面端隐藏移动端专用容器,显示PC端布局 */
@media (min-width: 769px) {
  .reply-author-header-mobile {
    display: none !important;
  }
  
  .reply-author-name-group-mobile {
    display: none !important;
  }
}

/* 移动端隐藏PC端直接子元素,显示移动端布局 */
@media (max-width: 768px) {
  .reply-author-header-mobile {
    display: flex !important;
  }
  
  .reply-author-name-group-mobile {
    display: flex !important;
  }
  
  /* 隐藏PC端的直接子元素 */
  .reply-author > .reply-author-avatar-container:not(.reply-author-header-mobile .reply-author-avatar-container) {
    display: none;
  }
  
  .reply-author > .reply-author-name:not(.reply-author-header-mobile *) {
    display: none;
  }
  
  .reply-author > .reply-author-rank:not(.reply-author-header-mobile *) {
    display: none;
  }
  
  .reply-author > .reply-author-badge:not(.reply-author-header-mobile *) {
    display: none;
  }
}

.reply-content-wrapper {
  padding: 20px;
}

.reply-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 13px;
  color: #6b7280;
  flex-wrap: wrap;
  gap: 8px;
}

.reply-floor {
  font-weight: 600;
  color: #667eea;
}

.reply-floor.op {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
}

.reply-content {
  font-size: 14px;
  line-height: 1.8;
  color: #374151;
  word-wrap: break-word;
}

.reply-content p {
  margin-bottom: 12px;
}

.reply-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 12px 0;
}

.mention {
  color: #667eea;
  font-weight: 600;
  cursor: pointer;
  background: #e0e7ff;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.2s;
}

.mention:hover {
  background: #c7d2fe;
  text-decoration: none;
}

.reply-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #f3f4f6;
}

.reply-actions .forum-btn {
  padding: 6px 14px;
  font-size: 13px;
}

.reply-input-area {
  background: white;
  padding: 24px;
  border-radius: 12px;
  margin-top: 20px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.reply-input-title {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.post-closed-notice {
  background: #fee2e2;
  border: 1px solid #fecaca;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  color: #991b1b;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.post-closed-notice i {
  font-size: 20px;
}

.post-navigation {
  position: fixed;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  max-height: 400px;
  overflow-y: auto;
  z-index: 100;
}

.nav-item {
  padding: 8px 12px;
  font-size: 13px;
  color: #6b7280;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s;
  white-space: nowrap;
}

.nav-item:hover {
  background: #f3f4f6;
  color: #667eea;
}

.nav-item.active {
  background: #e0e7ff;
  color: #667eea;
  font-weight: 600;
}

.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
  transition: all 0.3s;
  z-index: 100;
}

.back-to-top.show {
  display: flex;
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(102, 126, 234, 0.5);
}

/* ==================== 论坛管理 ==================== */
.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.admin-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  text-align: center;
}

.admin-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.admin-card-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: white;
}

.admin-card-title {
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 8px;
}

.admin-card-desc {
  font-size: 13px;
  color: #6b7280;
}

.admin-table {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  margin-top: 24px;
}

.admin-table table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th {
  background: #f9fafb;
  padding: 16px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  border-bottom: 1px solid #e5e7eb;
  white-space: nowrap;
}

.admin-table td {
  padding: 16px;
  font-size: 14px;
  color: #6b7280;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table tbody tr:hover {
  background: #f9fafb;
}

.tag-preview {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  margin: 4px;
}

.color-input-group {
  display: flex;
  gap: 12px;
  align-items: center;
}

.color-input-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.color-preview {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 2px solid #e5e7eb;
  cursor: pointer;
}

.color-input-wrapper input[type="color"] {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 768px) {
  .forum-container {
    padding: 12px;
  }

  .section-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .section-card {
    padding: 24px;
  }

  .forum-toolbar {
    flex-direction: column;
  }

  .toolbar-left, .toolbar-right {
    width: 100%;
  }

  .forum-search {
    max-width: 100%;
  }

  .post-item {
    grid-template-columns: 40px 1fr;
    gap: 12px;
    padding: 16px;
  }

  .post-avatar {
    width: 40px;
    height: 40px;
  }

  .post-title {
    font-size: 15px;
  }

  .post-stat {
    font-size: 12px;
  }

  .forum-modal-content {
    width: 95%;
    max-height: 95vh;
  }

  .forum-modal-header,
  .forum-modal-body,
  .forum-modal-footer {
    padding: 16px;
  }

  .reward-inputs {
    grid-template-columns: 1fr;
  }

  .reply-item {
    grid-template-columns: 1fr;
  }

  .reply-author {
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
    flex-direction: column;
    padding: 12px;
    align-items: flex-start;
    gap: 8px;
  }

  .reply-author-avatar {
    width: 48px;
    height: 48px;
  }
  
  /* 移动端头像容器 */
  .reply-author-avatar-container {
    margin-bottom: 0 !important;
  }
  
  /* 移动端：显示头像和用户信息的横向布局容器 */
  .reply-author-header-mobile {
    display: flex !important;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
  }
  
  /* 移动端：显示昵称和用户组的垂直容器 */
  .reply-author-name-group-mobile {
    display: flex !important;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 0;
  }
  
  /* 移动端：隐藏PC端的直接子元素(不在mobile容器内的) */
  .reply-author > .reply-author-avatar-container:not(.reply-author-header-mobile .reply-author-avatar-container) {
    display: none;
  }
  
  .reply-author > .reply-author-name:not(.reply-author-header-mobile .reply-author-name) {
    display: none;
  }
  
  .reply-author > .reply-author-rank:not(.reply-author-header-mobile .reply-author-rank) {
    display: none;
  }
  
  .reply-author > .reply-author-badge:not(.reply-author-header-mobile .reply-author-badge) {
    display: none;
  }
  
  .reply-author-name {
    font-size: 14px;
    text-align: left;
    width: 100%;
    word-break: break-word;
  }
  
  .reply-author-rank {
    font-size: 11px;
    padding: 3px 8px;
    width: fit-content;
  }
  
  /* 移动端用户信息改为水平紧凑布局 */
  .reply-author-info {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 0;
    width: 100%;
  }
  
  .reply-author-info-item {
    padding: 2px 6px;
    font-size: 10px;
    background: transparent;
    border-radius: 4px;
    flex: 0 0 auto;
  }
  
  .reply-author-info-item:hover {
    background: #f3f4f6;
  }
  
  .reply-author-info-item i {
    font-size: 9px;
    min-width: 10px;
  }
  
  .reply-author-info-item span {
    font-size: 10px;
    white-space: nowrap;
  }
  
  /* 移动端特殊徽章样式调整 */
  .reply-author-badge {
    margin-top: 0;
    width: fit-content;
  }

  .post-navigation {
    display: none;
  }

  .back-to-top {
    right: 20px;
    bottom: 20px;
    width: 44px;
    height: 44px;
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-table {
    overflow-x: auto;
  }

  .admin-table table {
    min-width: 600px;
  }
}

/* ==================== 加载动画 ==================== */
.forum-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
}

.forum-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f4f6;
  border-top: 4px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 置顶徽章样式 */
.post-pin-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  margin-right: 8px;
}

.post-pin-badge.super-pin {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.post-pin-badge.normal-pin {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

/* 置顶帖子列表项高亮 */
.post-item.post-pinned {
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.05) 0%, transparent 100%);
  border-left: 3px solid #ef4444;
}

/* 未读帖子指示器 */
.unread-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
  margin-right: 8px;
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* 未读帖子高亮 */
.post-item.post-unread {
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.05) 0%, transparent 100%);
  border-left: 2px solid #3b82f6;
}

/* 未读标题加粗 */
.post-title-unread {
  font-weight: 600;
  color: #1e293b;
}

/* ==================== 表情选择器样式 ==================== */
.forum-emoji-picker {
  display: none;
  flex-direction: column;
  /* 使用 fixed 定位，在 JS 中动态设置位置 */
  position: fixed;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  z-index: 10001;
  overflow: hidden;
  animation: emojiPickerSlideUp 0.2s ease;
}

@keyframes emojiPickerSlideUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.forum-emoji-picker .emoji-grid-container {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
}

.forum-emoji-picker .emoji-grid-container::-webkit-scrollbar {
  width: 6px;
}

.forum-emoji-picker .emoji-grid-container::-webkit-scrollbar-track {
  background: #f3f4f6;
  border-radius: 3px;
}

.forum-emoji-picker .emoji-grid-container::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}

.forum-emoji-picker .emoji-grid-container::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

.forum-emoji-picker .emoji-tabs {
  display: flex;
  gap: 6px;
  padding: 10px;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
  overflow-x: auto;
}

.forum-emoji-picker .emoji-tabs::-webkit-scrollbar {
  height: 4px;
}

.forum-emoji-picker .emoji-tabs::-webkit-scrollbar-track {
  background: #f3f4f6;
}

.forum-emoji-picker .emoji-tabs::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 2px;
}

.forum-emoji-picker .emoji-tab {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: none;
  background: white;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  position: relative;
  color: #6b7280;
  font-size: 16px;
}

.forum-emoji-picker .emoji-tab:hover {
  background: #e5e7eb;
  transform: scale(1.05);
}

.forum-emoji-picker .emoji-tab.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.forum-emoji-picker .emoji-tab img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.forum-emoji-picker .emoji-item {
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: all 0.2s;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
}

.forum-emoji-picker .emoji-item:hover {
  background: #f0f2f5;
  transform: scale(1.15);
}

.forum-emoji-picker .emoji-item img {
  width: 100%;
  height: 100%;
  max-width: 32px;
  max-height: 32px;
  object-fit: contain;
}

/* 表情音频指示器 */
.forum-emoji-picker .emoji-item .fa-volume-up {
  position: absolute;
  bottom: 2px;
  right: 2px;
  font-size: 8px;
  color: #667eea;
  background: white;
  border-radius: 50%;
  padding: 1px;
}

/* 帖子和回复中的表情样式 */
.reply-content .emoji-message-img,
.post-content .emoji-message-img {
  max-width: 120px;
  max-height: 120px;
  vertical-align: middle;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s;
  display: inline-block;
  margin: 4px;
}

.reply-content .emoji-message-img:hover,
.post-content .emoji-message-img:hover {
  transform: scale(1.05);
}

/* 编辑器中的表情预览样式 */
.editor-content .editor-emoji-preview {
  max-width: 80px;
  max-height: 80px;
  vertical-align: middle;
  margin: 0 4px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-block;
  transition: transform 0.2s;
}

.editor-content .editor-emoji-preview:hover {
  transform: scale(1.1);
}

/* 表情按钮激活状态 */
.editor-btn.active {
  background: #667eea !important;
  color: white !important;
}

/* 音频表情包标签样式 */
.emoji-tab.audio-pack::after {
  content: '';
  position: absolute;
  top: 2px;
  right: 2px;
  width: 8px;
  height: 8px;
  background: #667eea;
  border-radius: 50%;
  border: 2px solid white;
}

/* 加载动画 */
.forum-emoji-picker .emoji-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  color: #667eea;
}

.forum-emoji-picker .emoji-loading i {
  font-size: 24px;
  animation: spin 1s linear infinite;
}

/* ==================== 论坛楼层认证和特效样式 ==================== */

/* 头像容器 - 用于放置光环和认证图标 */
.reply-author-avatar-container {
  position: relative;
  display: inline-block;
  margin-bottom: 12px;
}

/* 论坛头像认证图标 - 右下角位置 */
.forum-auth-icon {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 24px;
  height: 24px;
  z-index: 3;
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
  object-fit: contain;
}

/* 论坛彩虹光环特效 */
.avatar-effect-rainbow-forum {
  position: absolute;
  top: -4px;
  left: -4px;
  width: calc(100% + 8px);
  height: calc(100% + 8px);
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    #ff0080, #ff0040, #ff4000, #ff8000, #ffbf00, #ffff00,
    #bfff00, #80ff00, #40ff00, #00ff00, #00ff40, #00ff80,
    #00ffbf, #00ffff, #00bfff, #0080ff, #0040ff, #0000ff,
    #4000ff, #8000ff, #bf00ff, #ff00ff, #ff00bf, #ff0080
  );
  background-size: 100% 100%;
  animation: rainbow-rotate-forum 4s linear infinite;
  z-index: 1;
  pointer-events: none;
  filter: brightness(1.2) saturate(1.3);
}

/* 彩虹光环旋转动画 */
@keyframes rainbow-rotate-forum {
  0% { 
    transform: rotate(0deg);
    filter: brightness(1.2) saturate(1.3) hue-rotate(0deg);
  }
  50% {
    filter: brightness(1.3) saturate(1.4) hue-rotate(180deg);
  }
  100% { 
    transform: rotate(360deg);
    filter: brightness(1.2) saturate(1.3) hue-rotate(360deg);
  }
}

/* 光晕效果 */
.avatar-effect-rainbow-forum::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  background: inherit;
  filter: blur(4px);
  opacity: 0.7;
  z-index: -1;
  animation: rainbow-pulse-forum 2s ease-in-out infinite;
}

@keyframes rainbow-pulse-forum {
  0%, 100% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
}

/* 确保头像在光环之上 */
.reply-author-avatar-container .reply-author-avatar {
  position: relative;
  z-index: 2;
}

/* 特殊用户组徽章样式 */
.reply-author-badge.special-rank {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  color: #8b4513;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  box-shadow: 0 2px 4px rgba(255, 215, 0, 0.3);
  animation: special-badge-glow 2s ease-in-out infinite;
}

@keyframes special-badge-glow {
  0%, 100% {
    box-shadow: 0 2px 4px rgba(255, 215, 0, 0.3);
  }
  50% {
    box-shadow: 0 4px 8px rgba(255, 215, 0, 0.6);
  }
}

.reply-author-badge.special-rank i {
  font-size: 12px;
  color: #ff6b6b;
}

/* 已采纳徽章保持原样 */
.reply-author-badge.accepted {
  background: #d1fae5;
  color: #065f46;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

/* 响应式适配 */
@media (max-width: 768px) {
  .forum-auth-icon {
    width: 20px;
    height: 20px;
  }
  
  .avatar-effect-rainbow-forum {
    top: -3px;
    left: -3px;
    width: calc(100% + 6px);
    height: calc(100% + 6px);
  }
  
  .reply-author-badge.special-rank {
    font-size: 10px;
    padding: 3px 8px;
  }
}

/* 移动端头像尺寸调整 */
@media (max-width: 768px) {
  .reply-author-avatar-container {
    margin-bottom: 8px;
  }
}

/* ==================== 禁止回复标记样式 ==================== */
.post-status.reply-disabled {
  background: #fecaca;
  color: #991b1b;
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  gap: 4px;
}

.post-status.reply-disabled i {
  font-size: 11px;
}

/* ==================== 禁止回复提示框样式 ==================== */
.post-reply-disabled-notice {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  border: 2px solid #fca5a5;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  color: #991b1b;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.15);
}

.post-reply-disabled-notice i {
  font-size: 20px;
  color: #dc2626;
}

/* ==================== 管理员结贴按钮样式 ==================== */
.forum-btn-admin-close {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  color: white;
}

.forum-btn-admin-close:hover {
  background: linear-gradient(135deg, #b91c1c 0%, #7f1d1d 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.forum-btn-admin-unlock {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

.forum-btn-admin-unlock:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

/* ==================== 公告标签特殊样式 ==================== */
.post-tag.announcement {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
  animation: announcement-pulse 2s ease-in-out infinite;
}

@keyframes announcement-pulse {
  0%, 100% {
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
  }
  50% {
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.5);
  }
}

.post-tag.notice {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
}

/* ==================== 发帖权限提示 ==================== */
.post-permission-notice {
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #92400e;
  font-size: 14px;
}

.post-permission-notice i {
  font-size: 16px;
  color: #f59e0b;
}

/* ==================== 问答区公告帖特殊样式 ==================== */
.post-item.announcement-post {
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.05) 0%, transparent 100%);
  border-left: 3px solid #ef4444;
}

.post-item.announcement-post:hover {
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.08) 0%, transparent 100%);
}

/* ==================== 响应式适配 ==================== */
@media (max-width: 768px) {
  .post-reply-disabled-notice {
    padding: 16px;
    font-size: 14px;
  }
  
  .post-reply-disabled-notice i {
    font-size: 18px;
  }
  
  .post-permission-notice {
    font-size: 13px;
    padding: 10px 14px;
  }
}

/* ==================== 管理员专属功能标识 ==================== */
.admin-only-feature {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.admin-only-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: white;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  margin-left: 8px;
}

.admin-only-label i {
  font-size: 10px;
}

/* ==================== 帖子状态组合显示优化 ==================== */
.post-status-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

/* ==================== 结贴后的视觉反馈 ==================== */
.post-item.post-closed {
  opacity: 0.85;
  background: linear-gradient(90deg, rgba(156, 163, 175, 0.05) 0%, transparent 100%);
}

.post-detail-header.post-closed {
  opacity: 0.9;
  border-left: 4px solid #9ca3af;
}

/* ==================== 动画效果优化 ==================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.post-permission-notice,
.post-reply-disabled-notice {
  animation: fadeIn 0.3s ease;
}