#fMomentsMessageBoard {
  background: var(--heo-card-bg);
  border-radius: 12px;
  box-shadow: var(--heo-shadow-border);
  border: var(--style-border);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Lato, Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  margin: 16px 0;
  padding: 16px;
  animation: slideInUp 0.6s ease-out;
}

.fMomentsUpdatedTime {
  text-align: center;
  padding: 8px 0;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--heo-border-color);
  font-size: 14px;
  color: var(--heo-secondtext);
  font-weight: 500;
}

.fMomentsStatsGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.fMomentsStatCard {
  background: linear-gradient(135deg, var(--heo-secondbg), var(--heo-mask-bg));
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--heo-border-color);
  position: relative;
  overflow: hidden;
}

.fMomentsStatCard::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--heo-main), var(--heo-blue));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.fMomentsStatCard:hover {
  transform: translateY(-2px);
  box-shadow: var(--heo-shadow-lightblack);
}

.fMomentsStatCard:hover::before {
  transform: scaleX(1);
}

.fMomentsStatIcon {
  font-size: 24px;
  margin-bottom: 8px;
}

.fMomentsStatNumber {
  font-size: 24px;
  font-weight: 700;
  color: var(--heo-fontcolor);
  margin-bottom: 4px;
  font-family: 'SAOUI', monospace;
}

.fMomentsStatLabel {
  font-size: 12px;
  color: var(--heo-secondtext);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

/* 控制面板 */
.fMomentsControlPanel {
  background: var(--heo-card-bg);
  border-radius: 16px;
  padding: 24px;
  margin: 20px 0;
  box-shadow: var(--heo-shadow-border);
  border: var(--style-border);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.fMomentsSearchBox {
  flex: 1;
  min-width: 250px;
  position: relative;
}

.fMomentsSearchInput {
  width: 100%;
  padding: 14px 16px 14px 44px;
  border: 2px solid var(--heo-border-color);
  border-radius: 28px;
  background: var(--heo-secondbg);
  color: var(--heo-fontcolor);
  font-size: 14px;
  transition: all 0.3s ease;
  font-family: inherit;
}

.fMomentsSearchInput:focus {
  outline: none;
  border-color: var(--heo-main);
  box-shadow: 0 0 0 3px rgba(var(--heo-main-rgb), 0.1);
}

.fMomentsSearchIcon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--heo-secondtext);
  font-size: 16px;
}

.fMomentsFilterGroup {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.fMomentsSelect {
  padding: 12px 16px;
  border: 2px solid var(--heo-border-color);
  border-radius: 24px;
  background: var(--heo-secondbg);
  color: var(--heo-fontcolor);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 130px;
  font-family: inherit;
}

.fMomentsSelect:focus {
  outline: none;
  border-color: var(--heo-main);
  box-shadow: 0 0 0 3px rgba(var(--heo-main-rgb), 0.1);
}

.fMomentsToggle {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--heo-fontcolor);
  font-weight: 500;
}

.fMomentsSwitch {
  position: relative;
  width: 52px;
  height: 28px;
  background: var(--heo-border-color);
  border-radius: 28px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.fMomentsSwitch.active {
  background: var(--heo-main);
}

.fMomentsSwitch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 24px;
  height: 24px;
  background: white;
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.fMomentsSwitch.active::after {
  transform: translateX(24px);
}

/* 显示数量状态 */
.fMomentsDisplayStatus {
  background: var(--heo-card-bg);
  border-radius: 12px;
  padding: 16px 24px;
  margin: 20px 0;
  box-shadow: var(--heo-shadow-border);
  border: var(--style-border);
  text-align: center;
  font-size: 14px;
  color: var(--heo-secondtext);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.fMomentsDisplayInfo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fMomentsDisplayCount {
  font-weight: 600;
  color: var(--heo-main);
}

/* 加载状态 */
.fMomentsLoading {
  text-align: center;
  padding: 60px 20px;
  background: var(--heo-card-bg);
  border-radius: 16px;
  margin: 20px 0;
  box-shadow: var(--heo-shadow-border);
  border: var(--style-border);
}

.fMomentsLoadingSpinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--heo-border-color);
  border-top: 4px solid var(--heo-main);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 16px;
}

