/**
 * 我的帖子页面样式
 * 按设计图：白底、标题深灰粗体、描述较浅灰、元数据浅灰小字、删除/编辑与内容区一体（在左侧栏内）
 */

.mypost-main {
  flex: 1;
  min-width: 0;
}



/* 头部：标题 + 筛选 */
.mypost-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
}

/* 与 species-search-results__toolbar 共用头部布局；筛选为物种检索同款样式与交互 */
.mypost-header.species-search-results__toolbar {
  margin-bottom: 28px;
}

.mypost-title {
  font-size: 30px;
  font-weight: var(--font-weight-bold);
  color: #333333;
  margin: 0;
  line-height: 1.3;
}

/* 帖子列表 */
.mypost-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mypost-item {
  border-bottom: 1px solid #E8EAED;
  padding-bottom: 24px;
  margin-bottom: 24px;
}

.mypost-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* 卡片主体：左侧内容（含标题、描述、元数据+操作）+ 右侧缩略图，左右间隔 24px */
.mypost-item__body {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.mypost-item__content {
  flex: 1;
  min-width: 0;
}

/* 标题：PingFang SC 500 18px #1F2329 25px 左对齐，与描述间距 10px */
.mypost-item__title {
  font-family: "PingFang SC", "PingFang SC", sans-serif;
  font-weight: 500;
  font-size: 18px;
  color: #1F2329;
  line-height: 25px;
  text-align: left;
  font-style: normal;
  text-transform: none;
  margin: 0 0 10px 0;
}

/* 描述：PingFang SC 400 14px #646A73 24px 两端对齐，与下方功能区域间距 10px */
.mypost-item__summary {
  font-family: "PingFang SC", "PingFang SC", sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #646A73;
  line-height: 24px;
  text-align: justify;
  font-style: normal;
  text-transform: none;
  margin: 0 0 10px 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 元数据行：评论、浏览、时间 PingFang SC 400 14px #98A4B7 20px 左对齐 */
.mypost-item__meta {
  font-family: "PingFang SC", "PingFang SC", sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #98A4B7;
  line-height: 20px;
  text-align: left;
  font-style: normal;
  text-transform: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.mypost-meta__stat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.mypost-meta__icon {
  flex-shrink: 0;
  opacity: 0.85;
}

.mypost-meta__date {
  margin-right: auto;
}

.mypost-item__actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* 删除/编辑：与元数据同字体 14px，深色可点 */
.mypost-action {
  font-family: "PingFang SC", "PingFang SC", sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #354052;
  text-decoration: none;
}

.mypost-action:hover {
  text-decoration: underline;
}

.mypost-action__icon {
  flex-shrink: 0;
}

/* 右侧缩略图：与左侧内容同一行，不单独占下方 */
.mypost-item__thumb {
  flex-shrink: 0;
  width: 230px;
  height: 140px;
  border-radius: 4px;
  overflow: hidden;
  background: #F0F0F0;
  border: 1px solid #E8EAED;
}

.mypost-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

