/* ============================================================
   村级论坛 · 深色电影感样式（与全局高级感规范一致）
   ============================================================ */

/* ---------- 版块网格 ---------- */
.forum-board-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 60px;
}
.forum-board-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: #1a1a24;
  border: 1px solid #2a2a38;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s ease, border-color 0.3s ease;
  will-change: transform;
}
.forum-board-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  border-color: #2d8659;
}
.forum-board-card .fbc-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.5;
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.forum-board-card:hover .fbc-img {
  opacity: 0.7;
  transform: scale(1.03);
}
.forum-board-card .fbc-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 15, 20, 0.92) 0%, rgba(15, 15, 20, 0.45) 55%, transparent 100%);
}
.forum-board-card.noimg {
  background: linear-gradient(160deg, #1a1a24 0%, #10101a 100%);
}
.fbc-no {
  position: absolute;
  top: 20px;
  right: 22px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 15px;
  letter-spacing: 2px;
  color: rgba(201, 169, 110, 0.7);
}
.fbc-name {
  position: relative;
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 2px;
  color: #ffffff;
  line-height: 1.3;
}
.fbc-name::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: #2d8659;
  margin-bottom: 14px;
}
.fbc-intro {
  position: relative;
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.8;
  color: #888896;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fbc-meta {
  position: relative;
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #888896;
}
.fbc-meta .cnt {
  color: #c9a96e;
}