.fMomentsLoadingText {
  color: var(--heo-secondtext);
  font-size: 16px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 瀑布流布局 */
#fmomentsContainer {
  font-family: 'SAOUI', -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Lato, Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin: 20px 0;
  min-height: 200px;
}

.fMomentsArticleItem {
  background: var(--heo-card-bg);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--heo-shadow-border);
  border: var(--style-border);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: fadeInUp 0.6s ease-out forwards;
  height: 240px; /* 固定总高度: 72px(header) + 120px(content) + 48px(footer) */
  display: flex;
  flex-direction: column;
}

.fMomentsArticleItem:hover {
  transform: translateY(-6px);
  box-shadow: var(--heo-shadow-lightblack);
}

.fMomentsArticleHeader {
  padding: 16px;
  border-bottom: 1px solid var(--heo-border-color);
  display: flex;
  align-items: center;
  gap: 12px;
  height: 72px; /* 固定高度 */
  overflow: hidden; /* 隐藏超出部分 */
}

.fMomentsAvatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.fMomentsAvatar:hover {
  transform: scale(1.1);
}

.fMomentsAuthorInfo {
  flex: 1;
}

.fMomentsAuthorName {
  font-size: 14px;
  font-weight: 600;
  color: var(--heo-fontcolor);
  margin-bottom: 2px;
}

.fMomentsPublishTime {
  font-size: 12px;
  color: var(--heo-secondtext);
}

.fMomentsArticleContent {
  padding: 16px;
  height: 120px; /* 固定高度 */
  overflow: hidden; /* 隐藏超出部分 */
  display: flex;
  flex-direction: column;
}

.fMomentsArticleTitle {
  font-size: 16px;
  font-weight: 600;
  color: var(--heo-fontcolor);
  line-height: 1.4;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-decoration: none;
  transition: color 0.3s ease;
  flex-shrink: 0; /* 防止标题被压缩 */
}

.fMomentsArticleTitle:hover {
  color: var(--heo-main);
}

.fMomentsArticleDescription {
  font-size: 14px;
  color: var(--heo-secondtext);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1; /* 占用剩余空间 */
}

.fMomentsArticleFooter {
  padding: 12px 16px;
  border-top: 1px solid var(--heo-border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--heo-secondtext);
  height: 48px; /* 固定高度 */
  overflow: hidden; /* 隐藏超出部分 */
  flex-shrink: 0; /* 防止被压缩 */
}

/* 加载更多按钮 */
#fmomentsMoreBtn {
  width: 100%;
  max-width: 400px;
  height: 54px;
  margin: 30px auto;
  background: linear-gradient(135deg, var(--heo-main), var(--heo-blue));
  color: white;
  border: none;
  border-radius: 27px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(var(--heo-main-rgb), 0.3);
  font-family: inherit;
}

#fmomentsMoreBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(var(--heo-main-rgb), 0.4);
}

#fmomentsMoreBtn:disabled {
  background: var(--heo-border-color);
  color: var(--heo-secondtext);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.fMomentsNoMore {
  text-align: center;
  padding: 40px 20px;
  color: var(--heo-secondtext);
  font-size: 16px;
  background: var(--heo-card-bg);
  border-radius: 16px;
  border: 2px dashed var(--heo-border-color);
  margin: 20px 0;
}

.fMomentsNoMore i {
  font-size: 48px;
  color: var(--heo-main);
  margin-bottom: 16px;
  display: block;
}

/* 错误状态 */
.fMomentsErrorState {
  text-align: center;
  padding: 60px 20px;
  color: var(--heo-secondtext);
  background: var(--heo-card-bg);
  border-radius: 16px;
  border: 2px dashed #ff6b6b;
  margin: 20px 0;
}

.fMomentsErrorState i {
  font-size: 64px;
  color: #ff6b6b;
  margin-bottom: 20px;
  display: block;
}

.fMomentsErrorState h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--heo-fontcolor);
}

