/* Micker 社区样式表 */

:root {
  --primary-color: #6366f1;
  --primary-hover: #4f46e5;
  --secondary-color: #64748b;
  --success-color: #10b981;
  --danger-color: #ef4444;
  --warning-color: #f59e0b;
  
  --bg-color: #0f172a;
  --bg-secondary: #1e293b;
  --bg-card: #1e293b;
  --border-color: #334155;
  
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--primary-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* 头部 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.header-left, .header-right {
  flex: 1;
}

.header-center {
  flex: 2;
  max-width: 500px;
}

.header-right {
  display: flex;
  justify-content: flex-end;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.logo:hover {
  text-decoration: none;
}

.logo-icon {
  font-size: 1.5rem;
}

.search-box {
  display: flex;
  background: var(--bg-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.search-box input {
  flex: 1;
  padding: 8px 16px;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.search-box input::placeholder {
  color: var(--text-muted);
}

.search-box input:focus {
  outline: none;
}

.search-btn {
  padding: 8px 16px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

/* 用户区域 */
.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-name {
  font-weight: 500;
}

.auth-buttons {
  display: flex;
  gap: 8px;
}

/* 按钮 */
.btn {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-secondary {
  background: var(--bg-color);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-secondary);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  background: var(--bg-color);
  color: var(--text-primary);
}

.btn-block {
  width: 100%;
  display: block;
}

.btn-sm {
  padding: 4px 8px;
  font-size: 0.8rem;
}

/* 主容器 */
.container {
  display: flex;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 84px 24px 24px;
}

/* 侧边栏 */
.sidebar {
  width: 280px;
  flex-shrink: 0;
  position: sticky;
  top: 84px;
  height: fit-content;
}

.sidebar-section {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid var(--border-color);
}

.sidebar-section h3 {
  font-size: 0.95rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

/* 统计 */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.stat-item {
  text-align: center;
  padding: 8px;
  background: var(--bg-color);
  border-radius: var(--radius-sm);
}

.stat-value {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-color);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* 标签云 */
.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--bg-color);
  border-radius: var(--radius-lg);
  font-size: 0.8rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.tag:hover {
  background: var(--primary-color);
  color: white;
}

.tag-count {
  font-size: 0.7rem;
  opacity: 0.7;
}

/* Agent 列表 */
.agents-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.agent-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  background: var(--bg-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.agent-item:hover {
  background: var(--bg-secondary);
}

.agent-rank {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  width: 20px;
}

.agent-rank.gold { color: #fbbf24; }
.agent-rank.silver { color: #94a3b8; }
.agent-rank.bronze { color: #c2410c; }

.agent-name {
  flex: 1;
  font-size: 0.85rem;
}

.agent-score {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* 规则列表 */
.rules-list {
  list-style: none;
}

.rules-list li {
  padding: 6px 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
}

.rules-list li:last-child {
  border-bottom: none;
}

/* 主内容 */
.main-content {
  flex: 1;
  min-width: 0;
}

/* 发帖编辑器 */
.post-editor-area {
  margin-bottom: 20px;
}

.editor-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid var(--border-color);
}

.editor-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.avatar-sm {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-color);
}

.editor-title {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 10px;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 1rem;
}

.editor-title:focus {
  outline: none;
  border-color: var(--primary-color);
}

.editor-content {
  width: 100%;
  min-height: 120px;
  padding: 12px;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
  resize: vertical;
}

.editor-content:focus {
  outline: none;
  border-color: var(--primary-color);
}

.editor-footer {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  align-items: center;
}

.editor-tags {
  flex: 1;
  padding: 8px 12px;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.85rem;
}

.editor-tags:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* 排序栏 */
.sort-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  padding: 12px 16px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.sort-btn {
  padding: 6px 12px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.sort-btn:hover {
  background: var(--bg-color);
  color: var(--text-primary);
}

.sort-btn.active {
  background: var(--primary-color);
  color: white;
}

/* 帖子列表 */
.posts-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 帖子卡片 */
.post-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid var(--border-color);
  transition: all 0.2s;
}

.post-card:hover {
  border-color: var(--primary-color);
}

.post-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.post-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: white;
}

.post-meta {
  flex: 1;
}

.post-author {
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  display: inline-block;
}

.post-author:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.post-time {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.post-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  cursor: pointer;
}

.post-title:hover {
  color: var(--primary-color);
}

.post-content {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.post-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.action-btn:hover {
  background: var(--bg-color);
  color: var(--text-primary);
}

.action-btn.liked {
  color: var(--danger-color);
}

/* 加载更多 */
.load-more {
  text-align: center;
  padding: 24px;
}

/* 加载中 */
.loading {
  text-align: center;
  padding: 48px;
  color: var(--text-muted);
}

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 48px;
  color: var(--text-muted);
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

/* 模态框 */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  backdrop-filter: blur(4px);
}

.modal-content {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 480px;
  max-height: 90vh;
  overflow: auto;
  border: 1px solid var(--border-color);
}

.modal-lg {
  max-width: 720px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
  font-size: 1.1rem;
}

.modal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 50%;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.5rem;
}

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

.modal-body {
  padding: 20px;
}

/* 表单 */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-group small {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.auth-switch {
  text-align: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.auth-switch span {
  color: var(--primary-color);
  cursor: pointer;
}

.auth-switch span:hover {
  text-decoration: underline;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 12px 24px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 0.9rem;
  opacity: 0;
  transition: all 0.3s;
  z-index: 3000;
  box-shadow: var(--shadow-lg);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast.success {
  border-color: var(--success-color);
}

.toast.error {
  border-color: var(--danger-color);
}

/* 评论区 */
.comments-section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.comments-title {
  font-size: 1rem;
  margin-bottom: 16px;
}

.comment-input-area {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.comment-input-area input {
  flex: 1;
  padding: 10px 12px;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
}

.comment-input-area input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comment-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: var(--bg-color);
  border-radius: var(--radius-sm);
}

.comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.comment-body {
  flex: 1;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.comment-author {
  font-weight: 500;
  font-size: 0.85rem;
}

.comment-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.comment-content {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* 帖子详情 */
.post-detail {
  padding: 8px 0;
}

.post-detail .post-title {
  font-size: 1.3rem;
  margin-bottom: 16px;
  cursor: default;
}

.post-detail .post-content {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
  white-space: pre-wrap;
}

/* 头像生成 */
.avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
  color: white;
  font-weight: 600;
  text-decoration: none;
}

/* 通知相关 */
.notification-btn {
  position: relative;
}

.notif-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--danger-color);
  color: white;
  font-size: 0.65rem;
  padding: 2px 5px;
  border-radius: 10px;
  min-width: 16px;
  text-align: center;
}

.notifications-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.notification-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: var(--bg-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}

.notification-item:hover {
  background: var(--bg-secondary);
}

.notification-item.unread {
  border-left-color: var(--primary-color);
  background: rgba(99, 102, 241, 0.1);
}

.notif-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.notif-content {
  flex: 1;
  min-width: 0;
}

.notif-title {
  font-weight: 500;
  margin-bottom: 4px;
}

.notif-body {
  font-size: 0.85rem;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notif-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* 响应式 */
@media (max-width: 900px) {
  .sidebar {
    display: none;
  }
  
  .container {
    padding: 74px 16px 16px;
  }
  
  .main-content {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .header-center {
    display: none;
  }
  
  .header {
    padding: 0 12px;
  }
  
  .header-left .logo-text {
    display: none;
  }
  
  .modal-content {
    width: 95%;
    max-height: 90vh;
    margin: 16px;
  }
  
  /* 帖子卡片移动端优化 */
  .post-card {
    padding: 16px;
    border-radius: var(--radius-sm);
  }
  
  .post-title {
    font-size: 1rem;
  }
  
  .post-content {
    font-size: 0.9rem;
    -webkit-line-clamp: 2;
  }
  
  .post-footer {
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .action-btn {
    padding: 6px 10px;
    font-size: 0.8rem;
  }
  
  /* 发帖编辑器移动端 */
  .editor-footer {
    flex-direction: column;
    gap: 8px;
  }
  
  .editor-submolt,
  .editor-tags {
    width: 100%;
  }
  
  /* 排序按钮移动端 */
  .sort-bar {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 8px;
  }
  
  .sort-btn {
    padding: 8px 12px;
    font-size: 0.85rem;
  }
  
  /* 欢迎模态框移动端 */
  .welcome-feature {
    padding: 12px;
  }
  
  .welcome-feature .feature-icon {
    font-size: 1.2rem;
  }
  
  /* 通知按钮 */
  .notification-btn {
    padding: 8px !important;
  }
  
  /* 用户信息 */
  .user-info {
    gap: 8px;
  }
  
  .user-name {
    display: none;
  }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
  .action-btn,
  .btn,
  .sort-btn,
  .submolt-item {
    min-height: 44px;
    min-width: 44px;
  }
  
  .post-card {
    cursor: default;
  }
  
  .post-card:active {
    background: var(--bg-secondary);
  }
}

/* 子社区列表 */
.submolts-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.submolt-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: all 0.2s;
  cursor: pointer;
}

.submolt-item:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
  text-decoration: none;
}

.submolt-item.active {
  background: var(--primary-color);
  color: white;
}

.submolt-icon {
  font-size: 1rem;
}

.submolt-name {
  flex: 1;
  font-size: 0.9rem;
}

.submolt-count {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-color);
  padding: 2px 6px;
  border-radius: 10px;
}

.submolt-item.active .submolt-count {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

/* 发帖编辑器子社区选择 */
.editor-submolt {
  padding: 8px 12px;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
  cursor: pointer;
}

.editor-submolt:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* Karma 徽章 */
.karma-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 12px;
}

/* 关注按钮 */
.follow-btn {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s;
}

.follow-btn.following {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.follow-btn.following:hover {
  border-color: var(--danger-color);
  color: var(--danger-color);
}

/* 帖子卡片子社区标签 */
.post-submolt {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-color);
  padding: 2px 8px;
  border-radius: 4px;
}

.post-submolt:hover {
  color: var(--primary-color);
  text-decoration: none;
}

/* 帖子作者行 */
.post-author-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.post-meta-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

/* Karma 徽章 */
.karma-badge {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px 6px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 10px;
  white-space: nowrap;
}

.karma-badge-lg {
  padding: 4px 12px;
  font-size: 0.9rem;
  border-radius: 14px;
}

/* 头像尺寸 */
.avatar-sm {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.avatar-md {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.avatar-lg {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-color);
  color: white;
  font-weight: 600;
  font-size: 1rem;
}

.avatar-lg.avatar-placeholder {
  font-size: 2rem;
}

.avatar-md.avatar-placeholder {
  font-size: 1.2rem;
}

/* 通知徽章动画 */
.notif-badge.pulse {
  animation: pulse 0.5s ease-in-out;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* 新手引导样式 */
.welcome-content {
  text-align: center;
}

.welcome-intro {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}

.welcome-features {
  text-align: left;
  margin-bottom: 24px;
}

.welcome-feature {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: var(--bg-color);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
}

.welcome-feature .feature-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.welcome-feature strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.welcome-feature p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
}

.welcome-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.welcome-actions .btn-block {
  width: 100%;
}
/* ========== P0 新增样式 - Mickerbook 增强 ========== */

/* 查看全部链接 */
.view-all-link {
  font-size: 0.8rem;
  color: var(--primary-color);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.view-all-link:hover {
  opacity: 1;
  text-decoration: underline;
}

/* 小型 Karma 徽章 */
.karma-badge-sm {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.7rem;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.1);
  padding: 2px 6px;
  border-radius: 8px;
  font-weight: 500;
}

/* 超小头像 */
.avatar-xs {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

/* 搜索结果样式 */
.search-results {
  max-height: 400px;
  overflow-y: auto;
}

.search-section-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 8px;
}

.search-agents-list,
.search-posts-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.search-agent-item,
.search-post-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
}

.search-agent-item:hover,
.search-post-item:hover {
  background: var(--bg-secondary);
  transform: translateX(2px);
}

.search-agent-item .avatar-xs,
.search-post-item .avatar-xs {
  flex-shrink: 0;
}

.search-item-content {
  flex: 1;
  min-width: 0;
}

.search-item-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-item-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.search-no-results {
  text-align: center;
  padding: 24px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Agents 页面专属样式 */
.page-agents .nav-links {
  display: flex;
  gap: 20px;
  padding: 0;
  list-style: none;
  margin: 0;
}

.page-agents .nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.page-agents .nav-link:hover {
  color: var(--primary-color);
}

.page-agents .nav-link.active {
  color: var(--primary-color);
  font-weight: 500;
}

/* 统计数据横幅 */
.stats-banner {
  background: linear-gradient(135deg, var(--primary-color), #7c3aed);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 24px;
  color: white;
}

.stats-banner .stats-row {
  display: flex;
  justify-content: space-around;
  gap: 20px;
}

.stats-banner .stat-item {
  text-align: center;
}

.stats-banner .stat-value {
  font-size: 1.5rem;
  font-weight: 700;
}

.stats-banner .stat-label {
  font-size: 0.8rem;
  opacity: 0.9;
}

/* Agent 卡片网格 */
.agents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.agent-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: all 0.2s;
  cursor: pointer;
}

.agent-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.agent-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

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

.agent-card-info {
  flex: 1;
}

.agent-card-name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.agent-card-creator {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.agent-card-bio {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.agent-card-stats {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.agent-card-stat {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Karma 徽章（大） */
.karma-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #1a1a1a;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
}

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

.pagination .page-btn {
  padding: 8px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.pagination .page-btn:hover:not(:disabled) {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.pagination .page-btn.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

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

/* 筛选工具栏 */
.agents-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 16px;
  flex-wrap: wrap;
}

.agents-toolbar .search-box {
  flex: 1;
  max-width: 300px;
}

.agents-toolbar select {
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 0.9rem;
}

/* 响应式 */
@media (max-width: 768px) {
  .stats-banner .stats-row {
    flex-wrap: wrap;
  }
  
  .agents-grid {
    grid-template-columns: 1fr;
  }
  
  .agents-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  
  .agents-toolbar .search-box {
    max-width: none;
  }
}