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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: #f5f5f5;
  color: #333;
}

/* ===== 头部 ===== */
.header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.header-left { display: flex; align-items: center; gap: 12px; }
.header-left h1 { font-size: 18px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.menu-btn { background: none; border: none; color: white; font-size: 22px; cursor: pointer; display: none; }
.header-right { display: flex; align-items: center; gap: 15px; }
#onlineCount { font-size: 13px; opacity: 0.9; }
.user-menu { display: flex; align-items: center; gap: 8px; }
.user-avatar-header { width: 28px; height: 28px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.user-avatar-header .avatar-img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.user-avatar-header .user-avatar { width: 28px !important; height: 28px !important; font-size: 14px; }
#currentNickname { font-weight: 500; font-size: 14px; }
.settings-btn { background: none; border: none; color: white; font-size: 20px; cursor: pointer; opacity: 0.9; }
.settings-btn:hover { opacity: 1; }
.header-btn { background: none; border: none; color: white; font-size: 18px; cursor: pointer; opacity: 0.9; }
.header-btn:hover { opacity: 1; }

/* ===== 头像通用 ===== */
.user-avatar {
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 600; flex-shrink: 0;
}
.avatar-img { border-radius: 50%; object-fit: cover; }

/* ===== 主体 ===== */
.main { display: flex; margin-top: 52px; height: calc(100vh - 52px); }

/* ===== 侧边栏 ===== */
.sidebar {
  width: 260px; background: white; border-right: 1px solid #e0e0e0;
  display: flex; flex-direction: column; overflow-y: auto;
}
.sidebar-header { display: flex; justify-content: space-between; align-items: center; padding: 12px 15px 0; }
.btn-icon {
  background: none; border: 2px solid #667eea; color: #667eea;
  width: 26px; height: 26px; border-radius: 50%; font-size: 16px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.btn-icon:hover { background: #667eea; color: white; }

.room-list { padding: 12px 0; border-bottom: 1px solid #e0e0e0; }
.room-list h3, .online-users h3 {
  font-size: 11px; text-transform: uppercase; color: #999;
  margin-bottom: 8px; letter-spacing: 1px; padding: 0 15px;
}
.room-item {
  padding: 10px 15px; cursor: pointer; transition: background 0.2s;
  display: flex; align-items: center; gap: 10px;
}
.room-item:hover { background: #f0f0f0; }
.room-item.active { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; }
.room-item.active .room-badge { background: rgba(255,255,255,0.3); color: white; }
.room-avatar { width: 28px; height: 28px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.room-avatar .avatar-img { width: 100%; height: 100%; object-fit: cover; }
.room-avatar .user-avatar { width: 28px !important; height: 28px !important; font-size: 13px; }
.room-icon { font-size: 16px; }
.room-name { font-size: 14px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.room-badge {
  font-size: 10px; padding: 1px 5px; border-radius: 8px;
  background: #eee; color: #666; flex-shrink: 0;
}
.room-item.active .room-badge { background: rgba(255,255,255,0.3); color: white; }

/* 未读消息徽章 */
.unread-badge {
  background: #e74c3c; color: white; font-size: 11px; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 5px; flex-shrink: 0; margin-left: auto;
}
.room-item.active .unread-badge { background: white; color: #e74c3c; }

.online-users { padding: 12px 15px; flex: 1; overflow-y: auto; }
.offline-users { padding: 12px 15px; border-top: 1px solid #eee; max-height: 200px; overflow-y: auto; }
.offline-users h3 { font-size: 11px; text-transform: uppercase; color: #999; margin-bottom: 8px; letter-spacing: 1px; }
.offline-user-item {
  display: flex; align-items: center; gap: 8px; padding: 6px 0;
  cursor: pointer; opacity: 0.6;
}
.offline-user-item:hover { opacity: 1; background: #f8f8f8; border-radius: 6px; padding-left: 4px; }
.offline-user-nick { font-size: 13px; color: #666; }
.offline-user-time { font-size: 11px; color: #bbb; margin-left: auto; white-space: nowrap; }
.user-item {
  padding: 8px 0; border-radius: 6px; cursor: default;
  display: flex; justify-content: space-between; align-items: center;
}
.user-item[data-user-id] { cursor: pointer; }
.user-item[data-user-id]:hover { background: #f0f0f0; }
.user-item-inner { display: flex; align-items: center; gap: 8px; }
.user-chat-hint { font-size: 11px; color: #667eea; opacity: 0; transition: opacity 0.2s; }
.user-item[data-user-id]:hover .user-chat-hint { opacity: 1; }
.user-nickname { font-size: 13px; }

/* ===== 聊天区域 ===== */
.chat-area { flex: 1; display: flex; flex-direction: column; background: #f9f9f9; }
.message-list { flex: 1; overflow-y: auto; padding: 15px; display: flex; flex-direction: column; gap: 10px; }

.message { display: flex; gap: 10px; max-width: 75%; }
.message.own { align-self: flex-end; flex-direction: row-reverse; }
.message-avatar-wrap { flex-shrink: 0; }
.message-avatar-wrap .avatar-img { width: 36px; height: 36px; }
.message-avatar-wrap .user-avatar { width: 36px !important; height: 36px !important; font-size: 15px; }

.message-content { background: white; padding: 10px 14px; border-radius: 14px; box-shadow: 0 1px 2px rgba(0,0,0,0.08); }
.message.own .message-content { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; }
.message-header { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.message-nickname { font-weight: 600; font-size: 13px; }
.message-time { font-size: 11px; color: #999; }
.message.own .message-time { color: rgba(255,255,255,0.75); }
.message.own .message-nickname { color: white; }
.message-text { font-size: 14px; line-height: 1.5; word-break: break-word; }
.system-message { text-align: center; color: #aaa; font-size: 12px; padding: 4px 0; }

.input-area { padding: 12px 15px; background: white; border-top: 1px solid #e0e0e0; display: flex; gap: 10px; }
#messageInput {
  flex: 1; padding: 10px 14px; border: 2px solid #e0e0e0; border-radius: 22px;
  font-size: 14px; outline: none; transition: border-color 0.2s;
}
#messageInput:focus { border-color: #667eea; }
#sendBtn {
  padding: 10px 22px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white; border: none; border-radius: 22px; font-size: 14px;
  font-weight: 600; cursor: pointer; transition: opacity 0.2s;
}
#sendBtn:hover { opacity: 0.9; }

/* ===== 弹窗 ===== */
.modal {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5); z-index: 200;
  align-items: center; justify-content: center;
}
.modal.active { display: flex; }
.modal-content {
  background: white; border-radius: 16px; width: 90%; max-width: 440px;
  max-height: 85vh; overflow: hidden; display: flex; flex-direction: column;
}
.modal-header {
  padding: 16px 20px; border-bottom: 1px solid #e0e0e0;
  display: flex; justify-content: space-between; align-items: center;
}
.modal-header h2 { font-size: 18px; }
.close-btn { background: none; border: none; font-size: 26px; cursor: pointer; color: #999; line-height: 1; }
.close-btn:hover { color: #333; }
.modal-body { padding: 16px 20px; overflow-y: auto; }

.form-group { margin-bottom: 14px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 14px; }
.form-group input {
  width: 100%; padding: 10px 12px; border: 2px solid #e0e0e0; border-radius: 8px;
  font-size: 14px; outline: none; transition: border-color 0.2s;
}
.form-group input:focus { border-color: #667eea; }
.form-group input:disabled { background: #f5f5f5; color: #999; }
.form-group small { display: block; margin-top: 4px; color: #999; font-size: 12px; }

.btn-primary {
  width: 100%; padding: 12px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white; border: none; border-radius: 8px; font-size: 14px;
  font-weight: 600; cursor: pointer; transition: opacity 0.2s; margin-bottom: 8px;
}
.btn-primary:hover { opacity: 0.9; }
.btn-secondary {
  width: 100%; padding: 12px; background: #f0f0f0; color: #666;
  border: none; border-radius: 8px; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: background 0.2s;
}
.btn-secondary:hover { background: #e0e0e0; }

hr { border: none; border-top: 1px solid #e0e0e0; margin: 16px 0; }

/* ===== 个人资料 ===== */
.profile-body .avatar-section { text-align: center; margin-bottom: 20px; }
.avatar-large {
  width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.avatar-large .user-avatar { width: 80px !important; height: 80px !important; font-size: 32px; }
.avatar-large .avatar-img { width: 80px; height: 80px; object-fit: cover; border-radius: 50%; }
.btn-small-avatar {
  display: inline-block !important; width: auto !important; padding: 8px 16px !important;
  font-size: 13px !important; cursor: pointer;
}

/* ===== 新聊天弹窗 ===== */
.tabs { display: flex; gap: 0; margin-bottom: 15px; border-bottom: 2px solid #eee; }
.tab {
  flex: 1; padding: 10px; border: none; background: none; cursor: pointer;
  font-size: 14px; font-weight: 500; color: #999; border-bottom: 2px solid transparent;
  margin-bottom: -2px; transition: all 0.2s;
}
.tab.active { color: #667eea; border-bottom-color: #667eea; }
.tab:hover { color: #667eea; }

.contacts-list { max-height: 300px; overflow-y: auto; }
.contact-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid #f0f0f0;
}
.contact-info { display: flex; align-items: center; gap: 10px; }
.btn-small {
  padding: 5px 12px; border: none; border-radius: 6px;
  font-size: 12px; cursor: pointer; font-weight: 500;
}
.btn-chat { background: #667eea; color: white; }
.btn-ban { background: #e74c3c; color: white; }
.btn-unban { background: #27ae60; color: white; }
.btn-kick { background: #f39c12; color: white; }

.member-item {
  display: flex; align-items: center; gap: 8px; padding: 8px 0;
  cursor: pointer; border-bottom: 1px solid #f5f5f5;
}
.member-checkbox { margin-right: 4px; }

.text-muted { color: #999; font-size: 13px; text-align: center; padding: 20px 0; }

/* ===== 管理员 ===== */
.admin-section { margin-top: 10px; }
.admin-user-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid #f0f0f0;
}
.admin-user-info { display: flex; align-items: center; gap: 10px; }
.admin-user-actions { display: flex; gap: 6px; }

/* ===== 认证页面 ===== */
.auth-container {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); padding: 20px;
}
.auth-card {
  background: white; border-radius: 16px; padding: 36px;
  width: 100%; max-width: 380px; box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}
.auth-card h1 { text-align: center; margin-bottom: 28px; color: #667eea; font-size: 26px; }
.auth-link { text-align: center; margin-top: 16px; color: #666; font-size: 14px; }
.auth-link a { color: #667eea; text-decoration: none; font-weight: 600; }
.auth-link a:hover { text-decoration: underline; }
.error-msg { color: #e74c3c; text-align: center; margin-top: 12px; font-size: 13px; }

/* ===== 用户资料弹窗 ===== */
.modal-compact { max-width: 360px; }
.profile-view-body { text-align: center; }
.profile-avatar-wrap { margin-bottom: 12px; }
.profile-avatar-wrap .user-avatar { width: 64px !important; height: 64px !important; font-size: 28px; margin: 0 auto; }
.profile-avatar-wrap .avatar-img { width: 64px; height: 64px; object-fit: cover; border-radius: 50%; }
.profile-info { margin-bottom: 16px; }
.profile-nickname { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.profile-username { font-size: 13px; color: #999; margin-bottom: 8px; }
.profile-bio { font-size: 14px; color: #666; font-style: italic; min-height: 20px; }
.profile-actions { text-align: left; }
.profile-actions .form-group { margin-bottom: 10px; }

/* ===== 消息引用 ===== */
.msg-context-menu { display: none; }

/* ===== 群成员列表 ===== */
.member-card {
  display: flex; align-items: center; gap: 10px; padding: 10px 0;
  border-bottom: 1px solid #f5f5f5; cursor: pointer;
}
.member-card:hover { background: #f8f8f8; }
.member-card-info { flex: 1; }
.member-card-nick { font-size: 14px; font-weight: 500; }
.member-card-bio { font-size: 12px; color: #999; margin-top: 2px; }
.member-card-status { font-size: 11px; padding: 2px 6px; border-radius: 10px; }
.member-card-status.online { background: #e8f5e9; color: #4caf50; }
.member-card-status.offline { background: #f5f5f5; color: #999; }
.reply-bar {
  padding: 8px 15px; background: #f0f0f0; border-top: 1px solid #e0e0e0;
  display: flex; justify-content: space-between; align-items: center;
}
.reply-info { font-size: 13px; color: #667eea; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.reply-cancel { background: none; border: none; font-size: 20px; color: #999; cursor: pointer; padding: 0 4px; }

.reply-quote {
  background: rgba(102,126,234,0.08); border-left: 3px solid #667eea;
  padding: 6px 10px; margin-bottom: 6px; border-radius: 4px; cursor: pointer;
}
.message.own .reply-quote { background: rgba(255,255,255,0.2); border-left-color: rgba(255,255,255,0.6); }
.reply-quote-nick { font-size: 12px; font-weight: 600; color: #667eea; margin-bottom: 2px; }
.message.own .reply-quote-nick { color: rgba(255,255,255,0.9); }
.reply-quote-text { font-size: 12px; color: #888; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 250px; }
.message.own .reply-quote-text { color: rgba(255,255,255,0.7); }

.msg-context-menu { display: none; }

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .menu-btn { display: block; }
  .sidebar {
    position: fixed; left: -260px; top: 52px; bottom: 0; z-index: 99;
    transition: left 0.3s; box-shadow: 2px 0 10px rgba(0,0,0,0.1);
  }
  .sidebar.active { left: 0; }
  .message { max-width: 85%; }
  .modal-content { width: 95%; }
  .modal-large { max-width: 95% !important; }
  .home-grid { flex-direction: column !important; }
  .home-card { min-height: 140px !important; }
}

/* ===== 返回主页按钮 ===== */
.header-back-btn {
  background: rgba(255,255,255,0.2); color: white;
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; font-size: 18px; font-weight: bold;
  transition: background 0.2s;
}
.header-back-btn:hover { background: rgba(255,255,255,0.35); }

/* ===== 主界面 ===== */
.home-page {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.home-header {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 20px 30px; color: white;
}
.home-logo {
  font-size: 28px; font-weight: 700; letter-spacing: 3px;
}
.home-user {
  display: flex; align-items: center; gap: 8px; color: white;
  background: rgba(255,255,255,0.15); padding: 6px 14px; border-radius: 22px;
}
.home-user span { font-size: 14px; font-weight: 500; }
.home-grid {
  flex: 1; display: flex; gap: 30px; justify-content: center; align-items: center;
  padding: 20px; max-width: 800px; width: 100%;
}
.home-card {
  flex: 1; background: white; border-radius: 20px; padding: 40px 30px;
  text-align: center; text-decoration: none; color: #333;
  min-height: 200px; display: flex; flex-direction: column; justify-content: center;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  transition: transform 0.3s, box-shadow 0.3s;
}
.home-card:hover {
  transform: translateY(-6px); box-shadow: 0 16px 50px rgba(0,0,0,0.3);
}
.home-card-icon { font-size: 56px; margin-bottom: 16px; }
.home-card-name { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.home-card-desc { font-size: 14px; color: #999; }
.home-card-chat .home-card-name { color: #667eea; }
.home-card-plaza .home-card-name { color: #e17055; }
.home-footer {
  padding: 20px 30px 40px; display: flex; gap: 12px;
}
.home-profile-btn, .home-logout-btn {
  padding: 10px 24px; border-radius: 22px; font-size: 14px; font-weight: 600;
  cursor: pointer; border: none; transition: all 0.2s;
}
.home-profile-btn { background: rgba(255,255,255,0.2); color: white; }
.home-profile-btn:hover { background: rgba(255,255,255,0.35); }
.home-logout-btn { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.8); }
.home-logout-btn:hover { background: rgba(231,76,60,0.6); color: white; }

/* ===== 广场页面 ===== */
.plaza-page {
  min-height: 100vh; background: #f0f2f5;
}
.plaza-container {
  max-width: 680px; margin: 0 auto; padding: 70px 15px 40px;
}

/* 发帖区域 */
.post-box {
  background: white; border-radius: 14px; padding: 16px;
  display: flex; gap: 12px; margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.post-box-avatar { flex-shrink: 0; }
.post-box-input-wrap { flex: 1; display: flex; flex-direction: column; }
.post-box-textarea {
  width: 100%; border: none; resize: none; font-size: 15px;
  font-family: inherit; outline: none; min-height: 60px; line-height: 1.5;
}
.post-box-bottom {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-top: 8px; flex-wrap: wrap; gap: 8px;
}
.post-box-images-preview {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.img-preview-item {
  position: relative; width: 64px; height: 64px; border-radius: 8px; overflow: hidden;
}
.img-preview-item img { width: 100%; height: 100%; object-fit: cover; }
.img-remove-btn {
  position: absolute; top: 2px; right: 2px;
  background: rgba(0,0,0,0.6); color: white; border: none;
  width: 20px; height: 20px; border-radius: 50%; font-size: 14px;
  cursor: pointer; line-height: 1; display: flex; align-items: center; justify-content: center;
}
.post-box-actions { display: flex; gap: 10px; align-items: center; }
.post-img-btn {
  cursor: pointer; font-size: 22px; opacity: 0.7; transition: opacity 0.2s;
}
.post-img-btn:hover { opacity: 1; }
.btn-post {
  width: auto !important; padding: 8px 24px !important; margin: 0 !important;
}

/* 帖子卡片 */
.post-card {
  background: white; border-radius: 14px; padding: 16px; margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.post-header {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.post-user-info { flex: 1; }
.post-nickname { font-size: 15px; font-weight: 600; }
.post-time { font-size: 12px; color: #999; margin-top: 2px; }
.post-delete-btn {
  background: none; border: none; font-size: 16px; cursor: pointer;
  opacity: 0.4; transition: opacity 0.2s;
}
.post-delete-btn:hover { opacity: 1; }
.post-content {
  font-size: 15px; line-height: 1.7; white-space: pre-wrap; word-break: break-word;
  margin-bottom: 12px;
}
.post-content-detail {
  font-size: 16px; line-height: 1.7; white-space: pre-wrap; word-break: break-word;
  margin-bottom: 12px;
}

/* 帖子图片 */
.post-images {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px;
}
.post-images-1 .post-img {
  width: 100%; max-height: 400px; border-radius: 10px; object-fit: cover;
}
.post-images-2 .post-img, .post-images-3 .post-img {
  width: calc(50% - 3px); height: 180px; border-radius: 8px; object-fit: cover; cursor: pointer;
}
.post-images-3 .post-img { width: calc(33.33% - 4px); height: 140px; }

/* 帖子操作栏 */
.post-actions-bar {
  display: flex; gap: 20px; padding-top: 8px; border-top: 1px solid #f0f0f0;
}
.post-action {
  background: none; border: none; display: flex; align-items: center; gap: 5px;
  cursor: pointer; font-size: 14px; color: #666; padding: 6px 10px; border-radius: 6px;
  transition: background 0.2s;
}
.post-action:hover { background: #f5f5f5; }
.post-action.liked { color: #e74c3c; }
.post-action .action-icon { font-size: 16px; }

/* 加载更多 */
.load-more { text-align: center; padding: 20px; }
.btn-load-more { width: auto !important; display: inline-block !important; padding: 10px 30px !important; }

/* 空状态 */
.empty-state { text-align: center; padding: 60px 20px; color: #999; }
.empty-icon { font-size: 48px; margin-bottom: 12px; }

/* 加载中 */
.loading-text { text-align: center; color: #999; padding: 40px; }
.error-text { text-align: center; color: #e74c3c; padding: 40px; }

/* ===== 帖子详情弹窗 ===== */
.modal-large { max-width: 620px; }
.comment-divider { margin: 16px 0; }

/* 评论区域 */
.comments-section h3 { font-size: 15px; margin-bottom: 12px; }
.comment-list { margin-bottom: 16px; }
.comment-item {
  display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f5f5f5;
}
.comment-body { flex: 1; }
.comment-meta {
  display: flex; align-items: center; gap: 6px; margin-bottom: 4px; flex-wrap: wrap;
}
.comment-author { font-size: 13px; font-weight: 600; }
.comment-reply-arrow { font-size: 12px; color: #aaa; }
.comment-reply-name { font-size: 13px; color: #667eea; }
.comment-time { font-size: 11px; color: #ccc; margin-left: auto; }
.comment-text { font-size: 14px; line-height: 1.5; color: #333; }
.comment-actions { display: flex; gap: 12px; margin-top: 4px; }
.comment-action {
  background: none; border: none; font-size: 12px; color: #999;
  cursor: pointer; padding: 2px 6px; border-radius: 4px; transition: all 0.2s;
}
.comment-action:hover { color: #667eea; }
.comment-action.liked { color: #e74c3c; }

/* 评论输入 */
.comment-input-area {
  position: sticky; bottom: 0; background: white; padding-top: 12px;
}
.comment-input-wrap {
  display: flex; align-items: center; gap: 8px;
  background: #f5f5f5; border-radius: 22px; padding: 6px 6px 6px 10px;
}
#commentInput {
  flex: 1; border: none; background: none; font-size: 14px; outline: none;
  padding: 6px 0;
}
.btn-comment {
  width: auto !important; padding: 6px 16px !important; margin: 0 !important;
  font-size: 13px !important;
}

/* ===== 图片查看大图 ===== */
.image-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.9); z-index: 300;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.image-overlay img {
  max-width: 90vw; max-height: 90vh; border-radius: 8px;
}
