/* CSS: /www/wwwroot/ai.lovesb.cn/public/bbq/css/style.css */
/* 通用样式已在 common.css 中定义，本文件仅包含表白墙专属样式 */

/* 表白墙标题 */
.bbq-section-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--primary);
  margin: 2rem 0 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* 帖子表单 & 帖子卡片 */
.post-form,
.post-item {
  width: 100%;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: 0 4px 12px var(--shadow);
  border: 1px solid var(--border);
  padding: 1.5rem;
  margin-bottom: 20px;
  transition: var(--transition);
}

.post-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 18px rgba(93, 64, 55, 0.15);
}

/* 帖子头部 */
.post-header {
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.post-author-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: middle;
  margin-right: 8px;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.author-avatar-wrap {
  display: inline-block;
  position: relative;
  width: 36px;
  height: 36px;
  vertical-align: middle;
  margin-right: 8px;
  flex-shrink: 0;
}

.author-avatar-wrap .author-avatar {
  width: 100%;
  height: 100%;
  margin-right: 0;
}

.author-avatar-wrap .author-avatar-frame {
  position: absolute;
  top: -5px;
  left: -5px;
  width: calc(100% + 10px);
  height: calc(100% + 10px);
  pointer-events: none;
  z-index: 1;
}

.author-name { font-weight: 600; font-size: 16px; color: var(--primary); }
.post-time { font-size: 13px; color: var(--text-secondary); }

/* 表单 */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}

.form-control {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  resize: vertical;
  min-height: 100px;
  transition: var(--transition);
  color: var(--text);
  background: #FAF5F0;
}
.form-control:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(93, 64, 55, 0.15);
}

/* 上传区域 */
.upload-area {
  background: #f8f4ed;
  border: 2px dashed var(--border);
  border-radius: 10px;
  padding: 28px 16px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-secondary);
}
.upload-area:hover { border-color: var(--primary); background: #fff8e1; }
.upload-icon { font-size: 36px; color: var(--text-secondary); margin-bottom: 10px; }

.upload-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 10px;
}
.upload-btn:hover { background: var(--primary-dark); }

.preview-container { margin-top: 16px; text-align: center; }
#imagePreviewImg {
  max-width: 100%;
  max-height: 220px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--border);
}

/* 发布操作 */
.post-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

.like-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--primary);
}

.publish-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}
.publish-btn:hover { background: var(--primary-dark); }

/* 帖子内容 */
.posts-list { width: 100%; }

.post-content {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 16px;
  white-space: pre-wrap;
}

.post-image {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
}

.post-footer {
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.loading, .no-posts {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-secondary);
  font-size: 15px;
}

/* 头像区域 */
.avatar-container { text-align: center; padding: 30px 0; }
.avatar-placeholder {
  width: 180px; height: 180px;
  border-radius: 50%;
  border: 3px dashed var(--border);
  background: #F5F5F5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.avatar-source-title { font-size: 17px; color: var(--text); margin-bottom: 16px; }
.avatar-btn-group { display: flex; gap: 16px; justify-content: center; }

.avatar-btn, .share-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(93, 64, 55, 0.2);
}
.avatar-btn:hover, .share-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}
.share-btn { display: inline-flex; align-items: center; gap: 8px; }

/* 评论区域 */
.comment-form { margin-bottom: 24px; }
.comment-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  resize: vertical;
  min-height: 100px;
  transition: var(--transition);
  color: var(--text);
  background: #FAF5F0;
}
.comment-input:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(93, 64, 55, 0.15);
}
.comment-submit-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 10px;
}
.comment-submit-btn:hover { background: var(--primary-dark); }

/* 响应式 */
@media (max-width: 768px) {
  .logo { font-size: 24px; }
  .avatar-placeholder { width: 150px; height: 150px; font-size: 50px; }
  .avatar-btn { padding: 12px 24px; font-size: 15px; }
}

/* 头衔标签 */
.author-title-tag { position: relative; top: -0.4em; display: inline-block; padding: 0 4px; border-radius: 4px; background: linear-gradient(135deg, #ffd54f, #ffb300); color: #5d4037; font-size: 0.55rem; font-weight: 600; margin-left: -0.15rem; vertical-align: super; line-height: 1.3; transform: scale(0.9); }