/* ---------- 帖子卡片（列表） ---------- */
.post-list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.post-card {
  display: flex;
  gap: 24px;
  padding: 24px;
  background: #1a1a24;
  border: 1px solid #2a2a38;
  border-radius: 8px;
  transition: background 0.3s ease, transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s ease;
}
.post-card:hover {
  background: #22222e;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}
.post-card .pc-cover {
  flex: 0 0 200px;
  height: 132px;
  border-radius: 4px;
  overflow: hidden;
  background: #10101a;
}
.post-card .pc-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.post-card:hover .pc-cover img {
  transform: scale(1.04);
}
.post-card .pc-noimg {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  letter-spacing: 4px;
  color: #3a3a48;
  font-size: 22px;
}
.post-card .pc-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.pc-title {
  font-size: 18px;
  font-weight: 400;
  color: #ffffff;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pc-title:hover { color: #2d8659; }
.pc-excerpt {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.8;
  color: #888896;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pc-meta {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: #888896;
}
.pc-meta .avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: -8px;
}
.pc-meta a.name { color: #c8c8d0; }
.pc-meta a.name:hover { color: #2d8659; }
.pc-meta .badge-villager { font-size: 11px; }
.pc-stats { margin-left: auto; display: flex; gap: 16px; color: #666674; }
.pc-stats svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }
.pc-top {
  display: inline-block;
  font-size: 11px;
  color: #c9a96e;
  border: 1px solid rgba(201, 169, 110, 0.5);
  padding: 1px 8px;
  border-radius: 4px;
  margin-right: 8px;
  vertical-align: 2px;
}

/* ---------- 热帖横向卡 ---------- */
.hot-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.hot-card {
  padding: 24px;
  background: #1a1a24;
  border: 1px solid #2a2a38;
  border-radius: 8px;
  display: flex;
  gap: 16px;
  transition: background 0.3s ease, transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.hot-card:hover { background: #22222e; transform: translateY(-3px); }
.hot-rank {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 34px;
  line-height: 1;
  color: #3a3a48;
}
.hot-card:nth-child(1) .hot-rank,
.hot-card:nth-child(2) .hot-rank,
.hot-card:nth-child(3) .hot-rank {
  color: #c9a96e;
}
.hot-card .hc-body { flex: 1; min-width: 0; }
.hot-card .hc-title {
  font-size: 15px;
  color: #ffffff;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hot-card .hc-title:hover { color: #2d8659; }
.hot-card .hc-meta { margin-top: 12px; font-size: 12px; color: #666674; display: flex; gap: 12px; }

/* ---------- 版块详情头 ---------- */
.board-head {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 40px 0 8px;
}
.board-head .bh-cover {
  flex: 0 0 200px;
  height: 120px;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
  border: 1px solid #2a2a38;
}
.board-head .bh-cover.noimg {
  background: linear-gradient(160deg, #1a1a24, #10101a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  letter-spacing: 3px;
  color: #3a3a48;
}
.board-head h1 { font-size: 32px; font-weight: 300; letter-spacing: 2px; }
.board-head .bh-intro { margin-top: 10px; font-size: 14px; color: #888896; line-height: 1.8; }
.board-head .bh-meta { margin-top: 14px; font-size: 13px; color: #666674; }

/* ---------- 排序 tabs ---------- */
.forum-tabs {
  display: flex;
  gap: 8px;
  margin: 32px 0 8px;
  border-bottom: 1px solid #2a2a38;
  padding-bottom: 0;
}
.forum-tabs a {
  padding: 10px 22px;
  font-size: 14px;
  color: #888896;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.forum-tabs a.active { color: #2d8659; border-bottom-color: #2d8659; }

/* ---------- 帖子详情 ---------- */
.post-detail-main {
  max-width: 860px;
  margin: 0 auto;
}
.pd-title {
  font-size: 34px;
  font-weight: 300;
  letter-spacing: 1px;
  line-height: 1.4;
  margin: 10px 0 24px;
}
.pd-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 28px;
  border-bottom: 1px solid #2a2a38;
  font-size: 13px;
  color: #888896;
}
.pd-content {
  padding: 34px 0;
  font-size: 16px;
  line-height: 2;
  color: #c8c8d0;
  white-space: pre-wrap;
  word-break: break-word;
}
.pd-gallery { display: grid; gap: 16px; margin-bottom: 34px; }
.pd-gallery img {
  width: 100%;
  border-radius: 6px;
  border: 1px solid #2a2a38;
}

/* ---------- 发帖页 ---------- */
.post-form-tip { font-size: 13px; color: #888896; margin-top: 8px; }

@media (max-width: 900px) {
  .forum-board-grid { grid-template-columns: repeat(2, 1fr); }
  .hot-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .forum-board-grid { grid-template-columns: 1fr; }
  .post-card { flex-direction: column; }
  .post-card .pc-cover { flex: none; width: 100%; height: 180px; }
  .board-head { flex-direction: column; align-items: flex-start; }
  .board-head .bh-cover { width: 100%; }
}

/* ---------- 帖文流（图文一体 + 内联评论点赞） ---------- */
.feed-list { display: flex; flex-direction: column; gap: 24px; margin-top: 48px; }
.feed-post {
  background: #1a1a24;
  border: 1px solid #2a2a38;
  border-radius: 8px;
  padding: 28px 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: box-shadow 0.3s ease, transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}
.feed-post:hover { box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5); }

/* 作者行 */
.fp-head { display: flex; align-items: center; gap: 14px; }
.fp-head .fp-avatar img.avatar { width: 42px; height: 42px; }
.fp-user { flex: 1; min-width: 0; }
.fp-name-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fp-name-row .name { font-size: 15px; font-weight: 400; color: #ffffff; }
.fp-name-row .name:hover { color: #2d8659; }
.fp-meta { font-size: 12px; color: #888896; margin-top: 4px; letter-spacing: 0.5px; }
.fp-meta .loc { color: #c9a96e; display: inline-flex; align-items: center; gap: 4px; }
.fp-meta .loc svg { width: 12px; height: 12px; }
.fp-meta .topic { color: #2d8659; }
.fp-report {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; color: #666674; background: transparent;
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
}
.fp-report svg { width: 15px; height: 15px; }
.fp-report:hover { color: #c8c8d0; background: #22222e; }

/* 正文：标题 + 文字 + 图片混排 */
.fp-body { padding: 18px 0 4px; }
.fp-title {
  display: block;
  font-size: 20px; font-weight: 400; color: #ffffff;
  line-height: 1.45; letter-spacing: 0.5px;
  transition: color 0.3s ease;
}
.fp-title:hover { color: #2d8659; }
.fp-content {
  margin-top: 12px;
  font-size: 15px; line-height: 1.9; color: #c8c8d0;
  white-space: pre-wrap; word-break: break-word;
}
.fp-imgs { display: grid; gap: 12px; margin-top: 18px; }
.fp-imgs.count-1 { grid-template-columns: 1fr; }
.fp-imgs.count-1 .fp-img { max-width: 640px; }
.fp-imgs.count-2 { grid-template-columns: repeat(2, 1fr); }
.fp-imgs.count-3 { grid-template-columns: repeat(3, 1fr); }
.fp-img {
  display: block; overflow: hidden;
  border-radius: 4px; border: 1px solid #2a2a38;
  background: #1a1a24;
  min-height: 120px;
}
.fp-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s ease;
  opacity: 0;
}
.fp-img img.loaded { opacity: 1; }
.fp-img:hover img { transform: scale(1.02); }

/* 互动条 */
.fp-actions {
  display: flex; align-items: center; gap: 30px;
  padding: 16px 0 0; margin-top: 6px;
  border-top: 1px solid #2a2a38;
}
.fp-act {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; color: #888896;
  background: none; border: none; cursor: pointer;
  padding: 6px 4px;
  transition: color 0.3s var(--ease);
}
.fp-act svg { width: 17px; height: 17px; }
.fp-act:hover { color: #c8c8d0; }
.fp-act.active-heart { color: #e05555; }
.fp-act.active-star { color: #c9a96e; }
.fp-act .num { font-family: 'Montserrat', sans-serif; }
.fp-read {
  margin-left: auto;
  font-size: 13px; color: #2d8659;
  transition: color 0.3s ease;
}
.fp-read:hover { color: #36a36c; }

/* 内联评论区 */
.fp-comments { margin-top: 8px; padding-top: 4px; }
.fp-comments.collapsed { display: none; }
.fp-comments .comment-list { margin-top: 8px; }
.comment-empty { font-size: 13px; color: #666674; padding: 18px 4px; }
.fp-comments .comment-box { margin-top: 10px; }

@media (max-width: 768px) {
  .feed-post { padding: 22px 20px; }
  .fp-imgs.count-2, .fp-imgs.count-3 { grid-template-columns: 1fr; }
  .fp-actions { gap: 20px; }
  .fp-title { font-size: 18px; }
}
/* 动态流排序栏 */
.filter-tip {
  margin-left: auto;
  font-size: 13px;
  color: #666674;
  letter-spacing: 0.5px;
}
@media (max-width: 768px) { .filter-tip { display: none; } }