/* 论坛（X / Twitter 式公开广场）：时间线 / 帖子详情 / 个人主页 / 通知 / 发帖 */

/* ============ 首页骨架 ============ */
.forum-view{ background:var(--bg); position:relative; }
.forum-head{
  display:flex; align-items:center; gap:6px;
  padding:var(--head-top) 14px 4px;
  flex:0 0 auto;
}
.forum-head h1{ flex:1; font-size:17px; font-weight:600; margin:0; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.fm-ava-btn{
  width:44px; height:44px;
  border:none; background:transparent; padding:0;
  display:flex; align-items:center; justify-content:center;
  cursor:pointer;
}
.fm-ava-btn img{ width:32px; height:32px; border-radius:50%; object-fit:cover; background:var(--fill); }
.fm-logo{
  flex:1; display:flex; align-items:center; justify-content:center;
  color:var(--ink);
}
.fm-logo svg{ width:26px; height:26px; fill:none; stroke:currentColor; stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round; }
.fm-bell{ position:relative; }
.fm-bell svg{ width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }
.fm-bell-dot{
  position:absolute; top:10px; right:11px;
  width:8px; height:8px; border-radius:50%;
  background:var(--danger); border:2px solid var(--bg);
  display:none;
}
.fm-bell.has-new .fm-bell-dot{ display:block; }
.fm-tabs{
  display:flex;
  border-bottom:1px solid var(--hairline);
  flex:0 0 auto;
}
.fm-tab{
  flex:1; height:44px;
  border:none; background:transparent;
  color:var(--gray-2);
  font-family:inherit; font-size:14.5px; font-weight:600;
  cursor:pointer; position:relative;
  transition:color .2s;
}
.fm-tab.active{ color:var(--ink); }
.fm-tab.active::after{
  content:''; position:absolute; left:50%; bottom:0;
  width:52px; height:3px; border-radius:3px;
  background:var(--ink); transform:translateX(-50%);
}
.fm-body{
  flex:1; min-height:0;
  overflow-y:auto; overscroll-behavior:contain;
  padding-bottom:90px;
}
.fm-body::-webkit-scrollbar{ width:0; }
.fm-empty{
  padding:60px 36px; text-align:center;
  color:var(--gray-2); font-size:13.5px; line-height:1.8;
}
.fm-empty b{ display:block; font-size:18px; color:var(--ink); margin-bottom:6px; }

/* 浮动按钮：发帖 / 生成 */
.fm-fab{
  position:absolute; right:18px; bottom:18px;
  width:54px; height:54px; border-radius:50%;
  border:none; background:var(--ink); color:#fff;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 10px 26px -6px rgba(11,11,15,.4);
  cursor:pointer; z-index:5;
  transition:transform .2s var(--spring), opacity .2s;
}
.fm-fab:active{ transform:scale(.9); }
.fm-fab svg{ width:24px; height:24px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.fm-fab.gen{
  bottom:82px; width:44px; height:44px; right:23px;
  background:#fff; color:var(--ink);
  box-shadow:0 6px 18px -4px rgba(11,11,15,.25), 0 0 0 1px var(--hairline);
}
.fm-fab.gen svg{ width:20px; height:20px; }

/* ============ 帖子卡片 ============ */
.fm-post{
  display:flex; gap:10px;
  padding:12px 16px 6px;
  border-bottom:1px solid var(--hairline);
  cursor:pointer;
  transition:background .15s;
}
.fm-post:hover{ background:rgba(11,11,15,.015); }
.fm-post-wrap{ border-bottom:1px solid var(--hairline); }
.fm-post-wrap .fm-post{ border-bottom:none; }
.fm-rt-head{
  display:flex; align-items:center; gap:6px;
  padding:10px 16px 0 44px;
  font-size:12.5px; color:var(--gray-2); font-weight:600;
}
.fm-rt-head svg{ width:14px; height:14px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.fm-rt-head + .fm-post{ padding-top:4px; }
.fm-ava{
  flex:0 0 auto;
  width:42px; height:42px; border-radius:50%;
  object-fit:cover; background:var(--fill);
  cursor:pointer;
}
.fm-ava.sm{ width:32px; height:32px; }
.fm-main{ flex:1; min-width:0; }
.fm-line{
  display:flex; align-items:center; gap:4px;
  min-width:0; font-size:14.5px;
}
.fm-name{ font-weight:700; color:var(--ink); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width:0; cursor:pointer; }
.fm-handle, .fm-dot, .fm-time{ color:var(--gray-2); font-size:13.5px; white-space:nowrap; }
.fm-handle{ overflow:hidden; text-overflow:ellipsis; min-width:0; flex:0 1 auto; }
.fm-time{ flex:0 0 auto; }
.fm-more{
  margin-left:auto; flex:0 0 auto;
  width:28px; height:28px; border-radius:50%;
  border:none; background:transparent; color:var(--gray-2);
  display:flex; align-items:center; justify-content:center;
  cursor:pointer;
}
.fm-more:hover{ background:var(--fill); color:var(--ink); }
.fm-more svg{ width:18px; height:18px; fill:currentColor; }
.fm-replyto{ font-size:13px; color:var(--gray-2); margin-top:1px; }
.fm-replyto b{ font-weight:500; color:#1D9BF0; }
.fm-text{
  margin-top:2px;
  font-size:15px; line-height:1.55;
  color:var(--ink);
  white-space:pre-wrap; word-break:break-word;
}
.fm-tag, .fm-at{ color:#1D9BF0; }
.fm-imgs{
  display:grid; gap:3px;
  margin-top:10px;
  border-radius:16px; overflow:hidden;
}
.fm-imgs.n1{ grid-template-columns:1fr; }
.fm-imgs.n2, .fm-imgs.n4{ grid-template-columns:1fr 1fr; }
.fm-imgs.n3{ grid-template-columns:1fr 1fr; }
.fm-imgs.n3 img:first-child{ grid-row:span 2; height:100%; }
.fm-imgs img{
  width:100%; aspect-ratio:1; object-fit:cover; display:block;
  background:var(--fill);
}
.fm-imgs.n1 img{ aspect-ratio:auto; max-height:300px; }
.fm-quote{
  margin-top:10px;
  border:1px solid rgba(11,11,15,.12);
  border-radius:16px;
  padding:10px 12px;
  cursor:pointer;
  transition:background .15s;
}
.fm-quote:hover{ background:rgba(11,11,15,.02); }
.fm-quote .fm-line{ font-size:13.5px; }
.fm-quote .fm-line img{ width:20px; height:20px; border-radius:50%; object-fit:cover; }
.fm-quote .fm-text{ font-size:14px; margin-top:4px; }
.fm-quote .fm-imgs{ margin-top:8px; }
.fm-quote .fm-imgs img{ max-height:160px; }
.fm-quote-gone{ font-size:13px; color:var(--gray-2); padding:4px 0; }
.fm-acts{
  display:flex; align-items:center; justify-content:space-between;
  margin:6px -8px 0 -8px;
  max-width:420px;
}
.fm-act{
  display:flex; align-items:center; gap:3px;
  height:32px; padding:0 8px;
  border:none; background:transparent;
  color:var(--gray-2);
  font-family:var(--font-num); font-size:12.5px;
  border-radius:999px;
  cursor:pointer;
  transition:color .18s, background .18s, transform .18s var(--spring);
}
.fm-act:active{ transform:scale(.9); }
.fm-act svg{ width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.fm-act:hover{ background:var(--fill); color:var(--ink); }
.fm-act.on-like{ color:#F91880; }
.fm-act.on-like svg{ fill:currentColor; }
.fm-act.on-rt{ color:#00BA7C; }
.fm-act.on-bm{ color:#1D9BF0; }
.fm-act.on-bm svg{ fill:currentColor; }
.fm-act.views{ cursor:default; }
.fm-act.views:hover{ background:transparent; color:var(--gray-2); }

/* ============ 帖子详情 ============ */
.fp-body{ padding-bottom:12px; }
.fp-parent{ position:relative; }
.fp-parent .fm-post{ border-bottom:none; }
.fp-parent::after{
  content:''; position:absolute;
  left:36px; top:56px; bottom:-4px;
  width:2px; background:rgba(11,11,15,.1);
}
.fp-main{
  padding:8px 16px 4px;
  border-bottom:1px solid var(--hairline);
}
.fp-main .fp-author{ display:flex; align-items:center; gap:10px; }
.fp-main .fp-author .fm-ava{ width:44px; height:44px; }
.fp-main .fp-author .fm-name{ font-size:15.5px; display:block; }
.fp-main .fp-author .fm-handle{ display:block; }
.fp-main .fm-more{ margin-left:auto; }
.fp-main .fm-text{ font-size:18px; line-height:1.55; margin-top:12px; }
.fp-main .fm-quote{ margin-top:12px; }
.fp-time{
  margin-top:12px; padding-bottom:12px;
  font-size:13.5px; color:var(--gray-2);
  border-bottom:1px solid var(--hairline);
}
.fp-stats{
  display:flex; gap:18px;
  padding:10px 0;
  font-size:13.5px; color:var(--gray-2);
  border-bottom:1px solid var(--hairline);
}
.fp-stats b{ color:var(--ink); font-family:var(--font-num); font-weight:700; margin-right:3px; }
.fp-main .fm-acts{ margin-top:2px; max-width:none; justify-content:space-around; }
.fp-main .fm-act svg{ width:21px; height:21px; }
.fp-replies-title{
  padding:12px 16px 4px;
  font-size:13px; color:var(--gray-2); font-weight:600;
}
.fp-reply-row{
  flex:0 0 auto;
  display:flex; align-items:center; gap:10px;
  padding:10px 14px calc(12px + env(safe-area-inset-bottom));
  border-top:1px solid var(--hairline);
  background:var(--bg);
}
.fp-reply-row input{
  flex:1; min-width:0; height:40px;
  border:none; outline:none;
  background:var(--fill); border-radius:999px;
  padding:0 16px;
  font-family:inherit; font-size:14px; color:var(--ink);
}
.fp-reply-row input::placeholder{ color:var(--gray-3); }
.fm-post-btn{
  flex:0 0 auto;
  height:34px; padding:0 16px;
  border:none; border-radius:999px;
  background:var(--ink); color:#fff;
  font-family:inherit; font-size:14px; font-weight:700;
  cursor:pointer;
  transition:transform .18s var(--spring), opacity .2s;
}
.fm-post-btn:active{ transform:scale(.95); }
.fm-post-btn:disabled{ opacity:.4; cursor:default; }


/* ============ 个人主页 ============ */
.fu-head-title{ flex:1; min-width:0; display:flex; flex-direction:column; justify-content:center; }
.fu-head-title h1{ font-size:17px; line-height:1.2; margin:0; font-weight:600; }
.fu-head-title span{ font-size:12px; color:var(--gray-2); }
.fu-banner{
  height:120px; background:var(--fill);
  position:relative;
}
.fu-banner img{ width:100%; height:100%; object-fit:cover; display:block; }
.fu-top{
  display:flex; align-items:flex-end; justify-content:space-between;
  padding:0 16px;
  margin-top:-38px;
}
.fu-ava{
  width:78px; height:78px; border-radius:50%;
  border:4px solid var(--bg);
  object-fit:cover; background:var(--fill);
}
.fu-btn{
  height:36px; padding:0 18px;
  border-radius:999px;
  border:1px solid rgba(11,11,15,.22);
  background:var(--bg); color:var(--ink);
  font-family:inherit; font-size:14px; font-weight:700;
  cursor:pointer;
  transition:transform .18s var(--spring), background .18s;
  margin-bottom:6px;
}
.fu-btn:active{ transform:scale(.95); }
.fu-btn.following{ background:var(--ink); color:#fff; border-color:var(--ink); }
.fu-info{ padding:8px 16px 0; }
.fu-name{ font-size:20px; font-weight:800; line-height:1.2; }
.fu-handle{ font-size:14px; color:var(--gray-2); margin-top:1px; }
.fu-bio{ font-size:14.5px; line-height:1.6; margin-top:10px; white-space:pre-wrap; word-break:break-word; }
.fu-bio.empty{ color:var(--gray-3); }
.fu-meta{
  display:flex; align-items:center; gap:6px; flex-wrap:wrap;
  margin-top:8px;
  font-size:13px; color:var(--gray-2);
}
.fu-meta svg{ width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.fu-counts{ display:flex; gap:18px; margin-top:10px; font-size:13.5px; color:var(--gray-2); }
.fu-counts b{ color:var(--ink); font-family:var(--font-num); font-weight:700; margin-right:3px; }
.fu-tabs{ margin-top:12px; }

/* ============ 通知 ============ */
.fn-row{
  display:flex; gap:12px;
  padding:12px 16px;
  border-bottom:1px solid var(--hairline);
  cursor:pointer;
  transition:background .15s;
}
.fn-row:hover{ background:rgba(11,11,15,.015); }
.fn-row.unread{ background:rgba(29,155,240,.05); }
.fn-icon{
  flex:0 0 auto;
  width:30px; height:30px;
  display:flex; align-items:flex-start; justify-content:center;
  color:var(--gray-2);
}
.fn-icon svg{ width:24px; height:24px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.fn-icon.like{ color:#F91880; }
.fn-icon.like svg{ fill:currentColor; }
.fn-icon.rt{ color:#00BA7C; }
.fn-icon.reply, .fn-icon.follow, .fn-icon.quote{ color:#1D9BF0; }
.fn-main{ flex:1; min-width:0; }
.fn-main img{ width:30px; height:30px; border-radius:50%; object-fit:cover; background:var(--fill); }
.fn-text{ font-size:14px; margin-top:6px; line-height:1.5; }
.fn-text b{ font-weight:700; }
.fn-snip{
  margin-top:4px;
  font-size:13.5px; color:var(--gray-2);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.fn-time{ font-size:12px; color:var(--gray-3); margin-top:4px; }


/* ============ 发帖 / 回复 / 引用 ============ */
.fc-body{ padding:6px 16px 24px; }
.fc-ctx{ padding:4px 0 8px 52px; font-size:13.5px; color:var(--gray-2); }
.fc-ctx b{ color:#1D9BF0; font-weight:500; }
.fc-row{ display:flex; gap:10px; align-items:flex-start; }
.fc-text{
  flex:1; min-width:0;
  min-height:120px;
  border:none; outline:none; resize:none;
  background:transparent;
  padding:8px 0;
  font-family:inherit; font-size:18px; line-height:1.5;
  color:var(--ink);
}
.fc-text::placeholder{ color:var(--gray-3); }
.fc-imgs{
  display:grid; grid-template-columns:1fr 1fr; gap:6px;
  margin:4px 0 0 52px;
}
.fc-imgs:empty{ display:none; }
.fc-cell{ position:relative; border-radius:14px; overflow:hidden; background:var(--fill); aspect-ratio:1; }
.fc-cell img{ width:100%; height:100%; object-fit:cover; display:block; }
.fc-del{
  position:absolute; top:6px; right:6px;
  width:24px; height:24px; border-radius:50%;
  border:none; background:rgba(11,11,15,.7); color:#fff;
  font-size:16px; line-height:1; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
}
.fc-quote{ margin-left:52px; }
.fc-quote .fm-quote{ margin-top:8px; cursor:default; }
.fc-tools{
  display:flex; align-items:center; justify-content:space-between;
  margin:12px 0 0 52px;
  padding-top:10px;
  border-top:1px solid var(--hairline);
}
.fc-tool{
  width:36px; height:36px; border-radius:50%;
  border:none; background:transparent; color:#1D9BF0;
  display:flex; align-items:center; justify-content:center;
  cursor:pointer;
}
.fc-tool:hover{ background:rgba(29,155,240,.1); }
.fc-tool svg{ width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }
.fc-count{ font-family:var(--font-num); font-size:12.5px; color:var(--gray-2); }
.fc-count.over{ color:var(--danger); }
.fc-toggle{
  display:flex; align-items:center; gap:10px;
  margin-top:10px; padding-top:10px;
  border-top:1px solid var(--hairline);
  font-size:13px; color:var(--gray-1);
  cursor:pointer;
}
.fc-toggle input{ width:18px; height:18px; accent-color:var(--ink); margin:0; }

/* ============ 弹窗里的选项行 / 编辑资料 ============ */
.fm-opt{
  display:flex; align-items:center; gap:12px;
  width:100%; padding:14px 24px;
  border:none; background:none; cursor:pointer; text-align:left;
  font-family:inherit; font-size:15px; font-weight:600; color:var(--ink);
  transition:background .15s;
}
.fm-opt:hover{ background:rgba(11,11,15,.03); }
.fm-opt.danger{ color:var(--danger); }
.fm-opt svg{ width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; flex:0 0 auto; }
.fm-opt small{ display:block; font-size:12px; font-weight:400; color:var(--gray-2); margin-top:2px; }
.fe-banner{
  height:90px; border-radius:16px; overflow:hidden;
  background:var(--fill); position:relative; cursor:pointer;
}
.fe-banner img{ width:100%; height:100%; object-fit:cover; display:block; }
.fe-banner span{
  position:absolute; inset:0;
  display:flex; align-items:center; justify-content:center;
  color:#fff; font-size:12.5px; font-weight:600;
  background:rgba(11,11,15,.28);
}
.fe-textarea{
  width:100%; min-height:72px; margin-top:10px;
  border:none; outline:none; resize:none;
  background:var(--fill); border-radius:14px;
  padding:11px 14px;
  font-family:inherit; font-size:14px; line-height:1.6; color:var(--ink);
}
.fe-textarea::placeholder{ color:var(--gray-3); }

