/* 论坛（X / Twitter 式公开广场）：时间线 / 帖子详情 / 个人主页 / 通知 / 发帖 */

/* ============ 首页骨架 ============ */
/* 论坛用纯色底，不要套动态页的 FEED_COVER */
.forum-view{
  background:var(--bg);
  position:relative;
}
.forum-head{
  position:relative;
  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;
  flex:0 0 auto;
}
.fm-ava-btn img{ width:32px; height:32px; border-radius:50%; object-fit:cover; background:var(--fill); }
/* X 标志相对整条顶栏真正居中（左右宽度不等时不能靠 flex:1） */
.fm-logo{
  position:absolute;
  left:50%;
  top:calc(var(--head-top) + 22px);
  transform:translate(-50%, -50%);
  display:flex; align-items:center; justify-content:center;
  color:var(--ink); height:44px; width:44px;
  pointer-events:none;
}
.fm-logo svg{ width:24px; height:24px; fill:currentColor; stroke:none; display:block; }
.fm-head-right{ display:flex; align-items:center; gap:0; flex:0 0 auto; margin-left:auto; }
.fm-gen-btn svg{
  width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.7;
  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-comm-list-head{
  display:flex; align-items:center; justify-content:space-between;
  padding:10px 16px 4px;
  flex:0 0 auto;
}
.fm-comm-list-head[hidden]{ display:none; }
.fm-comm-list-head b{ font-size:15px; font-weight:700; color:var(--ink); }
.fm-comm-add{
  width:34px; height:34px; border-radius:50%;
  border:1px dashed var(--hairline); background:rgba(var(--tint-rgb),.04);
  color:var(--ink); display:flex; align-items:center; justify-content:center;
  cursor:pointer;
}
.fm-comm-add svg{ width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:2.2; stroke-linecap:round; }
.fm-comm-row{
  display:flex; align-items:center; gap:12px;
  width:100%; padding:14px 16px; text-align:left;
  border:none; border-bottom:1px solid var(--hairline);
  background:transparent; color:inherit; cursor:pointer;
  font-family:inherit;
  transition:background .15s;
}
@media (hover: hover) and (pointer: fine){
.fm-comm-row:hover{ background:rgba(var(--tint-rgb),.03); }
}

.fm-comm-row .tag{
  flex:0 0 auto; min-width:52px; height:36px; padding:0 12px;
  border-radius:10px;
  background:rgba(29,155,240,.12); color:#1D9BF0;
  font-size:13px; font-weight:800; letter-spacing:.02em;
  display:flex; align-items:center; justify-content:center;
}
.fm-comm-row .meta{ flex:1; min-width:0; }
.fm-comm-row .meta b{ display:block; font-size:15px; font-weight:700; color:var(--ink); }
.fm-comm-row .meta span{ display:block; font-size:12.5px; color:var(--gray-2); margin-top:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.fm-comm-row .chev{ color:var(--gray-3); font-size:18px; flex:0 0 auto; }
.fm-comm-head{
  display:flex; align-items:center; gap:10px;
  padding:10px 16px;
  border-bottom:1px solid var(--hairline);
  flex:0 0 auto;
}
.fm-comm-head[hidden]{ display:none; }
.fm-comm-back{
  width:32px; height:32px; border-radius:50%;
  border:none; background:transparent; color:var(--ink);
  display:flex; align-items:center; justify-content:center; cursor:pointer; flex:0 0 auto;
}
.fm-comm-back svg{ width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.fm-comm-info{ flex:1; min-width:0; }
.fm-comm-info b{ display:block; font-size:15px; font-weight:700; color:var(--ink); }
.fm-comm-info span{ display:block; font-size:12.5px; color:var(--gray-1); margin-top:2px; line-height:1.5; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.fm-comm-info span.dim{ color:var(--gray-3); }
.fm-comm-edit{
  flex:0 0 auto; height:30px; padding:0 14px; border-radius:999px;
  border:1px solid var(--hairline); background:var(--card); color:var(--ink);
  font-family:inherit; font-size:12.5px; font-weight:600; cursor:pointer;
}
/* 楼层号 / 标签 */
.fm-floor{ font-size:11.5px; color:var(--gray-3); font-family:var(--font-num); margin-top:1px; }
.fm-badges{ display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; }
.fm-badge{
  display:inline-flex; align-items:center;
  height:20px; padding:0 8px; border-radius:6px;
  font-size:11px; font-weight:700; letter-spacing:.02em;
  background:rgba(var(--tint-rgb),.06); color:var(--gray-1);
}
.fm-badge.nsfw{ background:rgba(249,24,128,.12); color:#F91880; }
.fm-badge.comm{ background:rgba(29,155,240,.12); color:#1D9BF0; cursor:pointer; }
.fm-badge.edited{ font-weight:500; }
.fm-badge.anon{ background:rgba(11,11,15,.08); color:var(--gray-1); }
/* NSFW 遮罩：只盖住图片，文字照常显示 */
.fm-nsfw{
  margin-top:10px;
  min-height:120px; border-radius:16px;
  background:
    linear-gradient(135deg, rgba(249,24,128,.10), rgba(29,155,240,.10)),
    repeating-linear-gradient(45deg, rgba(var(--tint-rgb),.05) 0 6px, transparent 6px 14px);
  border:1px solid var(--hairline);
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px;
  padding:18px 16px; text-align:center;
  cursor:pointer; user-select:none;
  -webkit-backdrop-filter:blur(18px); backdrop-filter:blur(18px);
}
.fm-nsfw svg{ width:26px; height:26px; fill:none; stroke:var(--gray-1); stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; margin-bottom:4px; }
.fm-nsfw b{ font-size:14px; color:var(--ink); }
.fm-nsfw span{ font-size:12.5px; color:var(--gray-2); line-height:1.5; }
.fm-nsfw em{ font-style:normal; font-size:12px; font-weight:600; color:#1D9BF0; margin-top:6px; }
.fm-quote .fm-nsfw{ min-height:80px; padding:12px; }
/* 详情页回复区标题 + 召唤路人 */
.fp-replies-title{
  display:flex; align-items:center; justify-content:space-between;
  padding:10px 16px 6px;
  font-size:13px; font-weight:600; color:var(--gray-1);
}
/* 楼中楼：挂在某条楼层评论底下 */
.fp-nested{
  margin:0 16px 4px 52px;
  padding:2px 0 6px 12px;
  border-left:2px solid var(--hairline);
}
.fp-nested .fm-post{
  padding:8px 0 8px 4px;
  border-bottom:none;
}
.fp-nested .fm-ava{ width:32px; height:32px; }
.fp-nested .fm-text{ font-size:14px; }
.fp-nested .fm-acts{ margin-top:4px; }
.fp-npc-btn{
  display:inline-flex; align-items:center; gap:5px;
  height:30px; padding:0 12px; border-radius:999px;
  border:1px solid var(--hairline); background:var(--card); color:var(--ink);
  font-family:inherit; font-size:12.5px; font-weight:600; cursor:pointer;
}
.fp-npc-btn svg{ width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }
/* 发帖页：社区下拉 / 谁来评论 */
.fc-field{
  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);
}
.fc-field-label{ flex:0 0 auto; }
.fc-select{
  flex:1; min-width:0; height:34px;
  border:none; outline:none; border-radius:10px;
  background:var(--fill); color:var(--ink);
  font-family:inherit; font-size:13.5px; padding:0 10px;
}
.fc-toggle span small{ display:block; font-size:11.5px; color:var(--gray-2); margin-top:1px; font-weight:400; }
.pick-head span small{ display:block; font-size:11px; color:var(--gray-2); margin-top:1px; font-weight:400; }
.fc-who .pick-head span small{ display:block; font-size:11px; color:var(--gray-2); margin-top:1px; font-weight:400; }
.center-card .fc-field{ margin-top:12px; }
.center-card .fc-toggle{ margin-top:10px; }
.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; }

/* 浮动按钮：发帖（AI 生成已挪到顶栏）
   底栏 position:absolute + z-index:20，fab 必须抬到 tabbar 上方，否则会被挡住点不到 */
.fm-fab{
  position:absolute; right:18px;
  bottom:calc(18px + var(--tabbar-h) + var(--tabbar-shift, 0px));
  width:54px; height:54px; border-radius:50%;
  border:none; background:var(--ink); color:var(--on-ink);
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 10px 26px -6px rgba(11,11,15,.4);
  cursor:pointer; z-index:15;
  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-post{
  display:flex; gap:10px;
  padding:12px 16px 6px;
  border-bottom:1px solid var(--hairline);
  cursor:pointer;
  transition:background .15s;
}
@media (hover: hover) and (pointer: fine){
.fm-post:hover{ background:rgba(var(--tint-rgb),.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;
}
@media (hover: hover) and (pointer: fine){
.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-text.fm-clamp{
  max-height: calc(1.55em * 3);
  overflow: hidden;
}
.fm-expand{
  display:inline-block;
  margin-top:4px;
  padding:0;
  border:0;
  background:none;
  color:#1D9BF0;
  font-family:inherit;
  font-size:14px;
  font-weight:600;
  cursor:pointer;
  line-height:1.4;
}
.fm-expand[hidden]{ display:none !important; }
@media (hover: hover) and (pointer: fine){
.fm-expand:hover{ text-decoration:underline; }
}
/* X 式翻译：译文 +「由 Canoe 翻译自…」 */
.fm-trans{
  margin-top:8px;
  padding-top:8px;
  border-top:1px solid rgba(29,155,240,.18);
}
.fm-trans-text{
  font-size:15px; line-height:1.55;
  color:var(--ink);
  white-space:pre-wrap; word-break:break-word;
}
.fm-trans-meta{
  margin-top:6px;
  font-size:13px;
  color:#1D9BF0;
  cursor:default;
}
.fm-tag, .fm-at{ color:#1D9BF0; }

/* @ 提及下拉 */
.fm-at-menu{
  position:fixed; z-index:1200;
  width:252px; max-height:220px; overflow-y:auto;
  background:var(--bg); color:var(--ink);
  border:1px solid var(--line, rgba(0,0,0,.08));
  border-radius:14px;
  box-shadow:0 10px 28px rgba(0,0,0,.14);
  padding:6px;
}
.fm-at-menu[hidden]{ display:none !important; }
.fm-at-item{
  display:flex; align-items:center; gap:10px;
  width:100%; border:none; background:transparent;
  padding:8px 10px; border-radius:10px;
  text-align:left; cursor:pointer;
  font-family:inherit; color:inherit;
}
.fm-at-item.on{ background:var(--fill); }
@media (hover: hover) and (pointer: fine){
.fm-at-item:hover{ background:var(--fill); }
}
.fm-at-item img{
  width:32px; height:32px; border-radius:50%;
  object-fit:cover; background:var(--fill); flex:0 0 auto;
}
.fm-at-meta{ display:flex; flex-direction:column; gap:2px; min-width:0; }
.fm-at-meta b{
  font-size:13.5px; font-weight:600;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.fm-at-meta small{
  font-size:11.5px; color:var(--muted, rgba(0,0,0,.45));
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.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;
}
@media (hover: hover) and (pointer: fine){
.fm-quote:hover{ background:rgba(var(--tint-rgb),.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; }
@media (hover: hover) and (pointer: fine){
.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; }
@media (hover: hover) and (pointer: fine){
.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(var(--tint-rgb),.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:var(--on-ink);
  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; z-index:0; overflow:hidden;
}
.fu-banner img{ width:100%; height:100%; object-fit:cover; display:block; position:relative; z-index:0; }
.fu-top{
  display:flex; align-items:flex-end; justify-content:space-between;
  padding:0 16px;
  margin-top:-38px;
  position:relative; z-index:2;
}
.fu-ava{
  width:78px; height:78px; border-radius:50%;
  border:4px solid var(--bg);
  object-fit:cover; background:var(--fill);
  position:relative; z-index:2;
}
.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:var(--on-ink); border-color:var(--ink); }
.fu-actions{ display:flex; gap:8px; align-items:center; margin-bottom:6px; }
.fu-actions .fu-btn{ margin-bottom:0; }
.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-tabs{
  display:flex; flex:0 0 auto;
  border-bottom:1px solid var(--hairline);
  background:var(--bg);
}
.fn-tab{
  flex:1; height:40px;
  border:none; background:transparent;
  color:var(--gray-2);
  font-family:inherit; font-size:13.5px; font-weight:600;
  cursor:pointer; position:relative;
}
.fn-tab.active{ color:var(--ink); }
.fn-tab.active::after{
  content:''; position:absolute; left:50%; bottom:0;
  width:28px; height:3px; border-radius:3px;
  background:var(--ink); transform:translateX(-50%);
}
.fn-row{
  display:flex; gap:12px;
  padding:12px 16px;
  border-bottom:1px solid var(--hairline);
  cursor:pointer;
  transition:background .15s;
}
@media (hover: hover) and (pointer: fine){
.fn-row:hover{ background:rgba(var(--tint-rgb),.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, .fn-icon.dm{ 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; }

/* ============ 论坛私信（IG DM） ============ */
.fdm-inbox{ display:flex; flex-direction:column; }
.fdm-inbox-head{
  padding:10px 16px 6px;
  font-size:20px; font-weight:800;
  letter-spacing:-.02em;
}
.fdm-search{
  margin:4px 16px 10px;
  height:38px; padding:0 14px;
  border:none; border-radius:999px;
  background:var(--fill);
  color:var(--ink);
  font-family:inherit; font-size:14px;
  outline:none;
}
.fdm-search::placeholder{ color:var(--gray-3); }
.fdm-row{
  display:flex; gap:12px; align-items:center;
  padding:12px 16px;
  border-bottom:1px solid var(--hairline);
  cursor:pointer;
  transition:background .12s;
}
@media (hover: hover) and (pointer: fine){
.fdm-row:hover{ background:rgba(var(--tint-rgb),.02); }
}

.fdm-row.unread .fdm-row-name,
.fdm-row.unread .fdm-row-last{ font-weight:700; color:var(--ink); }
.fdm-row img{
  flex:0 0 auto;
  width:52px; height:52px; border-radius:50%;
  object-fit:cover; background:var(--fill);
}
.fdm-row-main{ flex:1; min-width:0; }
.fdm-row-top{
  display:flex; align-items:baseline; gap:6px;
}
.fdm-row-name{
  font-size:15px; font-weight:700;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.fdm-row-handle{
  flex:1; min-width:0;
  font-size:13px; color:var(--gray-2); font-weight:400;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.fdm-row-time{
  flex:0 0 auto;
  font-size:13px; color:var(--gray-3);
}
.fdm-row-last{
  margin-top:2px;
  font-size:14px; color:var(--gray-2);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.fdm-row-dot{
  flex:0 0 auto;
  width:8px; height:8px; border-radius:50%;
  background:#0095F6;
}

.forum-dm-view{ display:flex; flex-direction:column; background:#fff; }
html[data-theme="dark"] .forum-dm-view{ background:var(--bg); }
.forum-dm-view .fdm-head{
  border-bottom:none;
  padding-bottom:6px;
  gap:2px;
}
.forum-dm-view .fdm-head .back-btn{
  width:40px; height:40px; flex:0 0 auto;
}
.forum-dm-view .fdm-head .back-btn svg{ width:22px; height:22px; stroke-width:2; }
.fdm-peer{
  flex:1; min-width:0;
  display:flex; align-items:center; gap:8px;
  border:none; background:transparent;
  padding:0; margin:0;
  text-align:left; cursor:pointer;
  color:inherit; font-family:inherit;
}
.fdm-peer img{
  width:28px; height:28px; border-radius:50%;
  object-fit:cover; background:var(--fill);
}
.fdm-peer b{
  font-size:15px; font-weight:650;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  letter-spacing:-.01em;
}
.fdm-head-acts{
  flex:0 0 auto;
  display:flex; align-items:center; gap:4px;
  margin-left:4px;
}
.fdm-head-ico{
  width:40px; height:40px;
  display:flex; align-items:center; justify-content:center;
  color:var(--ink);
}
.fdm-head-ico svg{
  width:22px; height:22px;
  fill:none; stroke:currentColor; stroke-width:1.7;
  stroke-linecap:round; stroke-linejoin:round;
}
.fdm-body{
  flex:1; min-height:0; overflow:auto;
  padding:4px 14px 10px;
  display:flex; flex-direction:column; gap:4px;
  background:#fff;
}
html[data-theme="dark"] .fdm-body{ background:var(--bg); }

/* 顶部对方简介卡 */
.fdm-intro{
  display:flex; flex-direction:column; align-items:center;
  padding:18px 16px 20px;
  text-align:center;
  gap:6px;
}
.fdm-intro-meta{
  font-size:12.5px; color:#8E8E8E; line-height:1.45;
}
.fdm-intro-profile{
  margin-top:6px;
  height:32px; padding:0 16px;
  border:none; border-radius:8px;
  background:#EFEFEF; color:#262626;
  font-family:inherit; font-size:13px; font-weight:600;
  cursor:pointer;
}
html[data-theme="dark"] .fdm-intro-profile{
  background:var(--fill); color:var(--ink);
}
.fdm-intro-profile:active{ opacity:.75; }

.fdm-day{
  align-self:center;
  margin:10px 0 6px;
  padding:0;
  border-radius:0;
  background:transparent;
  font-size:12px; color:#8E8E8E; font-weight:500;
}
.fdm-bubble-row{
  display:flex; flex-direction:column;
  max-width:78%;
  margin-top:2px;
  position:relative;
}
.fdm-bubble-row + .fdm-bubble-row.me,
.fdm-bubble-row + .fdm-bubble-row.other{ margin-top:2px; }
.fdm-bubble-row.me + .fdm-bubble-row.other,
.fdm-bubble-row.other + .fdm-bubble-row.me{ margin-top:8px; }
.fdm-bubble-row.me{ align-self:flex-end; align-items:flex-end; }
.fdm-bubble-row.other{ align-self:flex-start; align-items:flex-start; }
.fdm-bubble-row.has-react{ margin-bottom:10px; }

.fdm-reply-label{
  font-size:11.5px; color:#8E8E8E;
  margin:0 4px 3px;
}
.fdm-quote{
  margin-bottom:0;
  padding:8px 12px;
  border-radius:18px;
  border:1.5px solid #B3D9F7;
  background:transparent;
  max-width:100%;
  cursor:pointer;
  color:#4A90C5;
}
.fdm-bubble-row.me .fdm-quote{
  border-color:rgba(255,255,255,.55);
  color:rgba(255,255,255,.9);
}
.fdm-quote-who{ display:none; }
.fdm-quote-text{
  font-size:13.5px; color:inherit;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical;
  overflow:hidden; line-height:1.35;
}
.fdm-bubble-row .fdm-quote + .fdm-bubble-wrap{
  margin-top:-6px;
  position:relative;
}
.fdm-bubble-wrap{
  position:relative;
  max-width:100%;
}
.fdm-bubble{
  padding:9px 14px;
  font-size:15px; line-height:1.4;
  word-break:break-word;
  white-space:pre-wrap;
  -webkit-user-select:none; user-select:none;
  cursor:pointer;
}
.fdm-bubble-row.me .fdm-bubble{
  background:#0095F6; color:#fff;
  border-radius:22px 22px 6px 22px;
}
.fdm-bubble-row.other .fdm-bubble{
  background:#EFEFEF; color:#262626;
  border-radius:22px 22px 22px 6px;
}
html[data-theme="dark"] .fdm-bubble-row.other .fdm-bubble{
  background:var(--fill); color:var(--ink);
}
.fdm-react-badge{
  position:absolute;
  bottom:-8px;
  z-index:2;
  min-width:22px; height:22px;
  padding:0 5px;
  border-radius:999px;
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  box-shadow:0 1px 4px rgba(0,0,0,.12);
  font-size:13px; line-height:20px;
  text-align:center;
  pointer-events:none;
}
.fdm-bubble-row.me .fdm-react-badge{ right:6px; }
.fdm-bubble-row.other .fdm-react-badge{ left:6px; }
html[data-theme="dark"] .fdm-react-badge{
  background:var(--bg);
  border-color:var(--hairline);
}
.fdm-seen{
  margin-top:3px;
  margin-right:2px;
  font-size:11.5px; color:#8E8E8E;
}
.fdm-msg-time{ display:none; }
.fdm-typing{
  align-self:flex-start;
  margin-top:6px;
  padding:8px 14px;
  border-radius:18px;
  background:#EFEFEF;
  color:#8E8E8E;
  font-size:13px;
}
html[data-theme="dark"] .fdm-typing{ background:var(--fill); color:var(--gray-2); }

/* 长按菜单 */
.fdm-msg-menu{
  position:absolute;
  z-index:96;
  display:flex; flex-direction:column; gap:6px;
  padding:0;
  background:transparent;
  pointer-events:none;
  opacity:0;
  transform:scale(.9);
  transition:opacity .16s, transform .22s var(--spring, cubic-bezier(.2,.8,.2,1));
}
.fdm-msg-menu.show{
  opacity:1; pointer-events:auto; transform:none;
}
.fdm-msg-menu[hidden]{ display:none !important; }
.fdm-react-row{
  display:flex; align-items:center; gap:2px;
  padding:6px 8px;
  border-radius:999px;
  background:var(--bg);
  border:1px solid var(--hairline);
  box-shadow:0 8px 24px rgba(0,0,0,.14);
}
.fdm-react-row button{
  width:36px; height:36px;
  border:none; border-radius:50%;
  background:transparent;
  font-size:20px; line-height:1;
  cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  transition:background .12s, transform .12s;
}
.fdm-react-row button:active{ transform:scale(1.15); }
.fdm-react-row button.on{ background:rgba(0,149,246,.12); }
.fdm-menu-acts{
  align-self:center;
  display:flex;
  background:var(--ink);
  border-radius:14px;
  padding:4px;
  box-shadow:0 10px 30px rgba(0,0,0,.26);
}
.fdm-menu-acts button{
  border:none; background:transparent;
  color:var(--on-ink);
  font-family:inherit;
  font-size:12.5px;
  padding:8px 14px;
  border-radius:10px;
  cursor:pointer;
  white-space:nowrap;
}
.fdm-menu-acts button:active{ background:rgba(255,255,255,.18); }
.fdm-menu-acts button[data-fdm-mm="del"]{ color:#ff6b6b; }

.fdm-compose{
  flex:0 0 auto;
  padding:6px 10px calc(8px + env(safe-area-inset-bottom));
  border-top:none;
  background:#fff;
}
html[data-theme="dark"] .fdm-compose{ background:var(--bg); }
.fdm-quote-pending{
  margin:0 4px 8px;
  padding:8px 10px 8px 12px;
  border-radius:12px;
  border-left:3px solid #0095F6;
  background:rgba(0,149,246,.08);
  position:relative;
  font-size:13px; color:var(--gray-2);
}
.fdm-quote-pending b{ color:#0095F6; font-weight:700; }
.fdm-quote-pending .fdm-qp-x{
  position:absolute; right:6px; top:6px;
  width:24px; height:24px; border:none; border-radius:50%;
  background:transparent; color:var(--gray-2);
  font-size:16px; cursor:pointer; line-height:1;
}
.fdm-input-row{
  display:flex; align-items:center; gap:8px;
  padding:0;
  border:none;
  border-radius:0;
  background:transparent;
}
.fdm-input-row:focus-within{ border-color:transparent; }
.fdm-reply-btn{
  flex:0 0 auto;
  height:36px; min-width:52px; padding:0 12px;
  border:none; border-radius:999px;
  background:#0095F6; color:#fff;
  font-family:inherit; font-size:13.5px; font-weight:650;
  letter-spacing:.02em;
  cursor:pointer;
  display:flex; align-items:center; justify-content:center;
}
.fdm-reply-btn:disabled{ opacity:.4; cursor:default; }
.fdm-reply-btn:not(:disabled):active{ transform:scale(.96); }
#fdmInput{
  flex:1; min-width:0;
  height:42px; padding:0 16px;
  border:1px solid #DBDBDB; outline:none;
  border-radius:999px;
  background:transparent; color:var(--ink);
  font-family:inherit; font-size:15px;
}
html[data-theme="dark"] #fdmInput{ border-color:var(--hairline); }
#fdmInput::placeholder{ color:#8E8E8E; }
#fdmInput:focus{ border-color:#A8A8A8; }
.fdm-send{
  flex:0 0 auto;
  width:36px; height:36px; border:none; border-radius:50%;
  background:transparent; color:#0095F6;
  display:flex; align-items:center; justify-content:center;
  cursor:pointer;
}
.fdm-send:disabled{ opacity:.28; cursor:default; color:#8E8E8E; }
.fdm-send svg{
  width:20px; height:20px;
  fill:currentColor; stroke:none;
}

/* ============ 发帖 / 回复 / 引用 ============ */
.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-cell .fc-del{ z-index:2; }
.fc-cell.is-virtual{ background:var(--card); }
.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;
}
@media (hover: hover) and (pointer: fine){
.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;
}
@media (hover: hover) and (pointer: fine){
.fm-opt:hover{ background:rgba(var(--tint-rgb),.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); }

