/* ===== 阶段二：发帖 / 详情 / 评论 ===== */

/* 悬浮发帖按钮 */
.fab {
  position: fixed;
  right: 18px;
  bottom: calc(74px + env(safe-area-inset-bottom));
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 0;
  background: #2B5CE7;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(43, 92, 231, .38);
  cursor: pointer;
  z-index: 120;
  display: flex;
  padding: 0 0 3px 0;
}
.fab:active { transform: scale(.94); }

/* 文字按钮 */
.txtbtn {
  background: none; border: 0; padding: 6px 4px;
  font-size: 14px; color: #5A6474; cursor: pointer;
  font-family: inherit;
}
.txtbtn.primary { color: #2B5CE7; font-weight: 700; }
.txtbtn:disabled { opacity: .5; }

/* 发帖栏 */
.compose-bar, .backrow {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0 10px;
}
.backrow { justify-content: flex-start; }

/* 输入 */
.ctitle {
  width: 100%; border: 0; outline: none;
  font-size: 16px; font-weight: 700; padding: 4px 0 8px;
  font-family: inherit; background: transparent;
  border-bottom: 1px solid #F3F5F7;
}
.cbody {
  width: 100%; border: 1px solid #E3E7ED; border-radius: 10px;
  padding: 10px 12px; font-size: 14.5px; font-family: inherit;
  outline: none; resize: vertical; background: #fff;
  line-height: 1.6; margin-top: 10px;
}
.cbody:focus { border-color: #2B5CE7; }
.sendrow { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }

/* 详情页 */
.detmeta {
  display: flex; gap: 14px;
  font-size: 12px; color: #9AA3AF;
  margin: 10px 0 2px;
}
.dettitle {
  font-size: 18px; font-weight: 800; line-height: 1.4;
  margin: 8px 0 6px;
}
.detbody {
  font-size: 15px; color: #333A45; line-height: 1.75;
  padding-bottom: 6px; word-break: break-word;
}

.disc-title, .disctitle {
  font-size: 15px; font-weight: 700;
  margin: 18px 0 10px;
}

/* 评论 */
.cmt {
  background: #fff; border-radius: 8px;
  padding: 12px 14px; margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.cbody-txt {
  font-size: 14px; color: #333A45; line-height: 1.65;
  margin: 7px 0 6px 36px; word-break: break-word;
}
.cact { display: flex; gap: 16px; margin-left: 36px; }
.replies {
  margin: 9px 0 0 36px;
  padding: 9px 11px;
  background: #F7F8FA;
  border-radius: 7px;
}
.replyitem + .replyitem { margin-top: 9px; padding-top: 9px; border-top: 1px solid #EDEFF2; }
.rbody { font-size: 13.5px; color: #444B56; line-height: 1.6; margin-top: 4px; }
.ret { font-size: 11.5px; color: #2B5CE7; }

.replybox { margin: 9px 0 0 36px; }
.replybox .cbody { margin-top: 0; }
/* ===== 首页帖子排序切换按钮 ===== */
.sort-bar {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin: -6px 0 14px 0;
}
.sort-btn {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 14px;
  border-radius: 15px;
  border: 1px solid #E3E7ED;
  background: #F7F9FC;
  color: #2B5CE7;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  line-height: 1;
  cursor: pointer;
  transition: background .16s, border-color .16s, transform .12s;
  -webkit-tap-highlight-color: transparent;
}
.sort-btn:active {
  background: #EDF2FE;
  border-color: #C9D8FA;
  transform: scale(.96);
}
.sort-btn .sort-cur { line-height: 1; }

.sort-btn .sort-swap {
  display: inline-block;
  margin-left: 5px;
  font-size: 13px;
  line-height: 1;
  opacity: .72;
  transition: transform .25s ease;
}
.sort-btn:active .sort-swap {
  transform: rotate(180deg);
}
