/* 社区容器 - 增加宽度 */
.community-container {
  max-width: 900px;
  /* 从800px增加到900px */
  margin: 2rem auto;
  padding: 0 1.5rem;
  /* 增加内边距 */
}
/* 发布区域 */
.post-creator {
  display: flex;
  align-items: center;
  padding: 1.2rem;
  /* 增加内边距 */
  background: white;
  border-radius: 0.5rem;
  margin-bottom: 0.8rem;
  /* 增加间距 */
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.post-creator .creator-avatar {
  width: 3.5rem;
  /* 稍大 */
  height: 3.5rem;
  /* 稍大 */
  margin-right: 1.2rem;
}
.post-creator .creator-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.post-creator .creator-input {
  flex: 1;
}
.post-creator .creator-input input {
  width: 100%;
  padding: 0.9rem 1rem;
  /* 增加内边距 */
  border: 1px solid #eaeaea;
  border-radius: 2rem;
  outline: none;
  font-size: 1rem;
}
.post-creator .publish-btn {
  margin-left: 1.2rem;
  padding: 0.7rem 1.5rem;
  /* 增加内边距 */
  background: #FFD700;
  color: white;
  border: none;
  border-radius: 2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}
.post-creator .publish-btn:hover {
  background: #ccac00;
}
.creator-tools {
  display: flex;
  padding: 0.8rem 1.2rem;
  /* 增加内边距 */
  background: white;
  border-radius: 0 0 0.5rem 0.5rem;
  margin-bottom: 2rem;
  /* 增加间距 */
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.creator-tools .tool-btn {
  display: flex;
  align-items: center;
  margin-right: 2rem;
  /* 增加间距 */
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  font-size: 0.95rem;
  /* 稍大 */
}
.creator-tools .tool-btn .iconfont {
  margin-right: 0.5rem;
  /* 增加间距 */
  font-size: 1.3rem;
  /* 稍大 */
}
/* 帖子样式 - 增加宽度和内边距 */
.community-post {
  background: white;
  border-radius: 0.5rem;
  padding: 1.8rem;
  /* 增加内边距 */
  margin-bottom: 2rem;
  /* 增加间距 */
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.community-post .post-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.2rem;
  /* 增加间距 */
}
.community-post .post-header .user-avatar {
  width: 3.5rem;
  /* 稍大 */
  height: 3.5rem;
  /* 稍大 */
  border-radius: 50%;
  margin-right: 1.2rem;
  /* 增加间距 */
  object-fit: cover;
}
.community-post .post-header .user-info {
  display: flex;
  flex-direction: column;
}
.community-post .post-header .user-info .username {
  font-weight: 600;
  color: #333;
  margin-bottom: 0.3rem;
  /* 增加间距 */
  font-size: 1.1rem;
  /* 稍大 */
}
.community-post .post-header .user-info .post-time {
  font-size: 0.85rem;
  /* 稍大 */
  color: #666;
}
.community-post .post-content {
  margin-bottom: 1.2rem;
  /* 增加间距 */
}
.community-post .post-content p {
  color: #333;
  line-height: 1.6;
  margin-bottom: 1.2rem;
  /* 增加间距 */
  font-size: 1rem;
}
.community-post .post-content .post-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  /* 增加间距 */
  margin-top: 1.2rem;
  /* 增加间距 */
}
.community-post .post-content .post-images img {
  width: 100%;
  height: 14rem;
  /* 稍大 */
  object-fit: cover;
  border-radius: 0.5rem;
}
.community-post .post-footer {
  display: flex;
  padding-top: 1.2rem;
  /* 增加间距 */
  border-top: 1px solid #eaeaea;
}
.community-post .post-footer button {
  display: flex;
  align-items: center;
  background: none;
  border: none;
  margin-right: 2rem;
  /* 增加间距 */
  cursor: pointer;
  color: #666;
  font-size: 0.95rem;
  /* 稍大 */
  transition: all 0.3s;
}
.community-post .post-footer button .iconfont {
  margin-right: 0.5rem;
  /* 增加间距 */
  font-size: 1.3rem;
  /* 稍大 */
}
.community-post .post-footer button:hover {
  color: #333;
}
.community-post .post-footer .like-btn.liked {
  color: #e74c3c;
}
.community-post .post-comments {
  margin-top: 1.2rem;
  /* 增加间距 */
  padding-top: 1.2rem;
  /* 增加间距 */
  border-top: 1px solid #f5f5f5;
}
.community-post .post-comments .comment {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  /* 增加间距 */
  font-size: 0.95rem;
  /* 稍大 */
}
.community-post .post-comments .comment .comment-user {
  font-weight: 600;
  color: #333;
  margin-right: 0.6rem;
  /* 增加间距 */
}
.community-post .post-comments .comment .comment-text {
  color: #333;
  margin-right: 0.6rem;
  /* 增加间距 */
}
.community-post .post-comments .comment .comment-time {
  color: #666;
  font-size: 0.85rem;
  /* 稍大 */
}
.community-post .post-comments .comment-reply {
  margin-top: 0.8rem;
  /* 增加间距 */
}
.community-post .post-comments .comment-reply input {
  width: 100%;
  padding: 0.8rem;
  /* 增加内边距 */
  border: 1px solid #eaeaea;
  border-radius: 2rem;
  outline: none;
  font-size: 0.95rem;
  /* 稍大 */
}
/* 响应式调整 */
@media (max-width: 992px) {
  .community-container {
    max-width: 800px;
  }
}
@media (max-width: 768px) {
  .community-container {
    max-width: 95%;
    padding: 0 1rem;
  }
  .post-images {
    grid-template-columns: 1fr !important;
  }
  .post-images img {
    height: 12rem !important;
  }
  .community-post {
    padding: 1.2rem;
  }
}
@media (max-width: 480px) {
  .post-creator {
    flex-direction: column;
    align-items: flex-start;
  }
  .post-creator .creator-avatar {
    margin-bottom: 1rem;
  }
  .post-creator .creator-input {
    width: 100%;
    margin-bottom: 1rem;
  }
  .post-creator .publish-btn {
    width: 100%;
    margin-left: 0;
  }
  .post-footer button {
    margin-right: 1.5rem;
  }
}