.fMomentsRetryBtn {
  margin-top: 20px;
  padding: 12px 24px;
  background: var(--heo-main);
  color: white;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

.fMomentsRetryBtn:hover {
  background: var(--heo-blue);
  transform: translateY(-2px);
}

/* 空状态 */
.fMomentsEmptyState {
  text-align: center;
  padding: 60px 20px;
  color: var(--heo-secondtext);
  background: var(--heo-card-bg);
  border-radius: 16px;
  border: 2px dashed var(--heo-border-color);
  margin: 20px 0;
}

.fMomentsEmptyState i {
  font-size: 64px;
  color: var(--heo-border-color);
  margin-bottom: 20px;
  display: block;
}

.fMomentsEmptyState h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--heo-fontcolor);
}

.fMomentsEmptyState p {
  font-size: 14px;
  line-height: 1.6;
}

/* 响应式设计 */
@media (max-width: 768px) {
  #fmomentsContainer {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .fMomentsControlPanel {
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
  }

  .fMomentsFilterGroup {
    justify-content: center;
  }

  /* 移动端 fMomentsMessageBoard 优化 */
  #fMomentsMessageBoard {
    padding: 12px;
    margin: 12px 0;
    border-radius: 10px;
  }

  .fMomentsUpdatedTime {
    padding: 6px 0;
    margin-bottom: 12px;
    font-size: 13px;
  }

  .fMomentsStatsGrid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .fMomentsStatCard {
    padding: 12px 8px;
    border-radius: 10px;
  }

  .fMomentsStatIcon {
    font-size: 20px;
    margin-bottom: 6px;
  }

  .fMomentsStatNumber {
    font-size: 20px;
    margin-bottom: 3px;
  }

  .fMomentsStatLabel {
    font-size: 11px;
    letter-spacing: 0.3px;
  }

  .fMomentsDisplayStatus {
    flex-direction: column;
    text-align: center;
  }

  .fMomentsArticleHeader {
    height: 68px;
    padding: 12px;
  }

  .fMomentsArticleContent {
    height: 110px;
    padding: 12px;
  }

  .fMomentsArticleFooter {
    height: 44px;
    padding: 10px 12px;
  }

  .fMomentsArticleItem {
    height: 222px; /* 调整后的总高度 */
  }
}

@media (max-width: 480px) {
  /* 超小屏幕的 fMomentsMessageBoard 优化 */
  #fMomentsMessageBoard {
    padding: 10px;
    margin: 10px 0;
  }

  .fMomentsUpdatedTime {
    padding: 4px 0;
    margin-bottom: 10px;
    font-size: 12px;
  }

  .fMomentsStatsGrid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .fMomentsStatCard {
    padding: 10px 6px;
    border-radius: 8px;
  }

  .fMomentsStatIcon {
    font-size: 18px;
    margin-bottom: 4px;
  }

  .fMomentsStatNumber {
    font-size: 18px;
    margin-bottom: 2px;
  }

  .fMomentsStatLabel {
    font-size: 10px;
    letter-spacing: 0.2px;
  }

  .fMomentsArticleFooter {
    height: 40px;
    padding: 8px 10px;
  }

  .fMomentsArticleContent {
    height: 100px;
    padding: 10px;
  }

  .fMomentsArticleHeader {
    height: 64px;
    padding: 10px;
  }

  .fMomentsArticleItem {
    height: 204px; /* 调整后的总高度 */
  }

  .fMomentsFilterGroup {
    flex-direction: column;
    align-items: stretch;
  }

  .fMomentsSelect {
    width: 100%;
  }

  .fMomentsSearchBox {
    min-width: 200px;
  }
}

/* 超小屏幕专用（小于360px） */
@media (max-width: 360px) {
  #fMomentsMessageBoard {
    padding: 8px;
  }

  .fMomentsStatsGrid {
    grid-template-columns: 1fr 1fr;
    gap: 4px;
  }

  .fMomentsStatCard {
    padding: 8px 4px;
  }

  .fMomentsStatIcon {
    font-size: 16px;
  }

  .fMomentsStatNumber {
    font-size: 16px;
  }

  .fMomentsStatLabel {
    font-size: 9px;
  }
}

/* 动画效果 */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fMomentsArticleItem:nth-child(2n) {
  animation-delay: 0.1s;
}

.fMomentsArticleItem:nth-child(3n) {
  animation-delay: 0.2s;
}

.fMomentsArticleItem:nth-child(4n) {
  animation-delay: 0.3s;
}