/* v2 扩展模块样式：朋友圈 / 资料编辑 / 语音 / 通话 / 引用 / 转发 / 群详情 / 文件管理 */
:root { --x-radius:12px; }

/* ---------- 通用扩展弹层 ---------- */
.x-mask{position:fixed;inset:0;z-index:100100;background:rgba(16,30,22,.38);display:flex;align-items:center;justify-content:center;backdrop-filter:blur(2px)}
.x-dialog{background:var(--panel);border-radius:var(--x-radius);box-shadow:var(--shadow);display:flex;flex-direction:column;overflow:hidden;max-height:88vh}
.x-head{height:52px;flex:0 0 52px;display:flex;align-items:center;justify-content:space-between;padding:0 20px;font-size:15px;font-weight:600;border-bottom:1px solid var(--line-soft)}
.x-head button{font-size:20px;color:var(--muted);width:24px}
.x-body{flex:1;min-height:0;overflow-y:auto;padding:18px 20px}
.x-foot{height:58px;flex:0 0 58px;display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:0 20px;border-top:1px solid var(--line-soft)}
.x-label{font-size:12px;color:var(--muted);margin-bottom:6px;display:block}
.x-input{width:100%;height:34px;border:1px solid var(--line);border-radius:7px;background:var(--field);color:var(--ink);padding:0 10px;font-size:13px}
.x-textarea{width:100%;min-height:88px;border:1px solid var(--line);border-radius:7px;background:var(--field);color:var(--ink);padding:10px;font-size:13px;line-height:20px;resize:vertical}
.x-note{font-size:11px;color:var(--faint);line-height:20px}
.x-row{display:flex;align-items:center;justify-content:space-between;padding:10px 0;border-bottom:1px solid var(--line-soft);font-size:13px}
.x-row:last-child{border-bottom:none}
.x-switch{width:38px;height:22px;border-radius:11px;background:var(--line);position:relative;cursor:pointer;transition:background .18s}
.x-switch::after{content:"";position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:8px;background:#FFF;transition:left .18s;box-shadow:0 1px 3px rgba(0,0,0,.2)}
.x-switch.on{background:var(--brand)}
.x-switch.on::after{left:19px}
.x-chip{display:inline-flex;align-items:center;justify-content:center;height:28px;padding:0 12px;border-radius:7px;background:var(--field);color:var(--muted);font-size:12px;cursor:pointer;border:1px solid transparent}
.x-chip.active{background:var(--brand-soft);border-color:var(--brand);color:var(--brand-strong);font-weight:600}
.x-chip-row{display:flex;gap:8px;flex-wrap:wrap}
.x-empty{text-align:center;color:var(--faint);font-size:12px;padding:28px 12px;line-height:2}
.x-check-list{max-height:230px;overflow-y:auto;border:1px solid var(--line);border-radius:8px;margin-top:6px}
.x-check-row{display:flex;align-items:center;gap:10px;padding:9px 10px;border-bottom:1px solid var(--line-soft);cursor:pointer;font-size:13px}
.x-check-row:last-child{border-bottom:none}
.x-check-row:hover{background:var(--list-hover)}
.x-check-row input{width:15px;height:15px;accent-color:var(--brand);cursor:pointer}
.x-check-row span{flex:1;min-width:0}
.x-check-row small{color:var(--faint);font-size:11px}
.x-tag-sel{height:28px;min-width:96px;border:1px solid var(--line);border-radius:6px;background:var(--field);color:var(--ink);font-size:12px;padding:0 6px;cursor:pointer}
.x-thumb{width:64px;height:64px;border-radius:8px;object-fit:cover;background:var(--field);border:1px solid var(--line-soft)}

/* ---------- 存储空间管理（v3.2.14） ---------- */
.x-st-sum{font-size:13px;color:var(--ink);padding:2px 0 10px}
.x-st-sum b{color:var(--brand-strong);font-weight:600}
.x-st-row{display:flex;align-items:center;min-height:42px;border-bottom:1px solid var(--line-soft);font-size:13px}
.x-st-row:last-of-type{border-bottom:none}
.x-st-row label{display:flex;align-items:center;gap:10px;flex:1;min-width:0;cursor:pointer}
.x-st-row.locked label{cursor:default}
.x-st-row.locked .x-st-name,.x-st-row.locked .x-st-meta{color:var(--faint)}
.x-st-ck{width:15px;height:15px;accent-color:var(--brand);cursor:pointer}
.x-st-name{flex:none;font-size:13px;color:var(--ink)}
.x-st-meta{margin-left:auto;font-size:12px;color:var(--muted)}
.x-st-sec{font-size:12px;color:var(--faint);padding:12px 0 4px}
.x-st-danger{color:#E34B4B;border-color:#F3C8C8}
.x-st-danger:hover{background:#FDECEC}

/* ---------- 头像 / 封面裁剪 ---------- */
.x-crop{width:460px}
.x-crop-stage{width:420px;height:280px;background:#121613;border-radius:8px;overflow:hidden;position:relative;display:flex;align-items:center;justify-content:center;cursor:grab;touch-action:none}
.x-crop-stage:active{cursor:grabbing}
.x-crop-stage.wide{height:236px}
.x-crop-stage img{position:absolute;max-width:none;max-height:none;user-select:none;pointer-events:none;transform-origin:center center}
.x-crop-frame{position:absolute;border:2px solid #FFF;box-shadow:0 0 0 9999px rgba(0,0,0,.45);pointer-events:none;border-radius:2px}
.x-crop-frame.round{border-radius:50%}
.x-crop-row{display:flex;align-items:center;gap:10px;margin-top:14px;font-size:12px;color:var(--muted)}
.x-crop-row input[type=range]{flex:1}
.x-crop-preview{width:64px;height:64px;border-radius:8px;object-fit:cover;border:1px solid var(--line)}

/* ---------- 个人资料 ---------- */
.x-profile{width:420px}
.x-pf-top{display:flex;align-items:center;gap:16px;padding-bottom:16px;border-bottom:1px solid var(--line-soft)}
.x-pf-avatar{width:72px;height:72px;border-radius:6px;object-fit:cover;background:var(--field);cursor:pointer;border:2px solid var(--line)}
.x-pf-avatar:hover{border-color:var(--brand)}
.x-pf-name{font-size:17px;font-weight:600}
.x-pf-sub{font-size:12px;color:var(--muted);margin-top:4px}
.x-pf-btn{margin-left:auto}

/* 个人信息 · 主流分组列表 */
.x-pf-list{margin:-2px -4px}
.x-pf-line{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 6px;border-bottom:1px solid var(--line-soft);cursor:pointer;transition:background .16s}
.x-pf-line:last-child{border-bottom:none}
.x-pf-line:hover{background:var(--list-hover)}
.x-pf-k{font-size:14px;color:var(--ink);flex:none}
.x-pf-v{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--muted);min-width:0}
.x-pf-v b.x-pf-strong{font-weight:400;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.x-pf-ro{color:var(--faint)}
.x-pf-arrow{font-style:normal;color:var(--faint);font-size:15px;line-height:1}
.x-pf-av{width:52px;height:52px;border-radius:4px;object-fit:cover;display:block;background:var(--field);text-align:center;line-height:52px;color:#fff;font-size:18px}
img.x-pf-av{line-height:0}

/* ---------- 全局过渡动效 ---------- */
@keyframes xFadeIn{from{opacity:0}to{opacity:1}}
@keyframes xPopIn{from{opacity:0;transform:translateY(12px) scale(.972)}to{opacity:1;transform:none}}
@keyframes xSlideInRight{from{opacity:0;transform:translateX(22px)}to{opacity:1;transform:none}}
@keyframes xBubbleIn{from{opacity:0;transform:translateY(7px) scale(.97)}to{opacity:1;transform:none}}
@keyframes xToastIn{from{opacity:0;transform:translate(-50%,10px)}to{opacity:1;transform:translate(-50%,0)}}
@keyframes xViewIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes xPanelIn{from{opacity:0}to{opacity:1}}

/* 遮罩 / 弹窗 / 抽屉 */
.x-mask{animation:xFadeIn .18s ease both}
.x-dialog{animation:xPopIn .24s cubic-bezier(.22,.68,.35,1) both}
.x-drawer{animation:xSlideInRight .24s cubic-bezier(.22,.68,.35,1) both}
/* 浮层（表情面板 / 设置面板 / 右键菜单） */
#stickerPanel,#settingsPanel,#contextMenu,#managerPanel,.panel-pop{animation:xPanelIn .18s ease both}
/* 视图切换 */
.content-col.view-in{animation:xViewIn .22s cubic-bezier(.22,.68,.35,1) both}
/* 新消息：只让最后一条气泡入场，避免整屏重放（v3.3.7：切换会话的那次渲染不重放） */
.msg-area .msg-row:last-child{animation:xBubbleIn .22s cubic-bezier(.22,.68,.35,1) both}
.msg-area.no-bubble-anim .msg-row:last-child{animation:none}
/* 轻提示 */
.toast{animation:xToastIn .2s ease both}
/* 统一的悬停过渡 */
.conv-item,.simple-row,.cat-row,.x-pf-line,.x-fr-row,.icon-btn,.nav-btn,button{transition:background-color .16s ease,color .16s ease,opacity .16s ease,transform .16s ease}
.icon-btn:active,.nav-btn:active{transform:scale(.94)}
@media (prefers-reduced-motion:reduce){
  .x-mask,.x-dialog,.x-drawer,.toast,.msg-area .msg-row:last-child,.content-col.view-in{animation:none}
}

/* ---------- 朋友圈 ---------- */
/* ---- v3.2.17 主流朋友圈：顶部栏/功能区按钮固定，封面随内容滚动，全白底 ---- */
.x-moments{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;background:var(--panel,#fff);display:flex;flex-direction:column;align-items:center}
.x-moments-inner{width:100%;max-width:640px;padding-bottom:32px}
.x-mom-shell{position:relative;flex:1;min-height:0;display:flex;flex-direction:column;background:var(--panel,#fff)}
.x-mom-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;background:var(--panel,#fff)}
/* v3.3.7：封面严格通栏；仅下方动态内容留白，大屏内容列对齐主流桌面客户端宽度 */
.x-mom-inner{width:100%;max-width:800px;margin:0 auto;padding:0 0 40px;background:var(--panel,#fff)}
/* 固定头部：未滚动时透明（只留右上按钮）；封面滑出后变白并出现「闪友圈」 */
.x-mom-topbar{position:absolute;top:0;left:0;right:0;height:48px;z-index:20;display:flex;
  align-items:center;justify-content:center;pointer-events:none;background:transparent;
  border-bottom:1px solid transparent;transition:background .18s ease,border-color .18s ease}
.x-mom-topbar.scrolled{background:var(--panel,#fff);border-bottom-color:var(--line-soft,#eee)}
.x-mom-tb-title{font-size:15px;font-weight:600;color:var(--ink);opacity:0;transition:opacity .18s ease}
.x-mom-topbar.scrolled .x-mom-tb-title{opacity:1}
.x-mom-tb-btns{position:absolute;right:18px;top:8px;display:flex;gap:8px;pointer-events:auto}
.x-mom-tb-dot{position:absolute;right:5px;top:5px;width:7px;height:7px;border-radius:50%;
  background:#FA5151;border:1px solid #FFF;pointer-events:none}
.x-mom-cover{position:relative;height:280px;background:#DFE6E1}
.x-mom-cover-img{position:absolute;inset:0;background-size:cover;background-position:center;animation:xMomFade .3s ease both}
/* v3.6.31：闪友圈默认背景内置为星空海滩图；用户自定义 cover 时走内联 background-image 覆盖此图 */
.x-mom-cover-img.x-mom-cover-default{background:#DFE6E1 url('assets/moment-cover-default.jpg') center/cover no-repeat}
.x-mom-cover::after{content:'';position:absolute;left:0;right:0;bottom:0;height:76px;background:linear-gradient(180deg,rgba(0,0,0,0),rgba(0,0,0,.34));pointer-events:none}
.x-mom-cover-me{position:absolute;right:24px;bottom:-24px;z-index:2;display:flex;align-items:center;gap:12px}
.x-mom-cover-nick{font-size:16px;font-weight:600;color:#FFF;text-shadow:0 1px 6px rgba(0,0,0,.45);margin-bottom:26px}
/* v3.3.4：头像去掉白框（即时通讯没有白色描边） */
.x-mom-cover-avatar{width:62px;height:62px;flex:0 0 62px;border-radius:5px;overflow:hidden;background:var(--field)}
.x-mom-cover-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.x-mom-cover-avatar-fb{width:100%;height:100%;display:flex;align-items:center;justify-content:center;color:#FFF;font-size:24px;font-weight:600}
/* 头像压在封面外；只有 feed 留左右边距，封面不受 padding 影响 */
.x-mom-feed{padding:46px 24px 0;background:var(--panel,#fff)}
.x-mom-top{width:32px;height:32px;border-radius:8px;border:0;position:relative;
  background:rgba(0,0,0,.28);color:#FFF;backdrop-filter:blur(4px);
  display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background .16s,color .16s}
.x-mom-top:hover{background:rgba(0,0,0,.44);color:#FFF}
.x-mom-top.x-mom-cam{background:var(--brand,#15AC70);color:#FFF}
.x-mom-top.x-mom-cam:hover{background:var(--brand-strong)}
.x-mom-topbar.scrolled .x-mom-top{background:transparent;border:0;color:var(--ink);backdrop-filter:none}
.x-mom-topbar.scrolled .x-mom-top:hover{background:var(--list-hover)}
.x-mom-topbar.scrolled .x-mom-top.x-mom-cam{color:var(--brand,#15AC70)}
.x-mom-topbar.scrolled .x-mom-top.x-mom-cam:hover{background:var(--brand-soft)}
.x-mom-top svg{width:17px;height:17px}
/* 主流动态卡片：纯白底，卡片之间只用细线分隔 */
.x-mom-card{background:var(--panel,#fff);border-bottom:1px solid var(--line-soft,#eee);padding:16px 0;display:flex;gap:12px}
.x-mom-card.flash{animation:xMomFlash 1.6s ease}
@keyframes xMomFlash{0%,40%{background:#EAF8EF}100%{background:var(--panel,#fff)}}
.x-mom-avatar{width:44px;height:44px;flex:0 0 44px;border-radius:4px;overflow:hidden;background:var(--field)}
.x-mom-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.x-mom-avatar-fb{width:100%;height:100%;display:flex;align-items:center;justify-content:center;color:#FFF;font-size:17px;font-weight:600}
.x-mom-main{flex:1;min-width:0}
.x-mom-nick{font-size:14px;font-weight:600;color:var(--link,#576B95);margin-bottom:4px;cursor:pointer}
.x-mom-text{font-size:14px;line-height:22px;white-space:pre-wrap;word-break:break-word;margin-bottom:8px}
/* v3.6.13：折叠改为字符截断，「...展开 / 收起」内联在文字流末尾（与热搜吧同款） */
.x-mom-expand{display:inline;font-size:13.5px;line-height:22px;margin-left:2px;
  color:#5086F5;cursor:pointer;white-space:nowrap;transition:color .15s ease}
.x-mom-expand:hover{color:#3E6FD9}
/* v3.6.12：#话题# 文字微博蓝 */
.x-topic{color:#5086F5}
[data-theme="dark"] .x-topic{color:#6C9FFF}
/* 九宫格：1 单张 / 2 二宫格 / 3 三宫格 / 4 四宫格 / 6 六宫格 / 9 九宫格 */
.x-mom-grid{display:grid;gap:4px;margin-bottom:8px;width:max-content;max-width:100%}
.x-mom-grid.n3{grid-template-columns:repeat(3,100px)}
.x-mom-grid.n2{grid-template-columns:repeat(2,110px)}
.x-mom-grid.n4{grid-template-columns:repeat(2,100px)}
.x-mom-grid.n1{grid-template-columns:minmax(0,240px)}
.x-mom-cell{width:100px;height:100px;border-radius:3px;overflow:hidden;background:var(--field);cursor:pointer}
.x-mom-grid.n2 .x-mom-cell{width:110px;height:110px}
.x-mom-grid.n1 .x-mom-cell{width:auto;height:auto}
.x-mom-cell img{width:100%;height:100%;object-fit:cover;display:block}
.x-mom-grid.n1 .x-mom-cell img{width:auto;height:auto;max-width:240px;max-height:280px;object-fit:contain}
.x-mom-video{margin-bottom:8px}
.x-mom-video video{width:240px;max-width:100%;max-height:220px;display:block;background:#000;border-radius:6px}
.x-mom-loc{display:inline-flex;align-items:center;gap:3px;font-size:12px;color:var(--link,#576B95);white-space:nowrap}
.x-mom-loc svg{opacity:.8}
/* v3.6.26：时间紧跟定位同一行，右侧保留「···」操作条 */
.x-mom-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:6px}
.x-mom-meta-left{display:inline-flex;align-items:center;gap:8px;min-width:0;flex-wrap:wrap}
.x-mom-time{font-size:12px;color:var(--faint);white-space:nowrap}
/* 主流「···」操作按钮 + 向左滑出的赞/评论操作条 */
.x-mom-ops{position:relative;display:flex;justify-content:flex-end}
.x-mom-more{width:30px;height:20px;border-radius:10px;background:var(--field);border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:3px;transition:background .16s}
.x-mom-more:hover{background:var(--brand-soft)}
.x-mom-more i{width:3.5px;height:3.5px;border-radius:50%;background:var(--muted);transition:background .16s}
.x-mom-more:hover i{background:var(--brand-strong)}
.x-mom-pop{position:absolute;right:34px;top:-3px;display:flex;align-items:center;background:#4C4C4C;border-radius:6px;padding:0 2px;white-space:nowrap;
  opacity:0;transform:translateX(8px);visibility:hidden;pointer-events:none;transition:opacity .18s ease,transform .18s ease,visibility .18s}
.x-mom-pop.open{opacity:1;transform:translateX(0);visibility:visible;pointer-events:auto}
.x-mom-pop::after{content:'';position:absolute;right:-4px;top:50%;margin-top:-4px;border:4px solid transparent;border-right:none;border-left:4px solid #4C4C4C}
.x-mom-pop-btn{display:flex;align-items:center;gap:4px;background:none;border:none;color:#FFF;font-size:12.5px;padding:7px 10px;cursor:pointer;transition:opacity .14s}
.x-mom-pop-btn:hover{opacity:.82}
.x-mom-pop-btn.liked{color:#FF7E7E}
.x-mom-pop-btn.liked .x-mom-pop-ico svg{fill:currentColor}
.x-mom-pop-ico{display:flex}
.x-mom-pop-ico svg{width:15px;height:15px}
.x-mom-pop-sep{width:1px;height:12px;background:rgba(255,255,255,.28)}
/* 点赞 / 评论互动区（主流浅灰折叠区，蓝色昵称 + 可点击回复） */
.x-mom-social{background:#F7F7F7;border-radius:4px;margin-top:10px;padding:7px 10px;font-size:12.5px;line-height:20px}
.x-mom-likes{color:var(--link,#576B95);border-bottom:1px solid #E5E5E5;padding-bottom:5px;margin-bottom:5px;display:flex;align-items:flex-start;gap:6px}
.x-mom-likes .x-mom-like-ico{color:var(--link,#576B95);display:flex;flex:0 0 auto;margin-top:3px}
.x-mom-likes .x-mom-like-ico svg{width:13px;height:13px}
.x-mom-like-names b{color:var(--link,#576B95);font-weight:400}
.x-mom-comment{color:var(--ink);cursor:pointer;padding:1px 2px;border-radius:3px}
.x-mom-comment:hover{background:rgba(0,0,0,.035)}
.x-mom-comment b{color:var(--link,#576B95);font-weight:400}
.x-mom-cmt-sticker{width:20px;height:20px;object-fit:contain;vertical-align:-5px;margin:0 1px}
/* 主流评论输入框：绿框多行输入 + 麦克风/表情/图片/发送 */
.x-mom-comment-input{display:none;margin-top:8px}
.x-mom-card.commenting .x-mom-comment-input{display:block;animation:xMomFade .16s ease both}
@keyframes xMomFade{from{opacity:0;transform:translateY(-3px)}to{opacity:1;transform:none}}
.x-mom-cmt-box{border:1.5px solid var(--brand,#15AC70);border-radius:8px;background:var(--panel,#fff);padding:8px 10px 6px}
/* v3.2.18：contenteditable 输入框，表情直接是小图预览，不再出现 [sticker:URL] 明文链接 */
.x-mom-cmt-box .x-mom-cmt-input{display:block;width:100%;min-height:42px;max-height:120px;overflow-y:auto;
  border:0;outline:none;background:transparent;color:var(--ink);font-family:inherit;
  font-size:13px;line-height:20px;box-sizing:border-box;white-space:pre-wrap;word-break:break-word}
.x-mom-cmt-box .x-mom-cmt-input:empty:before{content:attr(data-placeholder);color:var(--faint);pointer-events:none}
.x-mom-cmt-box .x-mom-cmt-input img.x-mom-cmt-sticker{width:20px;height:20px;object-fit:contain;
  vertical-align:-5px;margin:0 1px}
.x-mom-cmt-tools{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-top:2px}
.x-mom-cmt-tool{width:26px;height:26px;border:0;background:transparent;color:var(--muted);
  display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:4px}
.x-mom-cmt-tool:hover{background:var(--list-hover);color:var(--ink)}
.x-mom-cmt-tool svg{width:16px;height:16px}
.x-mom-cmt-send{height:26px;padding:0 12px;border:0;border-radius:5px;background:var(--brand,#15AC70);
  color:#FFF;font-size:12.5px;cursor:pointer}
.x-mom-cmt-send:hover{background:var(--brand-strong)}
.x-mom-emoji-panel{display:none;margin-top:6px;padding:8px;border-top:1px solid var(--line-soft,#eee)}
.x-mom-emoji-panel.open{display:block}
.x-mom-emoji-row{display:flex;flex-wrap:wrap;gap:4px}
.x-mom-emoji-row span{font-size:18px;line-height:26px;width:26px;text-align:center;cursor:pointer;border-radius:4px}
.x-mom-emoji-row span:hover{background:var(--list-hover)}
.x-mom-emoji-stickers{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px;max-height:92px;overflow-y:auto}
.x-mom-emoji-sticker{width:24px;height:24px;object-fit:contain;cursor:pointer;border-radius:3px}
.x-mom-emoji-sticker:hover{background:var(--list-hover)}
.x-mom-emoji-hint{font-size:11.5px;color:var(--faint)}
/* 发布弹窗：固定三列九宫格，多选图片与添加格按同一网格排布 */
.x-mom-picker{display:grid;grid-template-columns:repeat(3,80px);gap:8px;margin-top:10px;min-height:20px;width:max-content;max-width:100%}
.x-mom-pick-wrap{position:relative;width:80px;height:80px}
.x-mom-pick{width:80px;height:80px;border-radius:6px;object-fit:cover;border:1px solid var(--line);background:var(--field);display:block}
.x-mom-pick-rm{position:absolute;right:-5px;top:-6px;width:18px;height:18px;border-radius:9px;border:0;
  background:#FA5151;color:#FFF;font-size:13px;line-height:17px;cursor:pointer;padding:0;z-index:1}
.x-mom-addpick{width:80px;height:80px;border-radius:6px;border:1px dashed var(--line);display:flex;align-items:center;justify-content:center;font-size:24px;color:var(--muted);cursor:pointer;background:var(--subtle)}
.x-mom-addpick.busy{opacity:.55;pointer-events:none}
.x-mom-video-hint{font-size:12px;color:var(--muted);padding:8px 0}
.x-mom-video-add{height:36px;padding:0 14px;border:1px dashed var(--line);border-radius:8px;background:var(--subtle);
  color:var(--ink);font-size:12.5px;cursor:pointer}
.x-mom-video-add:hover{background:var(--brand-soft);color:var(--brand-strong)}
.x-mom-video-chip{display:flex;align-items:center;gap:8px;height:36px;padding:0 12px;border-radius:8px;
  border:1px solid var(--line);background:var(--subtle);font-size:12.5px;color:var(--ink)}
.x-mom-video-chip svg{width:16px;height:16px;color:var(--brand)}
.x-mom-video-chip span{flex:1}
.x-mom-video-chip button{border:0;background:transparent;color:#FA5151;font-size:12.5px;cursor:pointer}
/* 「互动消息」通知面板（v3.3.5 完全对标主流）：贴铃铛下方弹出的白色小窗、
   无暗色蒙层（透明点击层）、标题居中 + 右上「···」、约 400×520 */
.x-nt-mask{background:transparent;backdrop-filter:none;align-items:flex-start;justify-content:flex-end;
  padding:54px 16px 0 0}
.x-nt-dialog{position:relative;background:var(--panel,#fff);border-radius:8px;overflow:hidden;
  width:400px;height:520px;max-height:calc(100vh - 70px);box-shadow:0 6px 28px rgba(0,0,0,.18)}
.x-nt-head{height:42px;flex:0 0 42px;display:flex;align-items:center;justify-content:center;position:relative;
  font-size:14px;font-weight:500;color:var(--ink);border-bottom:1px solid var(--line-soft,#EDEDED)}
.x-nt-more,.x-nt-close{position:absolute;top:5px;border:0;background:transparent;color:var(--muted);
  height:32px;min-width:32px;cursor:pointer;border-radius:6px;font-size:16px}
.x-nt-more{right:8px;letter-spacing:1px}
.x-nt-close{right:8px;display:none}
.x-nt-more:hover,.x-nt-close:hover{background:var(--list-hover);color:var(--ink)}
.x-nt-body{flex:1;min-height:0;overflow-y:auto;background:var(--panel,#fff)}
.x-nt-empty{text-align:center;color:var(--faint);padding:200px 0;font-size:13.5px}
.x-nt-item{display:flex;align-items:flex-start;gap:12px;padding:13px 16px;cursor:pointer;border-bottom:1px solid #F2F2F2}
.x-nt-item:hover{background:#F7F7F7}
.x-nt-av{position:relative;width:40px;height:40px;flex:0 0 40px;border-radius:2px;overflow:hidden;background:var(--field)}
.x-nt-av img{position:relative;z-index:1;width:100%;height:100%;object-fit:cover;display:block}
.x-nt-av-fb{position:absolute;inset:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;color:#FFF;font-size:16px}
.x-nt-main{flex:1;min-width:0}
.x-nt-name{font-size:14px;color:var(--link,#576B95)}
.x-nt-desc{font-size:13.5px;color:var(--ink);margin:3px 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.x-nt-time{font-size:12px;color:var(--faint)}
.x-nt-thumb{width:48px;height:48px;flex:0 0 48px;border-radius:4px;overflow:hidden;background:#F0F0F0;
  display:flex;align-items:center;justify-content:center}
.x-nt-thumb img{width:100%;height:100%;object-fit:cover}
.x-nt-thumb-vid{color:var(--muted);display:flex}
.x-nt-thumb-txt{font-size:10px;color:var(--muted);line-height:14px;padding:3px;text-align:left;
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.x-nt-menu{display:none;position:absolute;right:10px;top:46px;z-index:5;min-width:184px;
  background:var(--panel,#fff);border:1px solid var(--line-soft);border-radius:8px;box-shadow:0 8px 24px rgba(0,0,0,.14);padding:5px}
.x-nt-menu.open{display:block}
.x-nt-menu div{padding:8px 12px;font-size:13px;color:var(--ink);border-radius:5px;cursor:pointer}
.x-nt-menu div:hover{background:var(--list-hover)}
/* 聊天里的视频消息气泡（可直接在会话内播放） */
.video-bubble{padding:6px}
.video-bubble video{max-width:260px;max-height:200px;display:block;border-radius:4px;background:#000}
.video-caption{max-width:260px;font-size:11px;color:var(--muted);padding:4px 2px 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* ---- 联拓网：星链舞台（配色与软件统一，浅色） ---- */
/* 头部固定在上方（正常文档流），星域内容只存在于下方 field，互不遮挡 */
.x-near-stage{display:flex;flex-direction:column;position:relative;width:100%;flex:1;min-height:560px;overflow:hidden;
  background:linear-gradient(168deg,#F7FBF9 0%,#F0F6F2 48%,#EAF2ED 100%)}
.x-near-top{position:relative;flex:0 0 auto;z-index:3;display:flex;align-items:center;justify-content:space-between;padding:14px 22px}
.x-near-title b{display:block;font-size:16px;font-weight:600;color:var(--ink);letter-spacing:1px}
.x-near-title span{display:block;font-size:12px;color:var(--muted);margin-top:3px}
.x-near-refresh{width:32px;height:32px;border-radius:50%;border:none;background:var(--panel);color:var(--muted);
  display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 2px 8px rgba(31,35,41,.08)}
/* 星域：星点/星云只铺在内容区，头部保持干净 */
.x-near-field{position:relative;flex:1;min-height:0;overflow:hidden;cursor:grab}
.x-near-field.panning{cursor:grabbing}
/* v3.5.27：世界层不再做任何 transform（无缩放/无大层平移）——
   之前 3 倍大层会被 GPU 降采样光栅化、scale 会位图重采样，都是头像发糊的根源；
   现在世界层只是普通容器，节点/连线/轨道圈全部在场地内 1:1 像素定位 */
.x-near-world{position:absolute;inset:0}
.x-near-field::before{content:'';position:absolute;inset:0;pointer-events:none;
  background-image:
    radial-gradient(1.6px 1.6px at 26px 34px,rgba(21,172,112,.20),transparent 60%),
    radial-gradient(1px 1px at 122px 92px,rgba(62,123,250,.16),transparent 60%),
    radial-gradient(1.3px 1.3px at 208px 44px,rgba(21,172,112,.24),transparent 60%),
    radial-gradient(1px 1px at 74px 156px,rgba(62,123,250,.14),transparent 60%),
    radial-gradient(1.7px 1.7px at 262px 136px,rgba(21,172,112,.18),transparent 60%),
    radial-gradient(1px 1px at 178px 178px,rgba(31,35,41,.08),transparent 60%);
  background-size:300px 210px;opacity:.9}
.x-near-field::after{content:'';position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(620px 320px at 72% 14%,rgba(21,172,112,.07),transparent 70%),
    radial-gradient(520px 300px at 16% 84%,rgba(62,123,250,.06),transparent 70%)}
/* 星链：官方核心 → 用户辐射线 + 闪友间链线（流动虚线代表牵引感） */
.x-near-links{position:absolute;inset:0;z-index:1;width:100%;height:100%;pointer-events:none}
.x-link{stroke:rgba(21,172,112,.34);stroke-width:1;vector-effect:non-scaling-stroke;
  stroke-dasharray:3 5;animation:xLinkFlow 1.8s linear infinite}
.x-link.chain{stroke:rgba(62,123,250,.26)}
@keyframes xLinkFlow{to{stroke-dashoffset:-16}}
/* v3.5.24：头像不再套环层旋转，直接挂世界层由 JS 逐帧定位（与链线同一公式，永不脱节） */
.x-near-orb{pointer-events:auto}
/* v3.5.22：动态背景 —— 星云色块缓慢漂移 + 现有星点层轻微闪烁 */
.x-near-bg{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:0}
.x-near-bg i{position:absolute;border-radius:50%;opacity:.42}
.x-near-bg .nb1{width:46%;height:42%;left:-8%;top:-6%;background:radial-gradient(circle,rgba(21,172,112,.16),transparent 70%);
  animation:xNebula1 26s ease-in-out infinite alternate}
.x-near-bg .nb2{width:44%;height:46%;right:-10%;bottom:-8%;background:radial-gradient(circle,rgba(62,123,250,.14),transparent 70%);
  animation:xNebula2 34s ease-in-out infinite alternate}
.x-near-bg .nb3{width:30%;height:30%;left:38%;top:36%;background:radial-gradient(circle,rgba(176,124,255,.09),transparent 70%);
  animation:xNebula3 42s ease-in-out infinite alternate}
/* v3.6.1：星云/星尘只做 opacity 呼吸（合成器动画），不再逐帧重绘模糊与缩放 */
@keyframes xNebula1{from{opacity:.18}to{opacity:.5}}
@keyframes xNebula2{from{opacity:.5}to{opacity:.2}}
@keyframes xNebula3{from{opacity:.16}to{opacity:.42}}
/* v3.6.1：减少星尘数量、去掉高开销 box-shadow；透明度呼吸即可 */
.x-near-stars{position:absolute;inset:0;z-index:0;pointer-events:none;overflow:hidden}
.x-near-stars i{position:absolute;border-radius:50%;background:#8fd8ae;
  animation:xStarTw 4s ease-in-out infinite}
@keyframes xStarTw{0%,100%{opacity:.12}50%{opacity:.8}}
/* v3.6.3：轨道圈已按用户要求全部去掉（内圈蓝环 + 最外大蓝圈），只留节点与连线 */
/* 星域头像：44px 彩色圆环；无悬停效果（对标主流）
   v3.5.27：orb 固定 96px 宽 + 负 margin 定心（头像中心 = transform 锚点），
   JS 写亚像素(2位小数) transform —— GPU 合成层位移，平滑不跳格且不糊 */
/* v3.6.4：去掉 will-change 强制合成层——亚像素 translate 在独立合成层上会被
   GPU 双线性重采样，头像/昵称发糊像蒙了一层；改为普通层逐帧绘制，文字走系统抗锯齿，
   配合 toFixed(2) 亚像素定位依旧平滑，但清晰锐利。同时收掉彩色光晕（蒙层的来源）。 */
.x-near-orb{position:absolute;left:0;top:0;width:96px;margin-left:-48px;margin-top:-22px;
  transform:translate(-9999px,-9999px);display:flex;flex-direction:column;align-items:center;gap:5px;
  cursor:pointer;user-select:none;z-index:2;
  -webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility}
.x-near-orb-av{position:relative;display:block;width:44px;height:44px;border-radius:25%;overflow:hidden;border:2px solid var(--ring,#15AC70);
  background:var(--field);box-shadow:0 2px 7px rgba(31,35,41,.16)}
/* v3.5.22：状态点的宿主（头像外层包裹），点可溢出头像边框 */
.x-near-av-wrap{position:relative;display:block;line-height:0}
.x-near-av-wrap .pres-dot{line-height:normal}
/* v3.6.7：兜底字块绝对定位铺底 + img 升为正 z-index 盖在其上。
   修复「星域头像只剩首字色块」：此前 fb 与 img 都是文档流 100% 高块级元素，
   在固定高 overflow:hidden 容器里垂直堆叠，img 被整体推出容器外裁掉，永远不可见。 */
.x-near-orb-av img{position:relative;z-index:1;width:100%;height:100%;object-fit:cover;display:block;border-radius:25%;-webkit-user-drag:none}
.x-near-orb-fb{position:absolute;inset:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;color:#FFF;font-size:16px;font-weight:600;border-radius:25%}
/* 我/友/官徽标：头像内部右下角小圆徽（绿底白字），不在昵称旁 */
.x-near-orb-av[data-badge]::after,.x-near-core-av[data-badge]::after{content:attr(data-badge);
  position:absolute;right:1px;bottom:1px;z-index:2;width:15px;height:15px;border-radius:50%;
  background:#15AC70;color:#FFF;font-size:9px;line-height:15px;text-align:center;font-weight:700;font-style:normal;
  box-shadow:0 0 0 1.5px rgba(255,255,255,.9)}
.x-near-orb.is-me .x-near-orb-av{--ring:#15AC70}
@keyframes xNearIn{from{opacity:0}to{opacity:1}}
/* 官方核心节点：星链中心。v3.5.27：固定 110px 宽 + 负 margin 定心（头像中心 = 锚点），
   transform 由 JS 亚像素驱动；v3.6.4 恢复外围扩散呼吸波纹（去掉旋转光环/大蓝圈）。 */
.x-near-core{position:absolute;left:0;top:0;width:110px;margin-left:-55px;margin-top:-26px;
  transform:translate(-9999px,-9999px);display:flex;flex-direction:column;align-items:center;gap:6px;cursor:pointer;z-index:3;
  -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
/* v3.6.4：恢复 StarGPT 头像外侧的扩散呼吸波纹（双层错峰），蓝色与头像边框呼应。
   v3.6.3 曾整体去掉，用户反馈「之前的呼吸特效没了」，现予还原。 */
.x-core-ripple{position:absolute;left:50%;top:50%;width:104px;height:104px;margin:-52px 0 0 -52px;
  border-radius:50%;border:1.5px solid rgba(62,123,250,.38);animation:xCoreRipple 4.6s ease-out infinite;
  pointer-events:none;z-index:-1}
.x-core-ripple.r2{animation-delay:2.3s}
@keyframes xCoreRipple{0%{transform:scale(.5);opacity:.85}75%{transform:scale(2);opacity:0}100%{transform:scale(2);opacity:0}}
.x-near-core-av{position:relative;width:52px;height:52px;border-radius:25%;overflow:visible;
  display:flex;align-items:center;justify-content:center}
.x-near-core-av img{width:100%;height:100%;object-fit:cover;display:block;border-radius:25%;
  border:2px solid #3E7BFA;box-shadow:0 3px 10px rgba(62,123,250,.22);-webkit-user-drag:none}
.x-near-core-av .x-near-orb-fb{width:100%;height:100%;border:2px solid #3E7BFA;border-radius:25%;box-shadow:0 4px 16px rgba(62,123,250,.30)}
/* 左右翻页箭头（浅色白底） */
.x-near-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:3;width:42px;height:42px;border-radius:50%;border:none;
  background:var(--panel);color:var(--ink);display:flex;align-items:center;justify-content:center;cursor:pointer;
  box-shadow:0 2px 10px rgba(31,35,41,.12)}
.x-near-arrow.prev{left:18px}
.x-near-arrow.next{right:18px}
.x-near-arrow.off{opacity:.32;pointer-events:none}
/* v3.2.19：去掉与官方核心头像重叠的空态文字提示，人数改在头部「星链 · N 人在线」显示 */
.x-near-none{display:none}
/* 资料卡：贴着所点头像的轻量白卡（自己/官方/陌生人三种形态），点空白自动收起
   v3.6.4：浅色主题下 --panel 是半透明白，卡片悬在绿色星域上会透出底图 —— 钉死实底 */
.x-near-detail{position:absolute;z-index:8;width:264px;background:var(--panel);border:1px solid var(--line-soft);
  border-radius:12px;padding:14px 16px;box-shadow:0 10px 32px rgba(31,35,41,.16);
  opacity:0;visibility:hidden;pointer-events:none;transform:translateY(6px) scale(.97);
  transition:opacity .18s ease,transform .18s ease,visibility .18s}
html:not([data-theme="dark"]) .x-near-detail{background:#FFFFFF}
html:not([data-theme="dark"]) .x-near-detail .x-near-dsign{background:#F0F7FC}
.x-near-detail.open{opacity:1;visibility:visible;pointer-events:auto;transform:translateY(0) scale(1)}
.x-near-dhead{display:flex;align-items:center;gap:12px}
.x-near-dav{position:relative;width:46px;height:46px;flex:0 0 46px;border-radius:25%;overflow:hidden;background:var(--field)}
.x-near-dav img{position:relative;z-index:1;width:100%;height:100%;object-fit:cover;display:block}
.x-near-dav .x-near-orb-fb{width:100%;height:100%;font-size:17px}
.x-near-dinfo b{display:block;font-size:14.5px;font-weight:600;color:var(--ink)}
.x-near-dinfo span{display:block;font-size:11.5px;color:var(--muted);margin-top:3px}
.x-near-dsign{margin-top:10px;font-size:12px;line-height:18px;color:var(--muted);background:var(--subtle);border-radius:8px;padding:7px 10px;word-break:break-all}
.x-near-go{display:inline-flex;align-items:center;justify-content:center;height:32px;padding:0 22px;margin-top:12px;border-radius:8px;
  border:none;background:var(--brand);color:#FFF;font-size:12.5px;cursor:pointer}
.x-near-go.done{background:var(--subtle);color:var(--faint);cursor:default}

/* ---- 发布动态 · 所在位置（主流选择） ---- */
.x-loc-row{margin-top:14px;height:44px;display:flex;align-items:center;gap:8px;padding:0 12px;border-radius:8px;background:var(--subtle);cursor:pointer;transition:background .16s}
.x-loc-row:hover{background:var(--field)}
.x-loc-ico{color:var(--brand);display:flex}
.x-loc-text{flex:1;font-size:13px;color:var(--muted)}
.x-loc-row.set .x-loc-text{color:var(--brand-strong);font-weight:500}
.x-loc-arrow{color:var(--faint)}
.x-loc-search{display:flex;align-items:center;gap:8px;height:38px;background:var(--subtle);border-radius:8px;padding:0 12px;margin-bottom:10px}
/* 「所在地区」四级联动选择器：省/市/区三列 + 街道输入 */
.x-region-cols{display:flex;gap:8px}
.x-region-auto{margin-bottom:10px}
.x-region-auto .btn-outline{display:inline-flex;align-items:center;gap:5px}
.x-region-col{flex:1;min-width:0;height:240px;overflow-y:auto;background:var(--subtle);border-radius:8px;list-style:none;margin:0;padding:4px}
.x-region-col li{padding:7px 10px;border-radius:6px;font-size:13px;color:var(--ink);cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.x-region-col li:hover{background:var(--list-hover)}
.x-region-col li.sel{background:var(--brand);color:#FFF}
.x-region-col li.x-region-hint{color:var(--faint);cursor:default;background:none}
.x-region .x-input{margin-top:10px}
.x-loc-search input{flex:1;border:none;background:transparent;font-size:13px;color:var(--ink)}
.x-loc-list{max-height:300px;overflow-y:auto;overscroll-behavior:contain}
.x-loc-item{height:44px;display:flex;align-items:center;justify-content:space-between;padding:0 6px;border-bottom:1px solid var(--line-soft);cursor:pointer;font-size:13.5px;color:var(--ink);transition:background .15s}
.x-loc-item:hover{background:var(--subtle)}
.x-loc-item.located span{color:var(--brand-strong)}
.x-loc-check{width:6px;height:11px;border-right:2px solid var(--brand);border-bottom:2px solid var(--brand);transform:rotate(45deg);opacity:0;margin-right:4px}
.x-loc-item:hover .x-loc-check{opacity:.5}

/* ---------- 语音消息 ---------- */
.x-voice{display:flex;align-items:center;gap:10px;min-width:110px;cursor:pointer;user-select:none}
/* v3.6.10：语音播放钮缩到 20px，使语音气泡与文字/通话气泡同为 38px */
.x-voice-btn{width:20px;height:20px;border-radius:10px;background:var(--brand);color:#FFF;display:flex;align-items:center;justify-content:center;font-size:9px;flex:0 0 20px}
/* v3.6.27：播放钮用工具栏同款波形线稿，播放态整钮呼吸高亮 */
.x-voice-btn svg{display:block;width:14px;height:14px}
.x-voice.playing .x-voice-btn{animation:xVoicePulse .8s ease-in-out infinite alternate}
@keyframes xVoicePulse{from{filter:brightness(1)}to{filter:brightness(1.35)}}
.x-voice-wave{display:flex;align-items:center;gap:2px;height:20px;flex:1}
.x-voice-wave i{width:2px;border-radius:1px;background:currentColor;opacity:.55;display:block}
.x-voice.playing .x-voice-wave i{animation:xWave .7s ease-in-out infinite alternate}
@keyframes xWave{from{transform:scaleY(.45)}to{transform:scaleY(1)}}
.x-voice-dur{font-size:11px;opacity:.7}
.x-rec-btn{height:24px;padding:0 10px;border-radius:6px;font-size:11px;background:var(--field);color:var(--muted);display:flex;align-items:center;gap:5px}
.x-rec-btn.recording{background:var(--unread);color:#FFF;animation:xPulse 1s ease-in-out infinite}
.tool-btn.recording{color:var(--unread);animation:xPulse 1s ease-in-out infinite}
#quoteSlot:empty{display:none}
#xDrawerRoot:empty{pointer-events:none}
@keyframes xPulse{50%{opacity:.72}}
.x-rec-bar{position:fixed;z-index:95;left:50%;bottom:96px;transform:translateX(-50%);background:var(--ink);color:var(--panel);border-radius:24px;padding:10px 18px;font-size:12px;display:flex;align-items:center;gap:10px;box-shadow:var(--shadow)}
.x-rec-dot{width:9px;height:9px;border-radius:5px;background:var(--unread);animation:xPulse 1s infinite}

/* ---------- 通话浮层 ---------- */
/* v3.2.19：通话 UI 统一为程序当前浅色风格（白卡片 + 浅灰舞台 + 品牌绿/红圆钮），
   全部走 CSS 变量，深色主题也能自动跟随；去除多余的品牌文字提示。 */
.x-call-controls.incoming{height:150px;display:flex;align-items:flex-start;justify-content:center;gap:96px;padding-top:6px}
.x-call-col{display:flex;flex-direction:column;align-items:center;gap:10px}
.x-call-col .x-call-round{width:64px;height:64px}
.x-call-col .x-call-round svg{width:26px;height:26px}
.x-call-round{width:52px;height:52px;border-radius:50%;border:none;display:flex;align-items:center;justify-content:center;cursor:pointer;color:#FFF;transition:filter .15s,transform .12s}
.x-call-round:active{transform:scale(.93)}
.x-call-round i{display:flex}
.x-call-round svg{display:block}
.x-call-round.decline{background:#FA5151}
.x-call-round.decline svg{transform:rotate(135deg)}
.x-call-round.decline:hover{background:#E5484D}
.x-call-round.accept{background:var(--brand,#15AC70)}
.x-call-round.accept:hover{background:var(--brand-strong,#12995F)}
.x-call-col-label{font-size:12px;color:var(--muted);white-space:nowrap}

/* v3.5.5 #1：通话只保留悬浮卡片 —— 去掉整层遮罩背景，背后界面照常可见、可点击；
   容器不拦截指针（pointer-events:none），卡片本体接管事件并支持按住拖动 */
.x-call{position:fixed;inset:0;z-index:96;pointer-events:none;display:flex;align-items:center;justify-content:center}
.x-call-box{width:440px;background:var(--panel,#FFF);border:1px solid var(--line,#E5E5E5);border-radius:16px;
  overflow:hidden;box-shadow:0 16px 48px rgba(31,35,41,.22);color:var(--ink,#191919);position:relative;pointer-events:auto}
.x-call-box.video{width:720px}
.x-call-stage{height:300px;position:relative;background:var(--subtle,#F7F7F7);display:flex;align-items:center;justify-content:center;flex-direction:column;gap:14px}
.x-call-box.video .x-call-stage{height:420px}
.x-call-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:#EDEDED}
.x-call-remote{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;background:var(--subtle,#F7F7F7)}
.x-call-avatar{width:84px;height:84px;border-radius:10px;object-fit:cover;background:var(--brand-soft,#E8F8EE);
  color:var(--brand-strong,#12995F);display:flex;align-items:center;justify-content:center;font-size:30px}
.x-call-avatar.ringing{animation:xRing 1.6s ease-in-out infinite}
@keyframes xRing{0%,100%{box-shadow:0 0 0 0 rgba(21,172,112,.32)}50%{box-shadow:0 0 0 18px rgba(21,172,112,0)}}
.x-call-name{font-size:17px;font-weight:600;color:var(--ink)}
.x-call-state{font-size:12px;color:var(--muted)}
.x-call-local{position:absolute;right:16px;top:16px;width:140px;height:100px;border-radius:10px;object-fit:cover;
  border:2px solid var(--panel,#FFF);background:#EDEDED}
/* v3.2.20：图标圆钮 + 下方文字改为文档流纵向排列（去 transform，文字对齐且渲染清晰） */
.x-call-controls{height:112px;display:flex;align-items:center;justify-content:center;gap:26px;background:var(--panel,#FFF)}
.x-call-ctrl{width:64px;height:84px;border-radius:12px;background:transparent;color:var(--ink);
  display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:7px;border:0;padding:0}
.x-call-ctrl i{width:52px;height:52px;flex:0 0 52px;border-radius:50%;background:var(--field,#F5F5F5);
  display:flex;align-items:center;justify-content:center;transition:background .15s}
.x-call-ctrl svg{width:22px;height:22px;display:block}
.x-call-ctrl:hover i{background:var(--field-focus,#EDEDED)}
.x-call-ctrl.off i{background:#FDECEC;color:#C44343}
.x-call-ctrl.off:hover i{background:#F9DDDD}
.x-call-ctrl.hangup i{background:#FA5151;color:#FFF;width:56px;height:56px;flex-basis:56px}
.x-call-ctrl.hangup svg{transform:rotate(135deg)}
.x-call-ctrl.hangup:hover i{background:#E5484D}
.x-call-ctrl span{font-size:12px;line-height:14px;color:var(--muted);white-space:nowrap;
  -webkit-font-smoothing:antialiased;text-align:center}
.x-call-top{display:none}

/* ---------- 引用 / 转发 / 群详情 / 文件 ---------- */
/* v3.6.13：引用条改聊天式 —— 输入框上方浅灰圆角条、左侧细竖线、两行截断、右侧 × 圆钮 */
.x-quote-bar{margin:0 8px 6px;padding:7px 10px;border-left:2px solid var(--line,#D2D2D2);
  background:var(--subtle,#F5F6F7);border-radius:4px;font-size:12px;color:var(--muted,#8A8A8A);
  display:flex;align-items:flex-start;gap:8px}
.x-quote-bar span{flex:1;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;
  -webkit-box-orient:vertical;line-height:18px;word-break:break-all;text-align:left}
.x-quote-bar b{color:var(--muted,#666666);font-weight:500}
.x-quote-bar button{flex:none;width:20px;height:20px;border-radius:50%;font-size:13px;line-height:18px;
  text-align:center;color:#999999;background:transparent;padding:0}
.x-quote-bar button:hover{background:rgba(0,0,0,.08)}
/* v3.3.3 / v3.6.10：引用块移到文字气泡【下方】——
   v3.6.12：去背景色与圆角灰条（无底色纯文字），跳转箭头 ↗ 改为竖线 |；
   width:fit-content + max-width:300px 保证不再把文字气泡撑长；点击可平滑定位原消息 */
.x-quote{display:flex;align-items:center;gap:6px;background:transparent;border-radius:0;
  padding:2px 0;font-size:12px;color:var(--muted);margin:6px 0 0;line-height:18px;
  width:fit-content;max-width:300px;cursor:pointer;
  transition:color .16s ease}
.x-quote:hover{color:var(--ink,#191919)}
.x-quote[data-action="jumpQuote"]::after{content:"|";flex:none;font-size:12px;opacity:.55;line-height:1}
/* v3.6.31：引用竖杠随消息方向镜像 —— 自己的消息（右）竖杠在右，对方的消息（左）竖杠翻到左侧（靠气泡外侧） */
.msg-row:not(.mine) .x-quote[data-action="jumpQuote"]::after{content:none}
.msg-row:not(.mine) .x-quote[data-action="jumpQuote"]::before{content:"|";flex:none;font-size:12px;opacity:.55;line-height:1}
.x-quote-ico{flex:0 0 auto;min-width:26px;height:26px;border-radius:6px;display:inline-flex;
  align-items:center;justify-content:center;font-size:10px;font-weight:700;padding:0 3px}
.x-quote-txt{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.x-quote b{color:var(--muted);font-weight:400}
.x-fwd{width:360px}
.x-fwd-item{display:flex;align-items:center;gap:10px;padding:9px 10px;border-radius:8px;cursor:pointer;font-size:13px}
.x-fwd-item:hover{background:var(--list-hover)}
.x-fwd-item .avatar{width:32px;height:32px;flex:0 0 32px;font-size:12px}
/* v3.3.4：侧栏放在聊天头部下方（top:48px 与头部同高衔接）、去阴影（对标主流） */
.x-drawer{position:absolute;right:0;top:48px;bottom:0;width:300px;background:var(--panel);border-left:1px solid var(--line);z-index:20;display:flex;flex-direction:column}
.x-drawer-head{height:52px;flex:0 0 52px;display:flex;align-items:center;justify-content:space-between;padding:0 16px;font-size:14px;font-weight:600;border-bottom:1px solid var(--line-soft)}
.x-drawer-body{flex:1;overflow-y:auto;padding:16px}
.x-member-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:20px}
/* v3.3.8：磁贴完全对齐 —— 所有磁贴统一 padding、头像 44px、昵称固定行高；
   此前仅 .x-member[data-d] 有 padding，「添加」磁贴内容比头像磁贴低 3px 不对齐 */
.x-member{display:flex;flex-direction:column;align-items:center;gap:5px;font-size:11px;color:var(--muted);text-align:center;padding:3px 0}
.x-member .avatar{width:44px;height:44px;flex:0 0 44px;font-size:14px;border-radius:3px}
.x-member span{max-width:100%;height:15px;line-height:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.x-file-row{display:flex;align-items:center;gap:10px;padding:10px 8px;border-bottom:1px solid var(--line-soft);cursor:pointer;font-size:12px}
.x-file-row:hover{background:var(--list-hover)}
.x-file-ico{width:32px;height:32px;border-radius:7px;background:var(--brand-soft);color:var(--brand-strong);display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:600}
.x-file-meta{margin-left:auto;color:var(--faint);font-size:11px}
.x-more-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;padding:20px}
.x-more-cell{height:84px;border-radius:10px;background:var(--subtle);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;font-size:12px;color:var(--ink);cursor:pointer}
.x-more-cell:hover{background:var(--brand-soft);color:var(--brand-strong)}
.x-more-cell svg{width:24px;height:24px}
/* v3.3.4：即时通讯拖拽无任何提示层 —— 绿色蒙层与虚线框均已移除 */
.x-badge-new{position:absolute;top:6px;right:8px;width:7px;height:7px;border-radius:4px;background:var(--unread)}

/* 新的朋友 · 好友请求 */
.x-fr-search{display:flex;gap:8px;align-items:center}
.x-fr-search .x-input{flex:1;min-width:0}
.x-fr-sbtn{height:34px;padding:0 16px;flex:none;border-radius:7px}
.x-fr-sec{font-size:11px;color:var(--faint);margin:16px 0 2px;padding-left:2px}
.x-fr-row{display:flex;align-items:center;gap:10px;padding:9px 2px;border-bottom:1px solid var(--line-soft)}
.x-fr-row:last-child{border-bottom:none}
.x-fr-ava{width:38px;height:38px;flex:0 0 38px;border-radius:3px;overflow:hidden;display:flex;align-items:center;justify-content:center;font-size:14px;color:#fff;background:#8A8A8A}
.x-fr-ava img{width:100%;height:100%;object-fit:cover;display:block}
.x-fr-main{flex:1;min-width:0}
.x-fr-name{font-size:13px;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.x-fr-sub{font-size:11px;color:var(--faint);margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.x-fr-acts{flex:none;display:flex;align-items:center;gap:6px}
.x-fr-btn{height:26px;padding:0 12px;border-radius:5px;border:0;font-size:12px;cursor:pointer;line-height:1}
.x-fr-btn.ok{background:var(--brand);color:#fff}
.x-fr-btn.ok:hover{filter:brightness(1.05)}
.x-fr-btn.no{background:var(--field);color:var(--muted);border:1px solid var(--line)}
.x-fr-btn.no:hover{color:var(--unread);border-color:var(--unread)}
.x-fr-status{font-size:12px;color:var(--faint)}
.x-fr-status.ok{color:var(--brand)}

/* ===== 网络素材图标（Element Plus / MDI 官方 SVG sprite） =====
   图标本体统一用 fill:currentColor，颜色随所在控件的 color 变化，
   选中态、hover、暗色主题都自动生效。 */
#epSprite{position:absolute;width:0;height:0;overflow:hidden;pointer-events:none}
/* 注意：通话按钮已换用细线性（stroke）图标，绝不能再设 fill:currentColor，否则心形/话筒会被填成实心 */
.ep-ico,.nav-btn svg,.row-ico svg,.icon-btn svg,.x-more-cell svg,
.search-ico,.add-btn svg,.xc-gear svg{fill:currentColor;display:block}
.nav-btn svg{fill:currentColor}
.search-ico,.add-btn svg{color:var(--muted)}
.row-ico svg{color:var(--brand,#15AC70)}
.x-more-cell svg{color:var(--brand,#15AC70)}
.sp-close svg,.ud-head button svg,.cs-head button svg,.x-set-head button svg{
  width:16px;height:16px;fill:currentColor;color:var(--muted)
}
.x-set-head button,.sp-close,.ud-head button,.cs-head button{
  display:flex;align-items:center;justify-content:center
}
.xc-gear svg{width:18px;height:18px}
/* 圆角与母版图标保持同一个比例（半径 22.5%），避免登录页出现「方图套圆框」 */
.xc-logo{width:46px;height:46px;border-radius:22%;display:block;flex:none;object-fit:cover;box-shadow:0 3px 12px rgba(0,0,0,.09)}

/* ===== v3.0 · 主流设置面板与更新提示细节 ===== */
.x-set-group{background:var(--subtle,#fafafa);letter-spacing:.3px}
.x-set-btn,.xfu-btn{transition:filter .16s ease,transform .12s ease,background .16s ease}
.x-set-btn:hover,.xfu-btn:hover{filter:brightness(.97)}
.x-set-btn:active,.xfu-btn:active{transform:scale(.975)}
.x-set-row:hover{background:var(--list-hover,rgba(0,0,0,.025))}
.set-item{transition:background .16s ease,color .16s ease}
.xfu-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--unread,#FA5151);margin-left:6px}
/* 列表项与会话切换的轻量反馈，避免生硬跳变 */
.conv-row,.contact-row{transition:background .16s ease}
.msg-bubble,.x-voice{transition:transform .18s ease,box-shadow .18s ease}
@media (prefers-reduced-motion:reduce){
  .x-set-btn,.xfu-btn,.x-set-row,.set-item,.conv-row,.contact-row,.msg-bubble,.x-voice{transition:none}
}

/* ===== v3.1 · 全局隐藏滚动条（滚轮 / 触控板滚动仍然可用） =====
   主流桌面客户端所有列表都不显示滚动条；这里统一隐藏所有滚动区域的轨道与滑块，
   同时用明确的 overflow-y:auto 保证内容区依旧可滚动。 */
*::-webkit-scrollbar,
html::-webkit-scrollbar,
body::-webkit-scrollbar{width:0!important;height:0!important;display:none!important;background:transparent!important}
*::-webkit-scrollbar-track,
*::-webkit-scrollbar-thumb,
*::-webkit-scrollbar-corner{display:none!important;background:transparent!important}
*{scrollbar-width:none!important;-ms-overflow-style:none!important}
.list-panel,.msg-area,.sp-grid-wrap,.ud-rows,.cs-results,
.xfs-main,.xfp-card,.xfu-body,.x-set-card{overflow-y:auto!important;overscroll-behavior:contain}
/* 旧版设置浮层也要有确定的可滚动高度，避免「内容被截断却滚不动」 */
.x-set-card{height:min(86vh,620px);max-height:none}

/* 设置窗口（主流双栏）与首次改密提示的过渡动画 */
.xfs-mask,.xfp-mask{transition:opacity .18s ease}
.xfs-win,.xfp-card{transition:transform .2s ease,opacity .2s ease}
.xfs-btn,.xfp-btn,.xfs-nav,.xfs-sw,.tool-btn,.icon-btn{transition:background .16s ease,color .16s ease,transform .12s ease,border-color .16s ease}
.tool-btn:active,.icon-btn:active,.xfs-btn:active,.xfp-btn:active{transform:scale(.94)}

/* 细线性图标统一：与主流桌面客户端一致的中性灰 + 20px 视觉尺寸 */
.ln-ico{display:block;flex:none}
.nav-btn .ln-ico,.nav-btn svg.ln-ico{width:22px;height:22px}
.tool-btn .ln-ico,.icon-btn .ln-ico{width:20px;height:20px}
.search-ico{color:#9A9A9A}
.add-btn svg{width:20px;height:20px;color:#7A7A7A}

/* ===== v3.4 · 跟手原生滚动 / 发现列表选中态 / 固定窗口 / 加号按钮 ===== */
/* 不再用 rAF 插值拦截 wheel：滚轮 1:1 交给浏览器，触控板惯性原生保留；
   去掉逐容器强制提升滚动图层的规则（7 个容器同时提升反而拖慢滚动）。 */
.smooth-scroll{scroll-behavior:auto;overscroll-behavior:contain}
.list-panel,.msg-area,.fav-cats,.fav-list,.x-moments,.xfs-main,.sp-grid-wrap,.ud-rows,.x-loc-list{
  scroll-behavior:auto;overscroll-behavior:contain}
.native-scroll .smooth-scroll,.native-scroll .list-panel,.native-scroll .msg-area{scroll-behavior:auto}

/* v3.3：列表选中态整体浅色化（浅灰底 + 深色文字），
   彩色图标保持原色，不再强制翻白 —— 修复「图标颜色与背景一样观感很差」。 */
.simple-row.active .row-ico svg{color:inherit!important}
.simple-row.active .row-text{color:var(--selected-ink,var(--ink))}
.mom-row .row-ico svg{transition:color .16s ease}

/* 通讯录功能行：彩色圆角小方块 + 白色线条图标（v3.6.70 #3 磁贴 30px / 图标 18px，
   24 视图 2px 描边，替代旧版 28px 磁贴里 15px 的小线稿，缩放下不再发糊） */
.func-tile{width:30px;height:30px;flex:0 0 30px;border-radius:9px;display:flex;align-items:center;justify-content:center;color:#FFF}
.func-tile svg{width:18px;height:18px;display:block}
.func-tile .ln-ico{width:18px;height:18px}
/* 主流未读角标：会话列表 / 好友请求 / 左侧导航统一 18px 红圆白字 */
.fr-badge{margin-left:auto;margin-right:10px;min-width:18px;height:18px;border-radius:9px;background:var(--unread,#FA5151);color:#FFF;font-size:11px;font-weight:500;display:flex;align-items:center;justify-content:center;padding:0 5px}
.nav-btn{position:relative}
/* 修复：角标元素是 <i>，浏览器默认 font-style:italic 会让数字倾斜 —— 显式归正 */
.nav-badge{position:absolute;right:4px;top:4px;z-index:6;min-width:16px;height:16px;border-radius:8px;background:var(--unread,#FA5151);color:#FFF;font-size:10px;font-weight:500;font-style:normal;line-height:16px;text-align:center;padding:0 4px;box-shadow:0 0 0 2px var(--nav,#F7F7F7);pointer-events:none}
.nav-dot{position:absolute;right:9px;top:8px;width:9px;height:9px;border-radius:50%;background:var(--unread,#FA5151);border:2px solid var(--nav,#F7F7F7);pointer-events:none}

/* v3.5 · 主流群头像九宫格（会话列表 / 群信息通用）
   v3.6.50：flex 换行 + 双向居中 —— 成员不满一行/一列时整块居中（主流样式：
   3 人=2+1 居中、5 人=3+2 居中、7 人=3+3+1 居中），不再从左上角堆着留白。
   单元格宽度按列数用 calc 锁定，保证恰好每行放下 cols 个（留 0.5px 余量防取整溢出换行） */
.group-avatar{--ga-gap:1px;display:flex;flex-wrap:wrap;align-content:center;justify-content:center;
  gap:var(--ga-gap);background:#E3E5E7;border-radius:4px;overflow:hidden;width:34px;height:34px;box-sizing:border-box}
.group-avatar .ga-cell{flex:0 0 auto;width:calc((100% - var(--ga-gap) * 2)/3 - .5px);aspect-ratio:1/1;
  display:flex;align-items:center;justify-content:center;background:#F0F2F5;overflow:hidden;min-width:0;min-height:0}
.group-avatar.gc2 .ga-cell{width:calc((100% - var(--ga-gap))/2 - .5px)}
.group-avatar.gc1 .ga-cell{width:calc(100% - var(--ga-gap))}
.group-avatar .ga-cell img{width:100%;height:100%;object-fit:cover;display:block}
.group-avatar .ga-cell .ga-fb{width:100%;height:100%;display:flex;align-items:center;justify-content:center;color:#FFF;font-size:10px;font-style:normal}
.x-drawer .group-avatar{width:84px;height:84px;border-radius:6px}
.x-drawer .group-avatar .ga-cell .ga-fb{font-size:18px}

/* v3.5 · 标签管理弹窗 */
.x-tag-new{display:flex;align-items:center;gap:8px;margin-bottom:10px}
.x-tag-new .x-input{flex:1}
.x-tag-head{display:flex;align-items:center;gap:8px;padding:12px 0 6px}
.x-tag-head .x-tag-title{font-size:13px;font-weight:600;color:var(--ink)}
.x-tag-head .x-tag-n{font-size:11px;color:var(--faint)}
.x-tag-head .x-tag-edit{margin-left:auto;height:24px;padding:0 10px;border-radius:5px;border:1px solid var(--line);background:var(--panel);color:var(--muted);font-size:11px;cursor:pointer}
.x-tag-head .x-tag-edit:hover{color:var(--brand-strong);border-color:var(--brand)}
.x-tag-head.renaming{gap:6px}
.x-tag-head.renaming .x-input{flex:1;height:30px}
/* v3.2.16：下拉选中项统一软件绿色（默认系统蓝与整体配色冲突） */
select option{color:var(--ink,#191919);background:var(--panel,#fff)}
select option:checked{background:#15AC70;color:#fff}
select option[value="__new"]{color:#15AC70}
.x-tag-sel option{color:var(--ink)}
.x-tag-sel option:checked{background:#15AC70;color:#fff}

/* v3.5 · 群信息：退出群聊（主流底部通栏红字按钮） */
.x-leave-btn{margin-top:18px;width:100%;height:42px;border:none;border-radius:8px;background:var(--subtle,#F7F7F7);color:var(--unread,#FA5151);font-size:14px;cursor:pointer;transition:background .16s}
.x-leave-btn:hover{background:#FDECEC}

/* v3.5 · 联系人行次行小字（备注后显示昵称） */
.row-sub{display:block;font-size:11px;color:var(--faint);line-height:16px;font-weight:400}

/* 标题栏：固定窗口（图钉）按钮，激活态着色 */
.win-pin{position:relative}
.win-pin svg{transition:color .16s ease,transform .16s ease}
.win-pin:hover svg{transform:translateY(-1px)}
.win-pin.is-pinned{color:var(--brand-strong,#15AC70)}
.win-pin.is-pinned svg{color:var(--brand-strong,#15AC70)}

/* 搜索框右侧「+」按钮：与搜索框同高、垂直居中、图标几何居中 */
.search-row{align-items:center}
.add-btn{width:32px;height:32px;flex:0 0 32px;display:flex;align-items:center;justify-content:center;border-radius:8px}
.add-btn svg{width:20px;height:20px;color:#7A7A7A}
.add-btn:hover svg{color:var(--ink)}

/* 动画统一缓动：更接近即时通讯的轻快观感 */
.x-dialog,.xfs-win,.xfp-card,.floating{animation-timing-function:cubic-bezier(.22,.8,.32,1)}

/* v3.2 修正：发现列表三圈使用各自彩色图标（覆盖上面旧的全局绿色规则），
   v3.3 起选中行不再翻白，彩色图标在浅灰选中底上保持原色。 */
.mom-row .row-ico svg{color:inherit!important}

/* v3.3 · 聊天输入工具栏：去掉剪刀后四枚图标更疏朗、悬停反馈更柔和 */
.toolbar{gap:20px}
.tool-btn svg{transition:color .16s ease,transform .16s ease}
.tool-btn:hover svg{transform:scale(1.06)}

/* ---------- 发送前二次确认（主流预览） ---------- */
.x-send-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.x-send-cell{position:relative;aspect-ratio:1/1;border-radius:8px;overflow:hidden;background:var(--field)}
.x-send-cell img{width:100%;height:100%;object-fit:cover;display:block}
.x-send-rm{position:absolute;top:3px;right:3px;width:20px;height:20px;border-radius:50%;border:none;
  background:rgba(0,0,0,.55);color:#FFF;display:flex;align-items:center;justify-content:center;cursor:pointer}
.x-send-rows{display:flex;flex-direction:column;gap:6px}
.x-send-row{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:8px;background:var(--subtle)}
.x-send-ext{flex:0 0 auto;min-width:40px;text-align:center;font-size:11px;font-weight:700;color:#3E7BFA;
  background:rgba(62,123,250,.12);border-radius:6px;padding:6px 6px}
.x-send-name{flex:1;min-width:0;font-size:13px;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.x-send-name i{display:block;font-style:normal;font-size:11.5px;color:var(--muted);margin-top:2px}
.x-send-row .x-send-rm{position:static;flex:0 0 auto;background:transparent;color:var(--muted)}
.x-send-tip{margin-top:12px;font-size:12px;color:var(--faint);text-align:center}

/* ---------- 主流上传动画：气泡蒙层转圈 ---------- */
.x-sending{opacity:.96}
.x-up-mask{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;
  background:rgba(0,0,0,.38);border-radius:4px}
.x-up-ring{width:34px;height:34px;border-radius:50%;border:3px solid rgba(255,255,255,.28);border-top-color:#FFF;
  animation:xUpSpin .8s linear infinite}
.x-up-mask b{font-size:11px;font-weight:400;color:#FFF}
@keyframes xUpSpin{to{transform:rotate(360deg)}}
/* 文件气泡内的小转圈 */
.x-up-mini{display:inline-block;width:11px;height:11px;border-radius:50%;vertical-align:-1.5px;
  border:2px solid rgba(0,0,0,.15);border-top-color:var(--brand);animation:xUpSpin .8s linear infinite}

/* ---------- 未读消息：左侧消息图标主流摇摆闪烁 ---------- */
@keyframes navUnreadShake{
  0%,100%{transform:rotate(0)}
  15%{transform:rotate(-16deg)}
  30%{transform:rotate(12deg)}
  45%{transform:rotate(-8deg)}
  60%{transform:rotate(5deg)}
  75%{transform:rotate(0)}
}
.nav-btn.has-unread svg{animation:navUnreadShake 1.4s ease-in-out infinite;transform-origin:center}

/* ---------- 会话信息侧开框（主流：无标题栏无关闭钮，点外部收起） ---------- */
.x-drawer{width:264px}
.x-drawer .x-drawer-body{padding:18px 16px}
.x-dw-head{display:flex;flex-direction:column;align-items:center;text-align:center;gap:2px;margin-bottom:6px}
.x-dw-head .x-dw-av{margin-bottom:8px}
.x-dw-head .x-dw-av .avatar{width:64px;height:64px;flex:0 0 64px;font-size:22px;border-radius:6px}
.x-dw-head b{font-size:15px;font-weight:600;color:var(--ink);max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.x-dw-head span{font-size:11.5px;color:var(--muted)}
.x-dw-head .x-dw-sign{max-width:200px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.x-dw-group{margin-top:14px}
.x-dw-row{display:flex;align-items:center;gap:12px;height:44px;padding:0 2px;font-size:14px;color:var(--ink);
  border-bottom:1px solid var(--line-soft);cursor:pointer;user-select:none}
.x-dw-row:last-child{border-bottom:none}
.x-dw-ico{color:var(--muted);display:flex;flex:0 0 auto}
.x-dw-txt{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.x-dw-arrow{flex:0 0 auto;width:7px;height:7px;border-right:1.5px solid var(--line);border-bottom:1.5px solid var(--line);transform:rotate(-45deg);margin-right:3px}
.x-dw-row .x-switch{flex:0 0 auto}
.x-dw-row.danger{color:#FA5151}
.x-dw-row.danger .x-dw-txt{color:#FA5151}
/* 危险操作（清空聊天记录/删除联系人/退出/解散）整行居中，对标主流 */
.x-dw-row.danger{justify-content:center;padding:0}
.x-dw-row.danger .x-dw-txt{flex:none}
/* v3.3.4：主流两行行 —— 标签(14px)在上，值(12px 灰)在下，行内编辑输入框 */
.x-dw-row2{padding:9px 2px;border-bottom:1px solid var(--line-soft,#ECECEC);cursor:pointer}
.x-dw-row2:last-child{border-bottom:none}
.x-dw-row2:hover{background:var(--list-hover,#F5F5F5)}
.x-dw-row2 .x-dw-lb{font-size:14px;color:var(--ink);line-height:22px}
.x-dw-row2 .x-dw-vl{font-size:12px;color:var(--muted);line-height:20px;margin-top:2px;word-break:break-all}
.x-dw-row2 .x-dw-vl-txt{color:var(--muted)}
.x-dw-row2 .x-dw-hint{color:var(--faint,#B2B2B2)}
.x-dw-edit{width:100%;height:26px;border:1px solid var(--brand,#15AC70);border-radius:5px;background:#FFF;
  padding:0 6px;font-size:12px;color:var(--ink)}
.x-dw-perm-txt{flex:0 0 auto;font-size:12px;color:var(--muted)}
.x-owner-tag{font-style:normal;font-size:9px;color:var(--brand-strong);border:1px solid var(--brand);
  border-radius:4px;padding:0 3px;line-height:13px;margin-top:-2px}
.x-drawer .x-member-grid{margin:6px 0 4px}
.x-member[data-d]{cursor:pointer;border-radius:8px}
.x-member[data-d]:hover{background:var(--list-hover)}

/* v3.2.19：单向好友 / 拉黑改为星闪小图标标记（去掉绿色描边文字标签） */
.ow-badge{display:inline-flex;align-items:center;font-size:10px;line-height:16px;color:var(--brand-strong);
  border:1px solid var(--brand);border-radius:4px;padding:0 5px;margin-left:8px;white-space:nowrap;vertical-align:1px}
.ow-badge.blocked{color:#E6A23C;border-color:#E6A23C}
.ow-icon{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;margin-left:6px;
  color:var(--brand-strong);vertical-align:-3px;flex:0 0 16px}
.ow-icon.blocked{color:#E6A23C}
.ow-icon svg{width:13px;height:13px;display:block}
.ow-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:6px 0 2px;
  padding:7px 12px;font-size:12px;color:var(--brand-strong);background:var(--brand-soft,#F0F9F1);border-radius:8px}
.ow-bar button{border:1px solid var(--brand);background:transparent;color:var(--brand-strong);
  border-radius:5px;font-size:12px;padding:2px 10px;cursor:pointer}
.ow-bar button:hover{background:var(--brand);color:#fff}

/* ============================================================
   v3.2.15
   ============================================================ */

/* 会话切换过渡：轻微淡入 + 上移，仅切换会话时触发 */
.conv-anim{animation:convIn .2s ease both}
@keyframes convIn{from{opacity:.3;transform:translateY(8px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.conv-anim{animation:none}}

/* 联拓网资料卡：签名一行、地区一行（不再显示星闪号） */
.x-near-dinfo span{max-width:190px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* 资料页「闪友圈」动态区（主流，菜单按钮可收起/展开） */
.profile-moments{margin-top:14px;border:1px solid var(--line-soft,#eee);border-radius:10px;
  background:var(--panel,#fff);overflow:hidden}
.profile-moments-head{display:flex;align-items:center;gap:10px;padding:11px 16px;cursor:pointer;
  border-bottom:1px solid var(--line-soft,#eee)}
.profile-moments-head .pm-title{font-size:13.5px;font-weight:600;color:var(--ink)}
.profile-moments-head .pm-hint{flex:1;font-size:11.5px;color:var(--muted)}
.profile-moments-head .pm-toggle{border:0;background:transparent;color:var(--muted);cursor:pointer;
  display:flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:6px}
.profile-moments-head .pm-toggle:hover{background:var(--list-hover)}
.profile-moments-head .pm-toggle svg{transition:transform .18s ease}
.profile-moments.folded .pm-toggle svg{transform:rotate(-90deg)}
.profile-moments-body{padding:4px 16px 10px}
.profile-moments.folded .profile-moments-body{display:none}
.pm-item{padding:9px 0;border-bottom:1px dashed var(--line-soft,#eee)}
.pm-item:last-child{border-bottom:0}
.pm-text{font-size:12.5px;line-height:19px;color:var(--ink);word-break:break-all}
.pm-thumbs{display:flex;gap:6px;margin-top:6px}
.pm-thumbs img{width:56px;height:56px;border-radius:6px;object-fit:cover;border:1px solid var(--line-soft)}
.pm-time{margin-top:4px;font-size:11px;color:var(--faint,#bbb)}
.pm-empty,.pm-loading{padding:14px 0;text-align:center;font-size:12px;color:var(--muted)}

/* ============================================================
   v3.2.16
   ============================================================ */

/* 发起群聊：主流固定双栏窗（左搜索+首字母分组圆形多选，右已选面板），内部滚动不撑窗 */
.x-cg-dialog{height:500px;display:flex;flex-direction:column}
.x-cg-dialog .x-body{flex:1;min-height:0;overflow:hidden;padding:0}
.x-cg{display:flex;height:100%}
.x-cg-left{width:340px;flex:0 0 340px;display:flex;flex-direction:column;border-right:1px solid var(--line-soft,#eee)}
.x-cg-search{padding:12px 14px 8px}
.x-cg-search input{width:100%;height:32px;border:1px solid var(--line,#e4e6e8);border-radius:6px;
  padding:0 12px;font-size:13px;outline:none;background:var(--field,#f7f7f7);box-sizing:border-box}
.x-cg-search input:focus{border-color:var(--brand,#15AC70)}
.x-cg-scroll{flex:1;min-height:0;overflow-y:auto;padding:0 6px 10px}
.x-cg-sec{display:flex;align-items:center;gap:6px;padding:9px 10px 5px;font-size:13px;color:var(--ink);
  cursor:pointer;user-select:none}
.x-cg-sec.static{cursor:default;color:var(--muted);font-size:12px}
.x-cg-sec .x-cg-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;
  border-top:6px solid var(--muted,#999);transition:transform .16s ease}
.x-cg-sec.open .x-cg-arrow{transform:rotate(180deg)}
.x-cg-letter{padding:7px 10px 3px;font-size:11px;color:var(--faint,#bbb)}
.x-cg-row{display:flex;align-items:center;gap:10px;padding:6px 10px;border-radius:8px;cursor:pointer}
.x-cg-row:hover{background:var(--list-hover,rgba(0,0,0,.035))}
.x-cg-row.on{background:var(--brand-soft,#F0F9F1)}
.x-cg-check{width:17px;height:17px;flex:0 0 17px;border-radius:50%;border:1.5px solid #C6CACC;
  display:flex;align-items:center;justify-content:center;box-sizing:border-box;transition:all .14s ease}
.x-cg-row.on .x-cg-check{border-color:var(--brand,#15AC70);background:var(--brand,#15AC70)}
.x-cg-row.on .x-cg-check::after{content:"";width:8px;height:4.5px;border-left:1.8px solid #fff;
  border-bottom:1.8px solid #fff;transform:rotate(-45deg) translate(0.5px,-1px)}
.x-cg-check-grp{border:0;background:transparent}
.x-cg-check-grp svg{width:13px;height:13px;color:var(--muted)}
/* v3.6.52：邀请进群 —— 已入群成员无背景，仅灰勾默认选中 + 名字/头像置灰，不可取消 */
.x-cg-row.locked{cursor:default;background:transparent}
.x-cg-row.locked:hover{background:transparent}
.x-cg-row.locked .x-cg-check{border-color:#BDC4C8;background:#C9CFD2}
.x-cg-row.locked .x-cg-check::after{border-color:#fff}
.x-cg-row.locked .x-cg-av{opacity:.5;filter:grayscale(1)}
.x-cg-row.locked .x-cg-name,.x-cg-locked-tip{color:var(--faint,#B2B2B2)}
.x-cg-locked-tip{margin-left:8px;font-size:11px;font-weight:400}
.x-cg-av{width:32px;height:32px;flex:0 0 32px}
.x-cg-av .avatar{width:32px;height:32px;font-size:13px}
/* v3.6.50：已有群行使用九宫格合成头像（group-avatar 基础尺寸是 34px，这里压到 32px 对齐联系人行） */
.x-cg-av .group-avatar{width:32px;height:32px;border-radius:4px;padding:0}
.x-cg-av .group-avatar .ga-cell{border-radius:1px}
.x-cg-name{flex:1;min-width:0;font-size:13.5px;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.x-cg-empty{padding:22px 10px;text-align:center;font-size:12px;color:var(--muted)}
.x-cg-right{flex:1;min-width:0;display:flex;flex-direction:column}
.x-cg-right-title{padding:14px 18px 8px;font-size:13.5px;font-weight:600;color:var(--ink)}
.x-cg-picked{flex:1;min-height:0;overflow-y:auto;padding:4px 18px}
.x-cg-pick{display:flex;align-items:center;gap:10px;padding:6px 0}
/* v3.2.20：右侧已选头像与左侧一致（32px，圆形裁剪不截断） */
.x-cg-pick .avatar{width:32px;height:32px;flex:0 0 32px;font-size:13px;overflow:hidden}
.x-cg-pick .avatar img{width:100%;height:100%;object-fit:cover;display:block}
.x-cg-av .avatar{overflow:hidden}
.x-cg-av .avatar img{width:100%;height:100%;object-fit:cover;display:block}
.x-cg-pick span{font-size:13px;color:var(--ink)}
.x-cg-foot{flex:0 0 auto;display:flex;justify-content:flex-end;gap:10px;padding:12px 18px 16px}

/* v3.2.21：标签弹窗对标「发起群聊」——固定 500px 高、720 宽，内部滚动 */
.x-tag-dialog{height:500px;display:flex;flex-direction:column}
.x-tag-dialog .x-body{flex:1;min-height:0;overflow:hidden;padding:0}
.x-tag2{display:flex;height:100%}
.x-tag2-left{width:240px;flex:0 0 240px;border-right:1px solid var(--line-soft,#eee);display:flex;flex-direction:column}
.x-tag2-new{padding:14px 12px 10px;display:flex;gap:8px;align-items:center}
.x-tag2-new .x-input{flex:1;min-width:0;height:30px;border:1px solid var(--line,#e4e6e8);border-radius:6px;
  padding:0 10px;font-size:12.5px;outline:none;background:#fff;box-sizing:border-box;color:var(--ink)}
.x-tag2-new .x-input::placeholder{color:var(--faint,#b2b2b2)}
.x-tag2-new .x-input:focus{border-color:var(--brand,#15AC70)}
.x-tag2-new .btn-green{height:30px;min-width:60px;flex:0 0 auto}
.x-tag2-list{flex:1;min-height:0;overflow-y:auto;padding:0 8px 10px}
.x-tag2-item{display:flex;align-items:center;justify-content:space-between;gap:8px;height:38px;
  padding:0 10px;border-radius:7px;cursor:pointer;font-size:13px;color:var(--ink)}
.x-tag2-item:hover{background:var(--list-hover,rgba(0,0,0,.04))}
.x-tag2-item.on{background:var(--list-hover,rgba(0,0,0,.04));font-weight:600;color:var(--brand-strong)}
.x-tag2-c{font-size:11px;color:var(--faint,#bbb);font-weight:400;white-space:nowrap}
.x-tag2-right{flex:1;min-width:0;display:flex;flex-direction:column}
.x-tag2-head{display:flex;align-items:center;gap:10px;padding:14px 16px 10px;border-bottom:1px solid var(--line-soft,#eee)}
.x-tag2-head b{font-size:14px;color:var(--ink);white-space:nowrap}
.x-tag2-count{font-size:12px;color:var(--muted);white-space:nowrap}
.x-tag2-head .x-tag-edit{margin-left:auto;height:26px;padding:0 12px;border-radius:6px;border:1px solid var(--line,#e4e6e8);
  background:var(--panel,#fff);color:var(--muted);font-size:12px;cursor:pointer}
.x-tag2-head .x-tag-edit:hover{color:var(--brand-strong);border-color:var(--brand,#15AC70)}
.x-tag2-head .x-input{flex:1;min-width:0;height:30px;border:1px solid var(--line,#e4e6e8);border-radius:6px;
  padding:0 10px;font-size:13px;outline:none;background:#fff;box-sizing:border-box;color:var(--ink)}
.x-tag2-head .btn-green.small,.x-tag2-head .btn-outline.small{height:30px;flex:0 0 auto}
.x-tag2-members{flex:1;min-height:0;overflow-y:auto;padding:6px 10px}
.x-tag2-row{display:flex;align-items:center;gap:10px;height:44px;padding:0 8px;border-radius:8px;cursor:pointer}
.x-tag2-row:hover{background:var(--list-hover,rgba(0,0,0,.04))}
.x-tag2-check{width:16px;height:16px;flex:0 0 16px;border-radius:50%;border:1.5px solid #C6CACC;
  box-sizing:border-box;display:flex;align-items:center;justify-content:center}
.x-tag2-row.on .x-tag2-check{border-color:var(--brand,#15AC70);background:var(--brand,#15AC70)}
.x-tag2-row.on .x-tag2-check::after{content:"";width:7px;height:4px;border-left:1.6px solid #fff;
  border-bottom:1.6px solid #fff;transform:rotate(-45deg) translate(0.5px,-0.5px)}
.x-tag2-av{width:30px;height:30px;flex:0 0 30px}
.x-tag2-av .avatar{width:30px;height:30px;font-size:12px;overflow:hidden}
.x-tag2-av .avatar img{width:100%;height:100%;object-fit:cover;display:block}
.x-tag2-name{flex:1;min-width:0;font-size:13px;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.x-tag2-tags{font-size:11px;color:var(--faint,#bbb);max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.x-tag2-tip{padding:9px 16px;border-top:1px solid var(--line-soft,#eee);font-size:11.5px;color:var(--faint,#bbb)}
.x-tag2-empty{padding:40px 0;text-align:center;font-size:12px;color:var(--muted)}

/* 标签弹窗：旧单栏样式保留兼容 */
.x-tag-row{position:relative}
.x-tag-name{flex:1;min-width:0;font-size:13.5px;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.x-tag-multi{flex:0 0 auto;max-width:200px;display:inline-flex;align-items:center;gap:6px;height:30px;
  padding:0 10px;border:1px solid var(--line,#e4e6e8);border-radius:6px;background:var(--panel,#fff);
  font-size:12.5px;color:var(--ink);cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.x-tag-multi.none{color:var(--muted,#999)}
.x-tag-multi:hover{border-color:var(--brand,#15AC70)}
.x-tag-multi .x-caret{width:0;height:0;border-left:4px solid transparent;border-right:4px solid transparent;
  border-top:5px solid var(--muted,#999)}
.x-tag-pop{display:none;position:absolute;right:0;top:34px;z-index:5;min-width:150px;max-width:220px;
  background:var(--panel,#fff);border:1px solid var(--line-soft,#eee);border-radius:8px;
  box-shadow:0 10px 30px rgba(0,0,0,.14);padding:5px;flex-direction:column}
.x-tag-row.open .x-tag-pop{display:flex}
.x-tag-opt{display:flex;align-items:center;gap:8px;padding:6px 10px;border-radius:6px;font-size:12.5px;
  color:var(--ink);cursor:pointer;white-space:nowrap}
.x-tag-opt:hover{background:var(--list-hover,rgba(0,0,0,.04))}
.x-tag-opt::before{content:"";width:14px;height:14px;flex:0 0 14px;border-radius:50%;
  border:1.5px solid #C6CACC;box-sizing:border-box}
.x-tag-opt.on::before{border-color:var(--brand,#15AC70);background:var(--brand,#15AC70)}
.x-tag-opt.on{color:var(--brand-strong,#15AC70)}
.x-tag-opt.none{color:var(--muted);cursor:default}
.x-tag-opt.none::before{display:none}

/* 申请添加朋友（v3.2.16 主流）：申请文字 textarea + 备注 + 朋友权限单选，均可不设置 */
.x-frreq{padding:2px 2px 0}
.x-frreq-k{font-size:13px;color:var(--ink);margin:12px 0 7px}
.x-frreq .x-frreq-k:first-child{margin-top:0}
.x-frreq-area{width:100%;height:72px;border:1px solid var(--line,#e4e6e8);border-radius:8px;
  padding:9px 12px;font-size:13px;line-height:20px;color:var(--ink);resize:none;outline:none;
  font-family:inherit;box-sizing:border-box;background:var(--panel)}
.x-frreq-area:focus{border-color:var(--brand,#15AC70)}
.x-frreq .x-input{height:36px;border:1px solid var(--line,#e4e6e8);border-radius:8px;
  padding:0 12px;font-size:13px;outline:none;background:var(--panel);width:100%;box-sizing:border-box}
.x-frreq .x-input:focus{border-color:var(--brand,#15AC70)}
.x-frreq-radio{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--ink);
  padding:6px 0;cursor:pointer}
.x-frreq-radio input{accent-color:#15AC70;width:15px;height:15px;margin:0}

/* 联系人资料页（v3.2.16 对标主流）：左对齐头部 + ···菜单 + 信息行 + 底部三图标按钮
   v3.2.17：必须覆盖 .profile 的 width:420px / align-items:center / flex 收缩，
   否则外层 flex 会把内容压成窄列，字段值出现「中国安徽」单字竖排、分组标题错位。 */
.profile.pf{width:100%;max-width:560px;min-width:0;flex:1 1 auto;display:block;
  margin:0 auto;padding:28px 40px 40px;text-align:left;box-sizing:border-box}
.pf-head{display:flex;align-items:flex-start;gap:16px;position:relative}
.pf-head .pf-av{width:60px;height:60px;flex:0 0 60px}
.pf-head .pf-av img{width:60px;height:60px;object-fit:cover}
.pf-head-info{flex:1;min-width:0;padding-top:2px}
.pf-head-info b{display:block;font-size:18px;font-weight:600;color:var(--ink);line-height:26px}
.pf-head-info span{display:block;margin-top:5px;font-size:12px;color:var(--muted)}
.pf-more{border:0;background:transparent;color:var(--muted);cursor:pointer;width:32px;height:32px;
  display:flex;align-items:center;justify-content:center;border-radius:6px;margin-top:4px}
.pf-more:hover{background:var(--list-hover);color:var(--ink)}
.pf-menu{display:none;position:absolute;right:0;top:40px;z-index:30;min-width:150px;
  background:var(--panel,#fff);border:1px solid var(--line-soft,#eee);border-radius:8px;
  box-shadow:0 12px 32px rgba(0,0,0,.14);padding:5px;flex-direction:column}
.pf-menu.open{display:flex}
.pf-menu-item{border:0;background:transparent;text-align:left;font-size:13px;color:var(--ink);
  padding:8px 12px;border-radius:6px;cursor:pointer;white-space:nowrap}
.pf-menu-item:hover{background:var(--list-hover)}
.pf-menu-item.danger{color:#FA5151}
.pf-way{margin-top:10px;font-size:12px;color:var(--brand-strong)}
.pf-sec{margin:20px 0 4px;font-size:12px;color:var(--faint,#bbb);text-align:left}
.pf-row{display:flex;align-items:center;gap:18px;padding:11px 0;border-bottom:1px solid var(--line-soft,#f0f0f0);width:100%}
.pf-k{flex:0 0 64px;font-size:13.5px;color:var(--ink);white-space:nowrap}
.pf-v{flex:1 1 auto;min-width:0;max-width:100%;font-size:13.5px;color:var(--ink);
  display:flex;align-items:center;gap:6px;flex-wrap:wrap;white-space:normal;word-break:break-word}
.pf-v.pf-hint,.pf-hint{color:var(--muted,#9aa)}
.pf-row .pf-v[data-action]{cursor:pointer}
.pf-row .pf-v[data-action]:hover{color:var(--brand-strong)}
.pf-mom-thumb{width:48px;height:48px;border-radius:6px;object-fit:cover;border:1px solid var(--line-soft)}
.pf-actions{display:flex;justify-content:space-around;margin-top:26px;padding-top:18px;
  border-top:1px solid var(--line-soft,#f0f0f0)}
.pf-act{border:0;background:transparent;display:flex;flex-direction:column;align-items:center;gap:6px;
  color:var(--link,#576B95);font-size:12px;cursor:pointer;padding:4px 18px;border-radius:8px}
.pf-act:hover{background:var(--list-hover)}
.pf-act svg{width:22px;height:22px}

/* ---------------------------------------------------------------- v3.2.18
 * 「发现」页对标主流二级菜单：菜单宽度一致、白底彩色图标、绿底白字选中态，
 * 且该视图不显示搜索栏与加号按钮（即时通讯的发现菜单同样没有）。 */
body[data-view="moments"] .search-row{display:none}
body[data-view="moments"] .list-col{width:var(--list-w);flex:0 0 var(--list-w)}
body[data-view="moments"] .list-panel{background:var(--panel,#fff)}
body[data-view="moments"] .group-bar{height:40px;background:#FFFFFF;
  font-size:13px;color:var(--muted);padding-left:20px}
body[data-view="moments"] .simple-row.mom-row{height:44px;padding:0 20px;background:var(--panel,#fff)}
body[data-view="moments"] .simple-row.mom-row .row-text{margin-left:14px;font-size:14px}
body[data-view="moments"] .simple-row.mom-row:hover{background:var(--list-hover)}
body[data-view="moments"] .simple-row.mom-row.active,
body[data-view="moments"] .simple-row.mom-row.active:hover{background:var(--brand,#15AC70)}
body[data-view="moments"] .simple-row.mom-row.active .row-text{color:#FFF}
body[data-view="moments"] .simple-row.mom-row.active .row-ico{color:#FFF !important}
body[data-view="moments"] .simple-row.mom-row.active .row-ico svg{stroke:#FFF}

/* 主流「独立窗口显示」：只保留会话区 */
body[data-standalone="1"] .nav,
body[data-standalone="1"] .list-col{display:none}
body[data-standalone="1"] .content-col{width:100%}

/* v3.2.19：发起群聊对标主流 —— 右上已选计数、已选行可移除、完成在取消左侧 */
.x-cg-right-title{display:flex;align-items:center;justify-content:space-between;gap:10px}
.x-cg-count{font-size:12px;font-weight:400;color:var(--muted);white-space:nowrap}
.x-cg-pick-x{margin-left:auto;border:0;background:transparent;color:var(--muted);font-size:16px;
  line-height:1;width:20px;height:20px;border-radius:50%;cursor:pointer;flex:0 0 20px}
.x-cg-pick-x:hover{background:var(--list-hover);color:var(--ink)}
.x-cg-foot button{min-width:76px}

/* ================= v3.3.0 StarGPT ================= */
/* AI 角标：头像右下角星形徽标（不超过图标宽度 1/3）
   v3.6.22：修复角标被图片盖住/被 overflow 裁掉 —— 头像本身解除裁切、
   图片与兜底层各自圆角裁切，角标 z-index 抬到图片之上（顶层）。 */
.avatar-ai{position:relative;overflow:visible}
.avatar-ai img,.avatar-ai .av-fb{border-radius:inherit}
.avatar-ai::after{content:"✦";position:absolute;right:-3px;bottom:-3px;width:34%;max-width:18px;height:34%;max-height:18px;
  border-radius:50%;background:var(--brand,#15AC70);color:#fff;font-size:10px;font-style:normal;line-height:1;
  display:flex;align-items:center;justify-content:center;border:1.5px solid #fff;box-sizing:border-box;
  font-family:Arial,sans-serif;padding:1px;z-index:3;box-shadow:0 1px 3px rgba(0,0,0,.18)}

/* AI 消息气泡：Markdown 正文 */
.bubble.ai-bubble{max-width:520px;padding:10px 14px}
.ai-md{font-size:13.5px;line-height:1.65;color:var(--ink);word-break:break-word}
/* v3.5.15：实时数据回答的来源徽标（不透明浅绿，暗色主题自动适配） */
.ai-realtime{display:inline-block;margin:0 0 7px;padding:2px 8px;border-radius:10px;
  font-size:11px;line-height:1.5;color:#0a7d4b;background:#e7f7ee;border:1px solid #c9ecd9}
[data-theme="dark"] .ai-realtime{color:#7fe0ad;background:rgba(30,120,80,.22);border-color:rgba(90,190,140,.35)}
.ai-md p{margin:0 0 8px}
.ai-md p:last-child{margin-bottom:0}
.ai-md ul,.ai-md ol{margin:4px 0 8px;padding-left:20px}
.ai-md li{margin:2px 0}
.ai-h{font-weight:700;font-size:14px;margin:10px 0 6px}
.ai-h:first-child{margin-top:0}
.ai-md code{background:rgba(0,0,0,.06);border-radius:4px;padding:1px 5px;font-size:12px;
  font-family:Consolas,Menlo,monospace}
.ai-code{background:#F6F8FA;border:1px solid var(--line-soft,#E8EAED);border-radius:8px;
  padding:9px 12px;margin:8px 0;font-size:12px;line-height:1.55;white-space:pre-wrap;word-break:break-all;
  font-family:Consolas,Menlo,monospace;color:var(--ink);position:relative}
.ai-code i{display:block;font-style:normal;font-size:10px;color:var(--faint,#B2B2B2);margin-bottom:3px}
.ai-md blockquote{border-left:3px solid var(--brand,#15AC70);background:var(--brand-soft,#F0F9F1);
  margin:8px 0;padding:6px 10px;border-radius:0 6px 6px 0;color:var(--muted)}
.ai-link{color:var(--brand-strong,#12995F);text-decoration:underline;cursor:pointer}
.ai-link:active{opacity:.7}
/* 思考摘要折叠（历史消息） */
.ai-reason{margin:-2px 0 8px;border:1px solid var(--line-soft,#E8EAED);border-radius:8px;overflow:hidden}
.ai-reason summary{list-style:none;cursor:pointer;font-size:12px;color:var(--muted);
  padding:6px 10px;background:var(--field,#F7F7F7);display:flex;align-items:center;gap:6px;user-select:none}
.ai-reason summary::-webkit-details-marker{display:none}
.ai-reason-star{font-style:normal;color:var(--brand,#15AC70);font-size:11px}
.ai-reason-arrow{margin-left:auto;font-style:normal;transition:transform .18s ease;font-size:10px}
.ai-reason[open] .ai-reason-arrow{transform:rotate(90deg)}
.ai-reason-body{padding:8px 10px;font-size:12px;line-height:1.6;color:var(--muted);
  max-height:180px;overflow-y:auto;white-space:pre-wrap;word-break:break-word}
/* v3.6.11：思考区与正式回答明确分区，展开思考也不会和正文糊成一块 */
.bubble.ai-bubble .ai-reason[open] ~ .ai-md{border-top:1px solid var(--line-soft,#E8EAED);padding-top:9px}
/* 操作行：复制 / 重新生成（默认半透明，悬停气泡显现） */
.ai-acts{display:flex;gap:14px;margin-top:8px;opacity:.45;transition:opacity .15s ease}
.ai-bubble:hover .ai-acts{opacity:1}
.ai-acts span{font-size:11.5px;color:var(--muted);cursor:pointer;user-select:none}
.ai-acts span:hover{color:var(--brand-strong,#12995F)}
.ai-stopped{margin-top:6px;font-size:11px;color:var(--faint,#B2B2B2)}

/* 流式行：路由占位（三点脉冲） */
.stargpt-live .sg-stage{display:inline-flex;align-items:center;gap:10px;background:var(--panel,#fff);
  border:1px solid var(--line-soft,#E8EAED);border-radius:14px;padding:9px 14px}
.sg-dots{display:inline-flex;gap:4px}
.sg-dots i{width:6px;height:6px;border-radius:50%;background:var(--brand,#15AC70);opacity:.35;
  animation:sgPulse 1.2s ease-in-out infinite}
.sg-dots i:nth-child(2){animation-delay:.2s}
.sg-dots i:nth-child(3){animation-delay:.4s}
@keyframes sgPulse{0%,100%{opacity:.25;transform:scale(.9)}50%{opacity:1;transform:scale(1.1)}}
.sg-stage-text{font-size:12.5px;color:var(--muted)}
/* 思考折叠行（流式过程） */
.sg-fold{display:inline-flex;align-items:center;gap:8px;background:var(--field,#F7F7F7);
  border-radius:12px;padding:7px 12px;margin-bottom:8px;max-width:520px}
.sg-fold.done{opacity:.75}
.sg-star{font-style:normal;color:var(--brand,#15AC70);font-size:13px;animation:sgBreath 2s ease-in-out infinite}
@keyframes sgBreath{0%,100%{opacity:.5}50%{opacity:1}}
.sg-fold-text{font-size:12.5px;color:var(--muted);
  background:linear-gradient(100deg,var(--muted) 40%,#3a3a3a 50%,var(--muted) 60%);
  background-size:200% 100%;-webkit-background-clip:text;background-clip:text;
  animation:sgShimmer 5s linear infinite}
.sg-fold.done .sg-fold-text{animation:none;background:none;color:var(--muted)}
@keyframes sgShimmer{0%{background-position:120% 0}100%{background-position:-80% 0}}
.sg-arrow{font-size:11px;color:var(--faint,#B2B2B2)}
/* 推理视口：约 4 行高（96px），上下渐隐，自动跟随 */
.sg-reason{max-width:520px;height:96px;overflow:hidden;position:relative;margin-bottom:8px;
  -webkit-mask-image:linear-gradient(180deg,transparent 0,#000 36px,#000 calc(100% - 30px),transparent 100%);
  mask-image:linear-gradient(180deg,transparent 0,#000 36px,#000 calc(100% - 30px),transparent 100%)}
.sg-reason-scroll{height:100%;overflow-y:auto;scrollbar-width:none;font-size:12px;line-height:1.55;
  color:var(--muted);white-space:pre-wrap;word-break:break-word}
.sg-reason-scroll::-webkit-scrollbar{display:none}
/* v3.3.3：思考阶段完整展示推理（去渐隐遮罩，上限 40vh 防止把会话顶出窗口） */
.sg-reason.full{height:auto;max-height:40vh}
.sg-reason.full .sg-reason-scroll{height:auto;max-height:40vh}
.sg-reason.full{-webkit-mask-image:none;mask-image:none}
/* v3.3.4：思考→回答折叠过渡丝滑（高度渐变），完成时整行交叉淡出交给真实消息 */
.sg-reason{transition:height .3s ease,max-height .3s ease}
.stargpt-live.sg-out{opacity:0;transition:opacity .2s ease}
/* v3.3.6：回答气泡淡入过渡 + 思考停顿期气泡隐藏（布局占位不变） */
.sg-in{animation:sgBubbleIn .28s ease both}
@keyframes sgBubbleIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.stargpt-live .bubble{transition:opacity .3s ease}
.stargpt-live .bubble.sg-wait{opacity:0}
/* 流式光标：主色细竖线 */
.sg-caret{display:inline-block;width:2px;height:14px;background:var(--brand,#15AC70);
  vertical-align:-2px;margin-left:2px;animation:sgCaret 1s steps(1) infinite}
@keyframes sgCaret{50%{opacity:0}}
.bubble.ai-bubble.streaming{min-height:38px}

/* 右侧抽屉（三个点 → StarGPT）v3.3.2：与普通聊天信息抽屉一致，
   无标题无关闭按钮，点击空白处自动收起；顶部居中头像 + 名称头。 */
.sg-panel{position:absolute;top:48px;right:0;bottom:0;width:300px;background:var(--panel,#fff);
  border-left:1px solid var(--line,#E5E5E5);
  display:flex;flex-direction:column;z-index:60;
  animation:sgpIn .2s cubic-bezier(.2,.8,.2,1)}
@keyframes sgpIn{from{transform:translateX(24px);opacity:0}to{transform:none;opacity:1}}
.sgp-hero{flex:0 0 auto;display:flex;flex-direction:column;align-items:center;text-align:center;gap:2px;
  padding:26px 16px 14px;border-bottom:1px solid var(--line-soft,#E8EAED)}
.sgp-hero .avatar{width:64px;height:64px;flex:0 0 64px;font-size:22px;border-radius:6px;margin-bottom:8px}
.sgp-hero b{font-size:15px;font-weight:600;color:var(--ink)}
.sgp-hero span{font-size:11.5px;color:var(--muted)}
.sgp-body{flex:1;overflow-y:auto;padding:14px 16px 20px}
.sgp-sec{font-size:11px;color:var(--faint,#B2B2B2);margin:14px 0 8px;letter-spacing:.05em}
.sgp-body .sgp-sec:first-child{margin-top:2px}
.sgp-modes{display:flex;background:var(--field,#F7F7F7);border-radius:9px;padding:3px;gap:3px}
.sgp-modes button{flex:1;border:0;background:transparent;border-radius:7px;padding:7px 0;font-size:12.5px;
  color:var(--muted);cursor:pointer;transition:all .15s ease}
.sgp-modes button.on{background:#fff;color:var(--brand-strong,#12995F);font-weight:600;
  box-shadow:0 1px 3px rgba(0,0,0,.08)}
.sgp-row{display:flex;align-items:center;gap:10px;padding:11px 10px;border-radius:9px;cursor:pointer;font-size:13px;color:var(--ink)}
.sgp-row:hover{background:var(--list-hover,rgba(0,0,0,.04))}
.sgp-row i{font-style:normal;color:var(--brand,#15AC70);font-size:14px;width:18px;text-align:center}
.sgp-row span{flex:0 0 auto}
.sgp-row em{margin-left:auto;font-style:normal;font-size:11px;color:var(--faint,#B2B2B2);
  max-width:160px;text-align:right;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sgp-hist{margin:6px 0 4px;border:1px solid var(--line-soft,#E8EAED);border-radius:9px;overflow:hidden}
.sgp-his-row{position:relative;padding:9px 34px 9px 12px;border-bottom:1px solid var(--line-soft,#E8EAED);cursor:pointer}
.sgp-his-row:last-child{border-bottom:0}
.sgp-his-row:hover{background:var(--list-hover,rgba(0,0,0,.04))}
/* v3.5.22：对话历史行尾删除小图标（默认半透明，hover 显现） */
.sgp-his-del{position:absolute;right:8px;top:50%;transform:translateY(-50%);width:22px;height:22px;
  border:none;background:transparent;color:var(--faint,#B2B2B2);cursor:pointer;border-radius:6px;
  display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity .15s,color .15s}
.sgp-his-row:hover .sgp-his-del{opacity:1}
.sgp-his-del:hover{color:#E34B4B;background:rgba(227,75,75,.08)}
.sgp-his-del svg{pointer-events:none}
.sgp-his-row b{display:block;font-size:12.5px;color:var(--ink);font-weight:600;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sgp-his-row span{font-size:11px;color:var(--faint,#B2B2B2)}
.sgp-hint{padding:10px 12px;font-size:11.5px;color:var(--muted)}
.sgp-info{margin-top:8px;border:1px solid var(--line-soft,#E8EAED);border-radius:9px;padding:6px 12px}
.sgp-info>div{display:flex;align-items:center;justify-content:space-between;padding:6px 0;font-size:12px}
.sgp-info span{color:var(--muted)}
.sgp-info b{color:var(--ink);font-weight:500;max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sgp-about{border:1px solid var(--line-soft,#E8EAED);border-radius:9px;overflow:hidden}
.sgp-about-head{padding:9px 12px;font-size:12.5px;color:var(--ink);cursor:pointer;display:flex;justify-content:space-between}
.sgp-about-head:hover{background:var(--list-hover,rgba(0,0,0,.04))}
.sgp-about-body{padding:4px 12px 10px;font-size:11.5px;line-height:1.7;color:var(--muted)}
.sgp-about-body p{margin:6px 0}

/* 会话头副标题 + 发送按钮停止态 + 资料卡 AI 元素 */
.chat-title small#chatSubtitle{color:var(--muted);font-weight:400;margin-left:6px}
.btn-send.stopping{background:#E34B4B;color:#fff}
.pf-ai-status{margin-left:8px;display:inline-flex;align-items:center;gap:4px;font-size:11px;color:var(--brand-strong,#12995F)}
.pf-ai-status::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--brand,#15AC70)}
.pf-ai-mode{display:inline-flex;background:var(--brand-soft,#F0F9F1);color:var(--brand-strong,#12995F);
  border-radius:10px;padding:2px 10px;font-size:12px;font-weight:600}
@media (prefers-reduced-motion: reduce){
  .sg-dots i,.sg-star,.sg-fold-text,.sg-caret,.sg-panel{animation:none;transition:none}
}

/* ---- v3.3.0 第二期：引用 / 参考文献 / 面板扩展 ---- */
.ai-ref{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:16px;
  padding:0 4px;margin:0 2px;border-radius:8px;background:var(--brand-soft,#F0F9F1);
  color:var(--brand-strong,#12995F);font-size:10px;font-weight:600;cursor:pointer;vertical-align:1px}
.ai-ref:active{transform:scale(.92)}
.ai-refs{margin-top:8px;border:1px solid var(--line-soft,#E8EAED);border-radius:8px;overflow:hidden}
.ai-refs summary{list-style:none;cursor:pointer;font-size:12px;color:var(--muted);padding:6px 10px;
  background:var(--field,#F7F7F7);user-select:none}
.ai-refs summary::-webkit-details-marker{display:none}
.ai-ref-item{padding:7px 10px;border-top:1px solid var(--line-soft,#E8EAED);font-size:12px;color:var(--ink)}
.ai-ref-item b{color:var(--brand-strong,#12995F);font-size:11px;margin-right:2px}
.ai-ref-title{font-weight:500}
.ai-ref-url{margin-left:6px;font-size:11px;color:var(--brand-strong,#12995F);cursor:pointer;
  text-decoration:underline;word-break:break-all}
.ai-ref-snip{margin-top:3px;font-size:11px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap}
/* 面板：风格芯片 / 自定义输入 / 播报开关 */
.sgp-style{margin:8px 0 4px;border:1px solid var(--line-soft,#E8EAED);border-radius:9px;padding:8px}
.sgp-chips{display:flex;flex-wrap:wrap;gap:6px}
.sgp-chips button{border:1px solid var(--line,#E4E6E8);background:#fff;border-radius:14px;
  padding:5px 12px;font-size:12px;color:var(--muted);cursor:pointer}
.sgp-chips button.on{background:var(--brand-soft,#F0F9F1);border-color:var(--brand,#15AC70);
  color:var(--brand-strong,#12995F);font-weight:600}
.sgp-style textarea{width:100%;margin-top:8px;border:1px solid var(--line,#E4E6E8);border-radius:7px;
  padding:7px 9px;font-size:12px;color:var(--ink);resize:vertical;box-sizing:border-box;
  font-family:inherit;background:var(--field,#F7F7F7)}
.sgp-style textarea:focus{border-color:var(--brand,#15AC70);outline:none}
.sgp-save{margin-top:8px;width:100%;border:0;background:var(--brand,#15AC70);color:#fff;border-radius:7px;
  padding:8px 0;font-size:12.5px;cursor:pointer}
.sgp-save:hover{background:var(--brand-strong,#12995F)}
.sgp-sw{width:36px;height:20px;border-radius:10px;background:#D6D9DB;position:relative;
  transition:background .18s ease;flex:0 0 36px;margin-left:8px}
.sgp-sw i{position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:#fff;
  transition:left .18s ease;box-shadow:0 1px 3px rgba(0,0,0,.15)}
.sgp-sw.on{background:var(--brand,#15AC70)}
.sgp-sw.on i{left:18px}
/* v3.5.6：开关推到行尾（与其他行右侧「自动」等元素右对齐） */
.sgp-row .sgp-sw{margin-left:auto;flex:0 0 auto}
.sgp-row.static{cursor:default}
.sgp-row.static:hover{background:transparent}
.sgp-web-note{margin:6px 0 2px;font-size:11px;color:var(--faint,#B2B2B2);padding:0 4px}
.sgp-ch{display:flex;align-items:baseline;justify-content:space-between;gap:8px;padding:4px 0}
.sgp-ch b{font-size:12px;color:var(--ink);font-weight:600}
.sgp-ch span{font-size:11px;color:var(--muted)}

/* ================= v3.3.1 ================= */
/* 群聊面板主流补充 */
.x-dw-search{padding:2px 0 10px}
.x-dw-search input{width:100%;height:34px;border:1px solid var(--line,#E4E6E8);border-radius:8px;
  padding:0 12px;font-size:12.5px;color:var(--ink);background:var(--field,#F7F7F7);box-sizing:border-box;outline:none}
.x-dw-search input:focus{border-color:var(--brand,#15AC70);background:#fff}
.x-member-add{cursor:pointer}
.x-member-add i{width:44px;height:44px;border-radius:6px;background:transparent;border:1px dashed var(--line,#C9CDD2);
  box-sizing:border-box;display:flex;align-items:center;justify-content:center;font-style:normal;font-size:22px;color:var(--faint,#B2B2B2)}

/* ================= v3.3.6 ================= */
/* 面板顶部间隙收紧（对标主流：搜索框贴近头部） */
.x-drawer .x-drawer-body{padding:10px 16px 16px}
.x-drawer-body .x-dw-group:first-child{margin-top:0}
/* v3.6.52：成员头像调到与左侧会话列表一致（34px），去掉"群主"角标 */
.x-drawer .x-member-grid{gap:10px}
.x-drawer .x-member .avatar{width:34px;height:34px;flex:0 0 34px;font-size:13px}
.x-drawer .x-member{font-size:11px;gap:6px}
.x-drawer .x-member-add i{width:34px;height:34px}
.x-owner-tag{display:none}
/* v3.6.53：群详情侧栏字号整体缩小；昵称超长截断+悬停完整；行内输入框恢复可编辑 */
.x-drawer .x-dw-row{height:40px;font-size:12.5px}
.x-drawer .x-dw-row2{padding:7px 2px}
.x-drawer .x-dw-row2 .x-dw-lb{font-size:12.5px;line-height:19px}
.x-drawer .x-dw-row2 .x-dw-vl{font-size:11px;line-height:17px;margin-top:1px}
.x-drawer .x-dw-perm-txt{font-size:11px}
.x-drawer .x-dw-search input{height:30px;font-size:11.5px}
.x-drawer .x-member{font-size:10px;gap:5px}
.x-drawer .x-member .avatar{font-size:12px}
.x-drawer .x-member span{max-width:100%;height:14px;line-height:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.x-dw-edit{user-select:text;-webkit-user-select:text}
.x-dw-edit:focus{border-color:var(--brand,#15AC70);box-shadow:0 0 0 2px rgba(21,172,112,.12)}
/* v3.6.53：成员磁贴右键提示（移除/转让菜单），替代旧 data-d 点击态 */
.x-drawer .x-member[data-uid]{cursor:context-menu;border-radius:8px}
.x-drawer .x-member[data-uid]:hover{background:var(--list-hover)}
/* v3.6.54：成员右键小菜单收窄 + 分区（仅成员菜单，不影响消息/会话右键菜单） */
.context-menu.x-member-ctx{width:104px;padding:3px 0}
.context-menu.x-member-ctx .ctx-item{height:30px;padding:0 12px;font-size:12px}
.context-menu.x-member-ctx .ctx-sep{margin:3px 6px}
/* v3.6.55：转让确认码弹窗重构为简洁卡片风（标题居中 / 标签+格子同行 / 通栏按钮） */
.x-dialog.x-tf-dialog{border-radius:14px}
.x-dialog.x-tf-dialog .x-head{height:auto;flex:0 0 auto;justify-content:center;position:relative;
  padding:20px 20px 0;border-bottom:0;font-size:15px;font-weight:500}
.x-dialog.x-tf-dialog .x-head button{position:absolute;right:16px;top:14px;width:20px;font-size:18px}
.x-dialog.x-tf-dialog .x-body{padding:14px 26px 8px}
.x-dialog.x-tf-dialog .x-foot{height:auto;flex:0 0 auto;padding:6px 26px 22px;border-top:0}
.x-tf-desc{font-size:11px;color:var(--muted);line-height:18px;text-align:center;margin-bottom:18px}
.x-tf-row{display:flex;align-items:center;justify-content:space-between;gap:10px}
.x-tf-label{font-size:12px;color:var(--muted);white-space:nowrap}
.x-tf-cells{display:flex;gap:4px}
.x-tf-cell{width:32px;height:38px;display:flex;align-items:center;justify-content:center;
  border:1px solid var(--line,#E4E6E8);border-radius:5px;background:var(--field,#F7F7F7);
  font-size:17px;font-weight:600;color:var(--ink);font-variant-numeric:tabular-nums;user-select:none}
.x-tf-refresh-row{text-align:right;margin:6px 0 10px}
.x-tf-refresh{font-size:11px;color:var(--brand,#15AC70);cursor:pointer}
.x-tf-refresh:hover{text-decoration:underline}
.x-tf-input{text-align:center;letter-spacing:8px;font-size:14px;font-variant-numeric:tabular-nums}
.x-tf-submit{width:100%;height:42px;border-radius:8px;font-size:14px}
/* v3.3.8：切换会话不再整列淡入 —— innerHTML 重建会让动画每次重放，低透明度起始
   会透出白底造成闪屏；即时通讯为直接替换，滚动条常驻仍由 scrollbar-gutter 保证 */

/* ================= v3.3.3 ================= */
/* 附件暂存条（引用条下方、编辑框上方）：图片缩略图 + 文件磁贴，可逐个移除 */
#attachSlot:empty{display:none}
/* v3.6.22：附件条限高可滚动（图片/文件/视频/多附件统一兜底），
   不再无限撑高把输入区底部工具栏与发送按钮顶出卡片；底部行也固定不收缩。 */
#attachSlot{flex:0 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden}
.input-bottom{flex:0 0 32px}
.x-att-strip{padding:6px 0 2px;display:flex;flex-direction:column;gap:8px}
.x-att-grid{display:flex;flex-wrap:wrap;gap:10px}
/* 图片预览 64→44px：单图/多图都更紧凑，输入区不再被大缩略图撑高 */
.x-att-cell{position:relative;width:44px;height:44px;border:1px solid var(--line,#E4E6E8);
  background:var(--field,#F7F7F7);border-radius:6px}
.x-att-cell img{width:100%;height:100%;object-fit:cover;border-radius:6px;display:block}
.x-att-rm{position:absolute;top:-7px;right:-7px;width:18px;height:18px;border-radius:50%;
  border:0;background:rgba(0,0,0,.62);color:#fff;display:flex;align-items:center;justify-content:center;
  cursor:pointer;padding:0}
.x-att-rm:hover{background:rgba(0,0,0,.85)}
.x-att-tiles{display:flex;flex-direction:column;gap:6px}
.x-att-tile{display:flex;align-items:center;gap:10px;background:var(--field,#F7F7F7);
  border:1px solid var(--line,#E4E6E8);border-radius:8px;padding:8px 10px;width:300px;max-width:100%;position:relative}
.x-att-ext{flex:0 0 auto;min-width:32px;height:32px;border-radius:6px;display:inline-flex;align-items:center;
  justify-content:center;font-size:10px;font-weight:700;padding:0 4px}
.x-att-name{font-size:12px;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}
.x-att-name i{font-style:normal;font-size:11px;color:var(--faint,#B2B2B2);margin-left:6px}
.x-att-tile .x-att-rm{position:static;flex:0 0 auto;width:22px;height:22px;background:transparent;color:var(--faint,#B2B2B2)}
.x-att-tile .x-att-rm:hover{background:var(--list-hover,rgba(0,0,0,.05));color:var(--ink)}
/* AI 思考阶段完整展示推理（配合 .sg-reason.full） */
/* v3.3.3：StarGPT 会话消息行距加大（用户反馈 AI 会话太挤；普通联系人保持原间距） */
.msg-area.ai-conv{gap:20px}
.msg-area.ai-conv .sg-fold{margin-bottom:10px}
.msg-area.ai-conv .ai-acts{margin-top:10px}
.msg-area.ai-conv .x-quote{margin-bottom:10px}
.x-member-add:hover i{background:var(--list-hover)}
.x-member-add span{color:var(--muted)}
.x-dw-hint{color:var(--faint,#B2B2B2)}
/* v3.6.51：群头像改为主流式紧凑铺满 —— 1px 细缝、无内边距、无独立边框，
   缝隙直接透出底色（浅灰），头像块铺满到圆角边缘，整体是一块紧凑拼图而非松散发散的卡片 */
.group-avatar{background:var(--ga-bg,#E3E5E7);border-radius:4px;padding:0;box-sizing:border-box}
.group-avatar .ga-cell{border-radius:1px;overflow:hidden}
.x-drawer .group-avatar{--ga-gap:1px;border-radius:7px;padding:0}
/* 深色主题：缝隙用比列表略亮的深色 */
[data-theme="dark"] .group-avatar{--ga-bg:#2A2E2A}
/* v3.6.49：群聊 @ 功能 —— 成员选择面板悬浮在输入区上方，[有人@我] 红标与气泡内高亮 */
.input-area{position:relative}
.at-panel{position:absolute;left:14px;right:14px;bottom:100%;margin-bottom:4px;max-height:216px;overflow-y:auto;
  background:var(--panel,#FFF);border:1px solid var(--line-soft);border-radius:10px;
  box-shadow:0 8px 28px rgba(0,0,0,.14);z-index:40;padding:4px 0}
.at-head{padding:6px 14px 4px;font-size:11px;color:var(--faint)}
.at-item{display:flex;align-items:center;gap:10px;padding:7px 14px;cursor:pointer;font-size:13px;color:var(--ink)}
.at-item.active,.at-item:hover{background:var(--list-hover,#F5F5F5)}
.at-item .avatar{width:26px;height:26px;flex:0 0 26px;font-size:11px}
.at-item .at-nm{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.at-empty{padding:14px;text-align:center;font-size:12px;color:var(--faint)}
.at-me{color:#FA5151}
.at-hl{color:#576B95}
/* 会话行入场：删除会话后列表补位轻微淡入，过渡自然不生硬 */
.conv-item{animation:xConvIn .18s ease both}
@keyframes xConvIn{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion: reduce){.conv-item{animation:none}}
/* v3.3.5：发现页菜单与「收藏」菜单完全一致 —— 42px 行高、14px 字号、12px 间距、6px 圆角 */
body[data-view="moments"] .simple-row.mom-row{height:42px;padding:0 12px;border-radius:6px;margin:0 8px}
body[data-view="moments"] .simple-row.mom-row .row-ico{width:22px;height:22px;flex:0 0 22px;display:flex;align-items:center;justify-content:center}
body[data-view="moments"] .simple-row.mom-row .row-ico svg{width:22px;height:22px}
body[data-view="moments"] .simple-row.mom-row .row-text{margin-left:12px;font-size:14px}

/* v3.4.4：侧栏「音乐」入口 —— 去掉品牌徽标底，只留与其他菜单同风格的细线音乐符号 */
/* v3.4.6 #1：修复激活态异常 —— 按钮本身去掉浏览器默认的背景/边框/焦点框，
   激活（点击后保留焦点）不再残留灰色方块；仅 hover 才出现与其他菜单一致的浅底。 */
.nav-btn.nav-music{color:var(--nav-ink)!important;background:transparent;border:0;outline:none;box-shadow:none}
/* v3.4.7 #6：未激活时与聊天/通讯录/收藏/热搜吧完全同色，激活才用品牌绿 */
.nav-btn.nav-music svg{fill:none;stroke:currentColor;stroke-width:1.7;opacity:.85}
.nav-btn.nav-music:hover{background:var(--nav-hover);color:var(--ink)!important}
.nav-btn.nav-music:focus,.nav-btn.nav-music:focus-visible{background:transparent;outline:none;box-shadow:none}
.nav-btn.nav-music.active{color:var(--nav-active)!important;background:transparent}
.nav-btn.nav-music.active svg,.nav-btn.nav-music:hover svg{opacity:1}


/* ==================================================================
   v3.4.7 #8：把音乐区的「白色 → 浅浅淡蓝」渐变推广到全部标签页。
   仅作用于浅色主题；深色主题维持原有配色不变。
   边框也统一换成同色系淡蓝灰（--line / --line-soft 及硬编码灰边）。
   ================================================================== */
html:not([data-theme="dark"]) {
  --app-grad: linear-gradient(158deg,#FFFFFF 0%,#FAFCFE 32%,#F0F7FC 66%,#E4F0FA 100%);
  --titlebar:#F8FBFE; --titlebar-ink:#8497A8; --titlebar-hover:#EBF3FA;
  --nav:rgba(255,255,255,.58); --nav-ink:#8497A8; --nav-hover:rgba(255,255,255,.90);
  --list:rgba(255,255,255,.72); --list-hover:rgba(255,255,255,.94);
  --selected:#15AC70; --selected-ink:#FFFFFF; --selected-sub:rgba(255,255,255,.94);
  --chat:rgba(255,255,255,.56); --panel:rgba(255,255,255,.82); --subtle:rgba(240,247,252,.70);
  --field:rgba(255,255,255,.74); --field-focus:rgba(255,255,255,.96);
  --bubble-other:rgba(255,255,255,.94);
  --line:rgba(23,50,80,.10); --line-soft:rgba(23,50,80,.06);
  --ink:#17242E; --muted:#708599; --faint:#9BAEBD;
  --shadow:0 8px 28px rgba(23,50,80,.12); --shadow-sm:0 2px 10px rgba(23,50,80,.08);
  background: var(--app-grad);
}
html:not([data-theme="dark"]) body { background: transparent; }
html:not([data-theme="dark"]) #app { background: transparent; border-color: rgba(23,50,80,.12); }
html:not([data-theme="dark"]) .body { background: transparent; }
html:not([data-theme="dark"]) .titlebar { background: rgba(248,251,254,.86); }
html:not([data-theme="dark"]) .nav,
html:not([data-theme="dark"]) .list-col,
html:not([data-theme="dark"]) .content-col { box-shadow: 0 4px 20px rgba(23,50,80,.05); }
html:not([data-theme="dark"]) .conv-item,
html:not([data-theme="dark"]) .simple-row,
html:not([data-theme="dark"]) .cat-row { background: transparent; }
/* v3.5.8 #5：右键菜单不透明 —— 浅色主题 --panel 是半透明白，菜单叠在会话/聊天气泡上
   会透出下层文字，这里固定纯白实底 */
html:not([data-theme="dark"]) .context-menu,
html:not([data-theme="dark"]) .press-bar { background: #FFFFFF; }
html:not([data-theme="dark"]) .conv-item:hover,
html:not([data-theme="dark"]) .simple-row:hover,
html:not([data-theme="dark"]) .cat-row:hover { background: var(--list-hover); }
html:not([data-theme="dark"]) .conv-item.active,
html:not([data-theme="dark"]) .simple-row.active,
html:not([data-theme="dark"]) .cat-row.active { background: var(--selected); }
html:not([data-theme="dark"]) .chat-header,
html:not([data-theme="dark"]) .msg-area,
html:not([data-theme="dark"]) .input-area,
html:not([data-theme="dark"]) .search-row { background: transparent; }
html:not([data-theme="dark"]) .input-area { border-color: rgba(23,50,80,.14) !important;
  box-shadow: 0 2px 10px rgba(23,50,80,.06); }
html:not([data-theme="dark"]) .tool-round { border-color: rgba(23,50,80,.22) !important; color:#7A8FA3; }
/* v3.5.14 #5：发现/联系人/收藏等分组头与下方菜单项统一白色（--list），
   旧值 rgba(240,247,252,.58) 在渐变画布上会显出一条淡蓝灰横条。 */
html:not([data-theme="dark"]) .group-bar { background: var(--list); }
html:not([data-theme="dark"]) .x-mom-feed,
html:not([data-theme="dark"]) .x-mom-inner,
html:not([data-theme="dark"]) .x-mom-card,
html:not([data-theme="dark"]) .x-drawer { background: rgba(255,255,255,.84); }
/* v3.5.5：通话卡片不再半透明（背后无遮罩，半透会透出聊天文字） */
html:not([data-theme="dark"]) .x-call-box { background: #FFFFFF; }
html:not([data-theme="dark"]) .x-mom-social { background: rgba(240,247,252,.72); }
html:not([data-theme="dark"]) .divider,
html:not([data-theme="dark"]) .conv-item::after { background: var(--line-soft); }


/* ==================================================================
   v3.5.0：右侧信息抽屉（聊天详情 x-drawer / StarGPT sg-panel）恢复完全不透明，
   浅色皮肤下不再透出背后的聊天内容。
   ================================================================== */
html:not([data-theme="dark"]) .x-drawer,
html:not([data-theme="dark"]) .sg-panel { background: #FFFFFF; }

/* ==================================================================
   v3.4.8 #4：设置 / 资料卡 / 通用对话框恢复完全不透明。
   v3.4.7 把 --panel 改成 rgba(255,255,255,.82) 后，.xfs-win / .x-dialog
   跟着透出了背后的聊天内容；这里给模态层单独钉死实底，页面渐变保持不变。
   ================================================================== */
html:not([data-theme="dark"]) .xfs-win,
html:not([data-theme="dark"]) .xfp-card,
html:not([data-theme="dark"]) .x-dialog { background: #FFFFFF; }
/* v3.5.20 #2：设置左侧导航与右侧内容同为纯白，整窗一块平面，不再有淡蓝侧栏。 */
html:not([data-theme="dark"]) .xfs-side { background: #FFFFFF; }
[data-theme="dark"] .xfs-win,
[data-theme="dark"] .xfp-card,
[data-theme="dark"] .x-dialog { background: #232A25; }
[data-theme="dark"] .xfs-side { background: #1B211D; }

/* ---- v3.4.9 #2：窗口锁定时标题栏最大化按钮置灰 ---- */
.win-btn.disabled { opacity: .32; pointer-events: none; }

/* ---- v3.5.4：StarGPT 语音播报行喇叭图标（线性 SVG 居中） ---- */
.sgp-row i.sgp-ico-volume{display:flex;align-items:center;justify-content:center}
.sgp-row i.sgp-ico-volume svg{display:block}
/* ---- v3.6.4：表情图加载失败占位（不再显示裂图图标） ---- */
.sp-cell.sp-err{background:var(--field,#F5F5F5)}
.sp-cell.sp-err::after{content:'表情';font-size:11px;color:var(--muted,#8A8A8A)}
.sticker-msg.sticker-err{background:var(--field,#F5F5F5);border-radius:10px}
.sticker-msg.sticker-err::after{content:'表情已失效';position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
  font-size:11px;color:var(--muted,#8A8A8A)}
/* ---- v3.5.5 #7：面板行图标统一线性 SVG（与语音播报喇叭同风格） ---- */
.sgp-row i.sgp-ico-line{display:flex;align-items:center;justify-content:center;font-style:normal}
.sgp-row i.sgp-ico-line svg{display:block}

/* ================================================================
   v3.5.4 #3：主流录音 / 听写条 —— 左 ✕ 圆钮 / 中胶囊 / 右绿色发送圆钮
   覆盖旧版 .x-rec-bar 深色胶囊样式
   ================================================================ */
.x-rec-bar.wx{position:fixed;z-index:95;left:50%;bottom:96px;transform:translateX(-50%);
  display:flex;align-items:center;gap:14px;padding:0;background:transparent;box-shadow:none}
.x-rec-bar.wx .x-rec-x{width:38px;height:38px;border-radius:50%;border:1px solid var(--line,#E5E5E5);
  background:#FFFFFF;color:var(--muted,#8A8A8A);cursor:pointer;display:flex;align-items:center;justify-content:center;
  box-shadow:0 4px 14px rgba(0,0,0,.10);transition:transform .12s ease,filter .15s ease}
.x-rec-bar.wx .x-rec-x:hover{filter:brightness(.96)}
.x-rec-bar.wx .x-rec-x:active{transform:scale(.94)}
.x-rec-bar.wx .x-rec-pill{display:flex;align-items:center;gap:12px;min-width:280px;height:44px;
  padding:0 18px;border-radius:22px;background:#FFFFFF;box-shadow:0 6px 22px rgba(0,0,0,.14);
  font-size:13px;color:var(--ink,#191919)}
.x-rec-bar.wx .x-rec-pill.busy{color:var(--muted,#8A8A8A)}
.x-rec-bar.wx .x-rec-dot{width:9px;height:9px;border-radius:50%;background:var(--unread,#FA5151);
  animation:xRecPulse 1s ease-in-out infinite}
.x-rec-bar.wx .x-rec-dots{display:inline-flex;gap:5px;align-items:center}
.x-rec-bar.wx .x-rec-dots i{width:6px;height:6px;border-radius:50%;background:var(--brand,#15AC70);
  opacity:.35;animation:xRecBounce 1.2s ease-in-out infinite}
.x-rec-bar.wx .x-rec-dots i:nth-child(2){animation-delay:.15s}
.x-rec-bar.wx .x-rec-dots i:nth-child(3){animation-delay:.3s}
.x-rec-bar.wx .x-rec-dots i:nth-child(4){animation-delay:.45s}
.x-rec-bar.wx .x-rec-dots i:nth-child(5){animation-delay:.6s}
.x-rec-bar.wx .x-rec-dots.big i{width:8px;height:8px}
@keyframes xRecPulse{0%,100%{transform:scale(1);opacity:1}50%{transform:scale(1.35);opacity:.7}}
@keyframes xRecBounce{0%,100%{transform:translateY(0);opacity:.35}50%{transform:translateY(-4px);opacity:1}}
.x-rec-bar.wx .x-rec-send{width:44px;height:44px;border-radius:50%;border:0;cursor:pointer;
  background:var(--brand,#15AC70);color:#FFFFFF;display:flex;align-items:center;justify-content:center;
  box-shadow:0 6px 18px rgba(21,172,112,.36);transition:transform .12s ease,filter .15s ease}
.x-rec-bar.wx .x-rec-send:hover{filter:brightness(1.06)}
.x-rec-bar.wx .x-rec-send:active{transform:scale(.94)}
.x-rec-bar.wx .x-rec-send i{font-style:normal;font-size:18px;font-weight:600;line-height:1}

/* ================================================================
   v3.5.5 #4：内联主流语音条 —— 位置对标主流：显示在输入区右下、
   发送按钮左侧（✕ 圆钮 + 声波胶囊 + 绿色 ↑ 圆钮），不再悬浮屏幕底部。
   工具栏话筒 = 语音转文字；发送按钮旁圆钮 = 语音消息，共用这条 UI。
   ================================================================ */
.x-micbar{display:flex;align-items:center;gap:10px;margin-left:auto}
.x-micbar.fallback{position:fixed;right:28px;bottom:96px;z-index:95}
.x-micbar .x-rec-x{width:34px;height:34px;border-radius:50%;border:1px solid var(--line,#E5E5E5);
  background:#FFFFFF;color:var(--muted,#8A8A8A);cursor:pointer;display:flex;align-items:center;justify-content:center;
  box-shadow:0 3px 10px rgba(0,0,0,.08);transition:transform .12s ease,filter .15s ease}
.x-micbar .x-rec-x:hover{filter:brightness(.96)}
.x-micbar .x-rec-x:active{transform:scale(.94)}
.x-micbar .x-rec-x svg{display:block}
.x-micbar .x-rec-pill{display:flex;align-items:center;gap:10px;min-width:220px;height:38px;
  padding:0 16px;border-radius:19px;background:#FFFFFF;box-shadow:0 4px 14px rgba(0,0,0,.12);
  font-size:13px;color:var(--ink,#191919)}
.x-micbar .x-rec-pill.busy{color:var(--muted,#8A8A8A)}
.x-micbar .x-rec-dot{width:9px;height:9px;border-radius:50%;background:var(--unread,#FA5151);
  animation:xRecPulse 1s ease-in-out infinite}
.x-micbar .x-rec-dots{display:inline-flex;gap:5px;align-items:center}
.x-micbar .x-rec-dots i{width:6px;height:6px;border-radius:50%;background:var(--brand,#15AC70);
  opacity:.35;animation:xRecBounce 1.2s ease-in-out infinite}
.x-micbar .x-rec-dots i:nth-child(2){animation-delay:.15s}
.x-micbar .x-rec-dots i:nth-child(3){animation-delay:.3s}
.x-micbar .x-rec-dots i:nth-child(4){animation-delay:.45s}
.x-micbar .x-rec-dots i:nth-child(5){animation-delay:.6s}
.x-micbar .x-rec-dots.big i{width:8px;height:8px}
.x-micbar .x-rec-send{width:34px;height:34px;border-radius:50%;border:0;cursor:pointer;
  background:var(--brand,#15AC70);color:#FFFFFF;display:flex;align-items:center;justify-content:center;
  box-shadow:0 4px 12px rgba(21,172,112,.32);transition:transform .12s ease,filter .15s ease}
.x-micbar .x-rec-send:hover{filter:brightness(1.06)}
.x-micbar .x-rec-send:active{transform:scale(.94)}
.x-micbar .x-rec-send i{font-style:normal;font-size:15px;font-weight:600;line-height:1;display:flex;align-items:center;justify-content:center}
.x-micbar .x-rec-send svg{display:block}

/* v3.5.8 #3：语音气泡恢复 v3.3 旧版样式（.x-voice 基础规则见上方 409 行起），
   此前主流 .wx 变体已随旧标记一并移除 */

/* ---- v3.5.6 #8：软件内通话卡片转为隐藏媒体宿主（可见卡片在独立置顶窗，可拖出程序） ---- */
.x-call.hosted{opacity:0;pointer-events:none}
.x-call.hosted .x-call-box{pointer-events:none}

/* ================= v3.6.4 热搜吧：微博式地球封面 + 榜单化信息流 + 应用内二级详情
   顶部整块地球太空背景封面（与闪友圈封面同高 280px）+ 精致品牌 + 搜索，
   下方「榜单式」热点卡片：排名徽标 / 来源 / 热度 / 摘要 / 缩略图 / 互动。 */
.x-hot-shell{height:100%;background:var(--chat,#F5F5F5);overflow:hidden}
.x-hot-main{height:100%;min-width:0;overflow-y:auto;padding:0 18px 26px;scrollbar-width:thin}

/* v3.6.18：星空地球封面（封面背景/极光/品牌文字/旧橙色搜索胶囊）整块移除，
   对应样式全部清理。搜索框改到工具栏标题行（知乎式浅色输入框）。 */
/* 知乎式搜索框：浅灰圆角、细边框、放大镜在右、无搜索按钮（回车检索）；
   进度条常驻容器底部，检索中才流动。 */
.x-hot-search{position:relative;flex:none;width:280px;height:34px;display:flex;
  align-items:center;gap:6px;padding:0 10px;border-radius:8px;
  background:#F7F8FA;border:1px solid #E8E8E8;overflow:hidden;
  transition:border-color .15s ease,background .15s ease}
.x-hot-search:focus-within{border-color:var(--brand,#15AC70);background:#FFFFFF}
.x-hot-search-ico{display:flex;color:#9A9A9A;flex:none}
.x-hot-search-input{flex:1;min-width:0;height:26px;border:0;outline:0;background:transparent;
  color:var(--ink,#191919);font-size:13px}
.x-hot-search-input::placeholder{color:#A8A8A8}
.x-hot-search-clear{flex:none;width:20px;height:20px;border-radius:50%;color:#8A8A8A;
  display:inline-flex;align-items:center;justify-content:center;padding:0;line-height:1;
  font-size:14px;background:transparent}
.x-hot-search-clear:hover{background:rgba(0,0,0,.06)}
.x-hot-search-clear.hidden{display:none}
/* 搜索不再整页重绘：保留旧卡片，用柔和进度条 + 结果淡入替代「清空→骨架→结果」的闪屏 */
.x-hot-search-progress{position:absolute;left:0;bottom:0;height:3px;width:0;opacity:0;
  background:linear-gradient(90deg,#FFB648,#FF7600);pointer-events:none;transition:opacity .2s ease}
.x-hot-search.searching .x-hot-search-progress{opacity:1;animation:xHotSearchBar 1.2s ease-in-out infinite}
@keyframes xHotSearchBar{0%{width:0;left:0}50%{width:62%;left:20%}100%{width:0;left:100%}}
.x-hot-feed.is-searching > .x-hot-card,
.x-hot-feed.is-searching > .x-hot-web{filter:saturate(.82) opacity(.72)}
.x-hot-feed > .x-hot-card,
.x-hot-feed > .x-hot-web{animation:xHotResultIn .26s ease-out both}
@keyframes xHotResultIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
/* 浏览器式结果头 + 分组标题 + 网页结果条目 */
.x-hot-result-head:empty{display:none}
.x-hot-result-head{margin:0 -18px 10px;padding:12px 18px;background:var(--panel,#FFFFFF);
  border-bottom:1px solid var(--line-soft,#F0F0F0)}
.x-hot-result-line{display:flex;align-items:center;gap:10px;font-size:12.5px;color:var(--muted,#8A8A8A)}
.x-hot-result-line b{color:var(--ink,#191919);font-weight:600}
.x-hot-result-line .x-hot-result-loading{font-style:normal;color:#FF8200}
.x-hot-result-src{margin-top:5px;font-size:11px;color:var(--faint,#B2B2B2)}
.x-hot-sec-title{display:flex;align-items:center;gap:8px;padding:14px 0 8px;
  font-size:13px;font-weight:600;color:var(--ink,#191919)}
.x-hot-sec-title span{font-size:11px;font-weight:400;color:var(--faint,#B2B2B2)}
.x-hot-sec-title.more{margin-top:8px;border-top:1px solid var(--line-soft,#F0F0F0)}
.x-hot-web{background:var(--panel,#FFFFFF);padding:14px 18px;margin:0 -18px 8px;border-radius:8px;
  border:1px solid var(--line-soft,#F0F0F0)}
.x-hot-web-top{display:flex;align-items:center;gap:8px;margin-bottom:8px}
.x-hot-web-fav{width:22px;height:22px;flex:none;border-radius:50%;display:flex;align-items:center;
  justify-content:center;color:#FFFFFF;font-size:11px;font-weight:600}
.x-hot-web-site{display:flex;flex-direction:column;min-width:0;line-height:1.35}
.x-hot-web-site b{font-size:12px;color:var(--ink,#191919);font-weight:500}
.x-hot-web-site span{font-size:10.5px;color:var(--faint,#B2B2B2);overflow:hidden;
  text-overflow:ellipsis;white-space:nowrap}
.x-hot-web-title{font-size:15px;line-height:1.5;color:#1A5FD0;cursor:pointer;transition:color .15s ease}
.x-hot-web-title:hover{color:#0B45A8;text-decoration:underline}
[data-theme="dark"] .x-hot-web-title{color:#7FA9FF}
.x-hot-web-snip{margin:6px 0 0;font-size:12.5px;line-height:1.65;color:var(--muted,#666666)}
.x-hot-web-meta{display:flex;gap:10px;margin-top:8px;font-size:10.5px;color:var(--faint,#B2B2B2)}
.x-hot-search-hint{padding:40px 0;text-align:center;font-size:12.5px;color:var(--muted,#8A8A8A)}
.x-hot-main.search-mode .x-hot-sort button{padding:5px 12px}

/* ---- 榜单工具条：标题 + 热门/最新切换（sticky 吸顶） ---- */
.x-hot-toolbar{position:sticky;top:0;z-index:7;display:flex;align-items:center;gap:12px;
  height:52px;margin:0 -18px 6px;padding:0 18px;background:var(--panel,#FFFFFF);
  border-bottom:1px solid var(--line-soft,#F0F0F0)}
/* v3.6.18：搜索框进工具栏 —— 标题靠左，搜索框紧随其后，频道页签推到最右 */
.x-hot-title{display:flex;align-items:center;gap:8px;min-width:0}
.x-hot-search{margin-right:auto}
.x-hot-live{width:7px;height:7px;flex:none;border-radius:50%;background:#15AC70;
  box-shadow:0 0 0 3px rgba(21,172,112,.18);animation:xHotLive 2s ease-in-out infinite}
@keyframes xHotLive{0%,100%{box-shadow:0 0 0 3px rgba(21,172,112,.18)}
  50%{box-shadow:0 0 0 6px rgba(21,172,112,0)}}
.x-hot-title strong{font-size:15px;font-weight:600;color:var(--ink,#191919);white-space:nowrap}
.x-hot-title span{font-size:11px;color:var(--faint,#B2B2B2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.x-hot-sort{display:flex;gap:2px;padding:3px;border-radius:8px;background:var(--field,#F4F5F6);flex:none}
.x-hot-sort button{padding:5px 15px;border-radius:6px;font-size:12px;color:var(--muted,#8A8A8A);transition:.15s}
.x-hot-sort button:hover{color:var(--ink,#191919)}
.x-hot-sort button.active{background:var(--panel,#FFFFFF);color:var(--brand,#15AC70);
  font-weight:600;box-shadow:0 1px 5px rgba(0,0,0,.08)}
.x-hot-status{min-height:22px;padding:2px 2px 10px;font-size:11px;color:var(--faint,#B2B2B2);
  display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.x-hot-status b{color:var(--muted,#8A8A8A);font-weight:600}
.x-hot-status em{font-style:normal;opacity:.85}
.x-hot-status time{margin-left:auto}
.x-hot-stale{font-style:normal;padding:1px 6px;border-radius:4px;background:#FFF4E5;color:#B7791F;font-size:10px}
[data-theme="dark"] .x-hot-stale{background:#3A2E1C;color:#E5A64B}
.x-hot-feed{min-height:120px;padding-top:12px}

/* ---- v3.6.9 微博式信息流卡片：一比一复刻参考图 ----
   平铺白色卡片（无圆角/边框/悬浮阴影，卡片之间 10px 浅灰分隔）、
   40px 圆头像 + 右下 V 认证角标、深色昵称 + 会员徽标 + 时间来源行、
   正文与昵称左对齐（缩进 50px）、方形配图、三等距「细线图标 + 数字」操作条。 */
/* v3.6.13：卡片之间加微博式分割线（整宽细线 + 呼吸空间），替代原来的纯间距 */
.x-hot-card{background:var(--panel,#FFFFFF);border:0;border-bottom:1px solid var(--line-soft,#F0F2F5);
  border-radius:0;
  padding:16px 18px 8px;margin:0 -18px;cursor:default}
.x-hot-card:hover{background:var(--panel,#FFFFFF)}
.x-hot-card-hd{display:flex;align-items:flex-start;gap:10px}
.x-hot-cavatar-wrap{position:relative;flex:none;width:40px;height:40px}
/* v3.6.12：圆形头像圆角减半 → 圆角方形（25%），与全局头像风格统一 */
.x-hot-cavatar{width:40px;height:40px;border-radius:25%;display:flex;align-items:center;
  justify-content:center;color:#FFFFFF;font-size:13px;font-weight:600;letter-spacing:.5px;overflow:hidden;
  border:1px solid rgba(0,0,0,.05);background:var(--field,#F5F5F5)}
.x-hot-cavatar.s-img img{width:100%;height:100%;object-fit:cover;display:block}
.x-hot-cavatar.s-weibo{--ring:#E6162D;background:#FFFFFF}
.x-hot-cavatar.s-douyin{--ring:#1F2229;background:#FFFFFF}
.x-hot-cavatar.s-baidu{--ring:#3C49E0;background:#FFFFFF}
.x-hot-cavatar.s-people{--ring:#C8161D;background:linear-gradient(135deg,#E04750,#C8161D)}
.x-hot-cavatar.s-xinhua{--ring:#B3272D;background:linear-gradient(135deg,#D25458,#B3272D)}
.x-hot-cavatar.s-arxiv{--ring:#B31B1B;background:linear-gradient(135deg,#C74343,#8F1414)}
.x-hot-cavatar.s-other{--ring:var(--brand,#15AC70);background:var(--brand,#15AC70)}
.x-hot-vbadge{position:absolute;right:-1px;bottom:-1px;width:15px;height:15px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;background:#F7B500;color:#FFFFFF;
  font-size:9px;font-style:normal;font-weight:700;line-height:1;border:2px solid #FFFFFF}
[data-theme="dark"] .x-hot-vbadge{border-color:var(--panel,#1E1E1E)}
.x-hot-card-by{flex:1;min-width:0;padding-top:1px}
.x-hot-card-name-row{display:flex;align-items:center;gap:6px;min-width:0}
.x-hot-card-name{display:block;font-size:14px;font-weight:600;line-height:20px;
  color:var(--ink,#191919);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.x-hot-vip{flex:none;padding:0 4px;border-radius:3px;line-height:14px;height:14px;
  background:linear-gradient(135deg,#FFB13B,#F7971E);color:#FFFFFF;font-size:9px;font-weight:700}
.x-hot-card-sub{display:block;font-size:11.5px;line-height:17px;color:var(--faint,#B2B2B2);
  margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.x-hot-cat{flex:none;padding:3px 11px;border-radius:14px;background:var(--brand-soft,#E8F8EE);
  color:var(--brand,#15AC70);font-size:11px;font-weight:500}
/* v3.6.13：折叠改为微博式字符截断 —— 正文按 130 字截断，「...展开」内联在文字流
   末尾（位置随最后一行文字长度自然决定，不再固定右下角）；展开后「收起」同样内联。
   不再需要 max-height / line-clamp / 遮罩。 */
.x-hot-card-txt{margin:8px 0 0 50px}
.x-hot-body p{margin:0;font-size:14px;line-height:25px;color:var(--ink,#333333);word-break:break-word}
.x-hot-body p+p{margin-top:6px}
.x-hot-body p.x-hot-lead{font-size:14.5px;font-weight:600;color:var(--ink,#191919)}
.x-hot-expand{display:inline;color:#5086F5;font-size:13px;line-height:25px;cursor:pointer;
  white-space:nowrap;margin-left:2px;transition:color .15s ease}
.x-hot-expand:hover{color:#3E6FD9}
/* v3.6.13 多图九宫格（≤9 张）+ 单图，全部可点击放大 */
.x-hot-pic{margin:8px 0 0 50px;width:120px;height:120px;border-radius:4px;overflow:hidden;
  background:var(--field,#F5F5F5);cursor:zoom-in}
.x-hot-pic img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.x-hot-picgrid{display:grid;grid-template-columns:repeat(3,116px);gap:6px;
  margin:8px 0 0 50px;width:max-content;max-width:calc(100% - 50px)}
.x-hot-picgrid .x-hot-pic-item{width:116px;height:116px;border-radius:4px;overflow:hidden;
  background:var(--field,#F5F5F5);cursor:zoom-in;display:block}
.x-hot-picgrid .x-hot-pic-item img{display:block;width:100%;height:100%;object-fit:cover}
/* v3.6.13 图片放大层：全屏遮罩 + 大图（点击遮罩 / Esc 关闭）。
   v3.6.15：width/height auto + contain 保证按原比例完整显示，不再被裁切；
   放大层挂在 body 上，position:fixed 铺满整个窗口。 */
.x-hot-zoom,.x-mom-zoom{position:fixed;inset:0;z-index:9999;display:flex;align-items:center;
  justify-content:center;background:rgba(0,0,0,.78);cursor:zoom-out;
  animation:zoomIn .18s ease}
.x-hot-zoom img,.x-mom-zoom img{max-width:94vw;max-height:92vh;width:auto;height:auto;
  object-fit:contain;border-radius:4px;box-shadow:0 12px 60px rgba(0,0,0,.5);cursor:default;
  animation:zoomImgIn .22s cubic-bezier(.34,1.4,.64,1)}
@keyframes zoomIn{from{opacity:0}to{opacity:1}}
@keyframes zoomImgIn{from{opacity:0;transform:scale(.86)}to{opacity:1;transform:scale(1)}}
/* v3.6.15 操作条（完全对标闪友圈）：右下角「···」三点按钮，点击向左滑出
   深色 赞/评论/原文 操作条；旧版三组等距「图标+数字」操作条样式已整体移除。 */
.x-hot-ops{position:relative;display:flex;justify-content:flex-end;margin-top:6px}
.x-hot-more{width:30px;height:20px;border-radius:10px;background:var(--field,#F0F0F0);border:none;
  cursor:pointer;display:flex;align-items:center;justify-content:center;gap:3px;transition:background .16s}
.x-hot-more:hover{background:var(--brand-soft,#E8F8EE)}
.x-hot-more i{width:3.5px;height:3.5px;border-radius:50%;background:var(--muted,#9A9A9A);transition:background .16s}
.x-hot-more:hover i{background:var(--brand-strong,#059048)}
.x-hot-pop{position:absolute;right:34px;top:-3px;display:flex;align-items:center;background:#4C4C4C;
  border-radius:6px;padding:0 2px;white-space:nowrap;opacity:0;transform:translateX(8px);
  visibility:hidden;pointer-events:none;transition:opacity .18s ease,transform .18s ease,visibility .18s}
.x-hot-pop.open{opacity:1;transform:translateX(0);visibility:visible;pointer-events:auto}
.x-hot-pop::after{content:'';position:absolute;right:-4px;top:50%;margin-top:-4px;
  border:4px solid transparent;border-right:none;border-left:4px solid #4C4C4C}
.x-hot-pop-btn{display:flex;align-items:center;gap:4px;background:none;border:none;color:#FFF;
  font-size:12.5px;padding:7px 10px;cursor:pointer;transition:opacity .14s}
.x-hot-pop-btn:hover{opacity:.82}
.x-hot-pop-btn.liked{color:#FF7E7E}
.x-hot-pop-btn.liked .x-hot-pop-ico svg{fill:currentColor}
.x-hot-pop-ico{display:flex}
.x-hot-pop-ico svg{width:15px;height:15px}
.x-hot-pop-sep{width:1px;height:12px;background:rgba(255,255,255,.28)}
/* v3.6.17：功能状态变色 —— 点过赞的「赞」图标红（.liked 已有），
   评论框展开时「评论」图标与文字亮绿（icon + 文字同色） */
.x-hot-pop-btn.cmt-active{color:#7BE3A6}
.x-hot-pop-btn.cmt-active .x-hot-pop-ico svg{fill:rgba(123,227,166,.18)}
.x-hot-pop-btn.cmt-active .x-hot-pop-txt{color:#7BE3A6}
/* ---- v3.6.10：取消二级详情页 —— 评论区直接内联在卡片底部 ----
   点击滑出条「评论」就地展开、再次点击收起；max-height + opacity + 位移三重过渡。 */
.x-hot-cmt-wrap{max-height:0;opacity:0;overflow:hidden;transform:translateY(-8px);
  transition:max-height .42s cubic-bezier(.4,0,.2,1),opacity .28s ease,transform .28s ease}
.x-hot-card.cmt-open .x-hot-cmt-wrap{max-height:1400px;opacity:1;transform:none}
.x-hot-cmt-pane{margin-top:10px}
/* 评论区（v3.6.15 完全对标闪友圈）：绿框多行输入框 → 右对齐工具行
   （语音/表情/图片 + 绿色发送）；「按热度/按时间」排序行已移除；
   录音条与聊天窗口同款（✕ / 正在录音+波纹 / 绿色发送圆钮）。 */
.x-hot-cmt-box{border:1.5px solid var(--brand,#15AC70);border-radius:8px;
  background:var(--panel,#FFFFFF);padding:8px 10px 6px}
.x-hot-cmt-box > .x-hot-cmt-input{display:block;width:100%;min-height:42px;max-height:120px;resize:none;
  border:0;outline:none;background:transparent;color:var(--ink,#191919);
  font-size:13px;line-height:20px;font-family:inherit;box-sizing:border-box;user-select:text}
.x-hot-cmt-box > .x-hot-cmt-input::placeholder{color:var(--faint,#B2B2B2)}
.x-hot-cmt-bar{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-top:2px}
/* v3.6.17 修发送按钮竖排：26px 方形规则不再命中「发送」圆角按钮，发送按钮白字不换行 */
.x-hot-cmt-bar button:not(.x-hot-cmt-send){width:26px;height:26px;border:0;background:transparent;color:var(--muted,#8A8A8A);
  display:inline-flex;align-items:center;justify-content:center;cursor:pointer;border-radius:4px}
.x-hot-cmt-bar button:not(.x-hot-cmt-send):hover{background:var(--list-hover,#F2F2F2);color:var(--ink,#191919)}
.x-hot-cmt-bar button:not(.x-hot-cmt-send) svg{width:16px;height:16px}
.x-hot-cmt-send{flex:none;height:30px;padding:0 22px;border:0;border-radius:15px;background:var(--brand,#15AC70);
  color:#FFF;font-size:13px;font-weight:600;line-height:30px;cursor:pointer;white-space:nowrap;letter-spacing:1px}
.x-hot-cmt-send:hover{background:var(--brand-strong,#059048)}
.x-hot-cmt-send:active{transform:scale(.96)}
/* v3.6.17 回复提示条（输入框顶部，「回复 @昵称」+ 取消） */
.x-hot-cmt-replybar{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px;
  padding:4px 10px;border-radius:6px;background:var(--brand-soft,#E8F8EE);
  font-size:12px;color:var(--ink,#191919)}
.x-hot-cmt-replybar.hidden{display:none}
.x-hot-cmt-replybar b{color:var(--link,#576B95);font-weight:600}
.x-hot-cmt-replybar button{border:0;background:transparent;color:var(--muted,#8A8A8A);font-size:12px;
  cursor:pointer;padding:2px 4px;border-radius:4px}
.x-hot-cmt-replybar button:hover{color:var(--ink,#191919);background:var(--list-hover,#F2F2F2)}
/* v3.6.24 聊天消息里的链接：链接蓝、无下划线（按用户要求取消），点击在程序内浏览器打开 */
.chat-link{color:var(--link,#576B95);cursor:pointer;text-decoration:none;
  word-break:break-all}
.chat-link:hover{opacity:.82;text-decoration:underline}
/* v3.6.15：评论列表改为闪友圈式浅灰折叠区（.x-mom-social 同款观感） */
.x-hot-cmt-list{max-height:320px;min-height:44px;overflow-y:auto;margin-top:10px;
  background:#F7F7F7;border-radius:4px;padding:7px 10px;font-size:12.5px;line-height:20px}
.x-hot-cmt{color:var(--ink,#191919);padding:1px 2px;border-radius:3px;
  animation:xHotCmtIn .26s ease both}
@keyframes xHotCmtIn{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}
.x-hot-cmt b{color:var(--link,#576B95);font-weight:400}
.x-hot-cmt .x-hot-cmt-img{display:inline-block;vertical-align:middle;margin:0 2px;width:96px;height:96px;
  border-radius:4px;object-fit:cover;cursor:zoom-in}
.x-hot-cmt .x-cmt-voice{display:inline-flex;vertical-align:middle;margin:0 2px}
/* v3.6.13：评论默认折叠为 2 条，「查看全部 N 条评论 >」展开 / 「收起评论 <」收起 */
.x-hot-cmt-more{display:block;margin:6px auto 0;padding:3px 0;font-size:12px;color:#5086F5;
  background:transparent;white-space:nowrap;transition:color .15s ease}
.x-hot-cmt-more:hover{color:#3E6FD9}
/* v3.6.17 评论行操作：悬停浮现「回复 / 删除」小字按钮 */
.x-hot-cmt-acts{display:inline-flex;gap:8px;margin-left:10px;vertical-align:baseline}
.x-hot-cmt-acts button{border:0;background:transparent;padding:0;font-size:11.5px;
  color:var(--muted,#8A8A8A);cursor:pointer;opacity:0;transition:opacity .14s,color .14s}
.x-hot-cmt:hover .x-hot-cmt-acts button{opacity:1}
.x-hot-cmt-acts button:hover{color:var(--brand,#15AC70)}
.x-hot-cmt-acts button:last-child:hover{color:#E5484D}
/* v3.6.18：评论下方相对时间（刚刚 / N分钟前 / N小时前 / M月D日），浅灰小字独占一行 */
.x-hot-cmt-line{display:block}
.x-hot-cmt-time{display:block;font-size:11px;color:#A6A6A6;margin-top:2px;user-select:none}
/* v3.6.13 评论附件：图片预览 / 语音条预览 / 表情面板 / 录音条 */
.x-cmt-att-img{position:relative;display:inline-block;margin-top:8px;width:96px;height:96px;
  border-radius:6px;overflow:hidden;background:var(--field,#F5F5F5)}
.x-cmt-att-img img{width:100%;height:100%;object-fit:cover;display:block}
.x-cmt-att-img i,.x-cmt-att-voice i{position:absolute;top:2px;right:2px;width:18px;height:18px;
  border-radius:50%;background:rgba(0,0,0,.55);color:#FFF;font-size:12px;font-style:normal;
  line-height:18px;text-align:center;cursor:pointer}
.x-cmt-att-voice{position:relative;display:inline-flex;align-items:center;gap:8px;margin-top:8px;
  padding:7px 12px;border-radius:18px;background:var(--brand-soft,#E8F8EE);font-size:12px;color:var(--ink,#191919)}
.x-cmt-att-voice .x-cmt-voice-play{color:var(--brand,#15AC70);font-style:normal;font-size:13px}
.x-cmt-att-voice .x-cmt-voice-bars{display:inline-flex;align-items:center;gap:2px}
.x-cmt-att-voice .x-cmt-voice-bars i{width:2.5px;border-radius:2px;background:#B5D9C4;display:inline-block}
.x-cmt-emoji-panel{display:grid;grid-template-columns:repeat(10,1fr);gap:2px;margin-top:8px;
  padding:8px;border:1px solid var(--line,#E5E5E5);border-radius:10px;background:var(--panel,#FFFFFF);
  box-shadow:0 8px 28px rgba(0,0,0,.10)}
.x-cmt-emoji-panel button{font-size:17px;line-height:26px;padding:0;border-radius:6px;transition:background .12s}
.x-cmt-emoji-panel button:hover{background:var(--field,#F5F5F5)}
/* 评论里的图片 / 语音条 */
.x-hot-cmt-img{display:block;margin:6px 0 2px;max-width:200px;max-height:160px;border-radius:6px;
  cursor:zoom-in;object-fit:cover}
.x-cmt-voice{display:inline-flex;align-items:center;gap:8px;margin:6px 0 2px;padding:8px 14px;
  border-radius:18px;background:var(--brand-soft,#E8F8EE);cursor:pointer;user-select:none;
  transition:background .15s ease}
.x-cmt-voice:hover{background:#DDF2E5}
.x-cmt-voice .x-cmt-voice-play{color:var(--brand,#15AC70);font-style:normal;font-size:14px;line-height:1}
.x-cmt-voice .x-cmt-voice-bars{display:inline-flex;align-items:center;gap:2px;height:18px}
.x-cmt-voice .x-cmt-voice-bars i{width:2.5px;border-radius:2px;background:#9DCDB2;display:inline-block}
.x-cmt-voice .x-cmt-voice-sec{font-size:12px;color:var(--muted,#8A8A8A)}
.x-hot-load{text-align:center;padding:6px 0 20px;font-size:11px;color:var(--faint,#B2B2B2)}
.x-hot-load button{padding:7px 18px;border-radius:6px;border:1px solid var(--line,#E5E5E5);
  background:var(--panel,#FFFFFF);color:var(--muted,#8A8A8A);font-size:12px}
.x-hot-load button:hover{border-color:var(--brand,#15AC70);color:var(--brand,#15AC70)}
.x-hot-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;
  min-height:220px;color:var(--muted,#8A8A8A)}
.x-hot-empty b{font-size:14px;font-weight:500;color:var(--ink,#191919)}
.x-hot-empty span{font-size:12px;color:var(--faint,#B2B2B2)}
.x-hot-empty button{padding:6px 16px;border-radius:6px;background:var(--brand,#15AC70);color:#FFFFFF;font-size:12px}
.x-hot-rail{height:100%;overflow-y:auto;border-left:1px solid var(--line,#E5E5E5);background:var(--panel,#FFFFFF);
  padding:14px 13px 24px;scrollbar-width:thin}
/* v3.6.9：删除已废弃「右侧热榜栏」遗留的 .x-hot-search 系列样式。
   右侧栏早已不渲染，但同名 .x-hot-search 规则位于封面规则之后，
   一直覆盖封面搜索框（34px 高 / padding 10px / radius 7px），造成挤压变形。
   这些类名在渲染层已无任何引用（x-hot-search-wrap / x-hot-suggest / ...）。 */
.x-hot-panel{margin-top:16px}
.x-hot-panel-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px;
  font-size:13px;font-weight:600;color:var(--ink,#191919)}
.x-hot-panel-title span{display:flex;align-items:center;gap:5px}
.x-hot-panel-title svg{color:#FF5722}
.x-hot-panel-title small{font-size:10px;font-weight:400;color:var(--faint,#B2B2B2)}
.x-hot-panel-title button{font-size:11px;font-weight:400;color:var(--muted,#8A8A8A)}
.x-hot-plats{display:flex;gap:4px;margin-bottom:7px}
.x-hot-plats button{padding:4px 10px;border-radius:5px;font-size:11px;color:var(--muted,#8A8A8A)}
.x-hot-plats button:hover{background:var(--field,#F5F5F5)}
.x-hot-plats button.active{background:var(--brand-soft,#E8F8EE);color:var(--brand,#15AC70);font-weight:600}
.x-hot-rank-row{display:flex;align-items:center;gap:8px;width:100%;min-height:30px;padding:3px 4px;border-radius:5px;text-align:left}
.x-hot-rank-row:hover{background:var(--field,#F5F5F5)}
.x-hot-rank-row i.rk{width:17px;height:17px;flex:none;border-radius:4px;display:flex;align-items:center;justify-content:center;
  font-size:10px;font-style:normal;color:var(--muted,#8A8A8A)}
.x-hot-rank-row i.rk1{background:#F7B500;color:#FFFFFF;font-weight:700}
.x-hot-rank-row i.rk2{background:#A8B4BF;color:#FFFFFF;font-weight:700}
.x-hot-rank-row i.rk3{background:#D08B5B;color:#FFFFFF;font-weight:700}
.x-hot-rank-row .x-hot-rank-word{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  font-size:12px;color:var(--ink,#191919)}
.x-hot-rank-row em{font-size:10px;font-style:normal;color:#FF5722}
.x-hot-rank-row b{font-size:9px;padding:0 3px;border-radius:3px;background:#FFECE5;color:#FF5722}
.x-hot-rank-empty,.x-hot-hist-empty{font-size:11px;color:var(--faint,#B2B2B2);padding:8px 4px}
.x-hot-hist-panel{border-top:1px solid var(--line-soft,#F0F0F0);padding-top:13px}
.x-hot-history{display:flex;flex-wrap:wrap;gap:6px}
.x-hot-history button{display:inline-flex;align-items:center;gap:4px;padding:4px 8px;border-radius:12px;
  background:var(--field,#F5F5F5);font-size:11px;color:var(--muted,#8A8A8A)}
.x-hot-history button:hover{color:var(--brand,#15AC70)}
.x-hot-skeleton{display:flex;gap:10px;padding:12px 0;border-bottom:1px solid var(--line-soft,#F0F0F0)}
.x-hot-skeleton i,.x-hot-skeleton b,.x-hot-skeleton span{display:block;border-radius:4px;
  background:linear-gradient(90deg,var(--field,#F5F5F5) 25%,var(--field-focus,#EDEDED) 50%,var(--field,#F5F5F5) 75%);
  background-size:200% 100%;animation:xHotShine 1.3s linear infinite}
.x-hot-skeleton i{width:34px;height:34px;flex:none;border-radius:25%}
.x-hot-skeleton div{flex:1}
.x-hot-skeleton b{width:72%;height:13px;margin-bottom:8px}
.x-hot-skeleton span{width:100%;height:10px;margin-bottom:6px}
.x-hot-skeleton span:last-child{width:45%}
@keyframes xHotShine{0%{background-position:200% 0}100%{background-position:-200% 0}}

/* ==================================================================
   v3.6.4：全局不透明化 —— 浅色玻璃主题下所有「浮在内容之上」的面板/卡片
   一律钉死实底，杜绝半透面板透出下层文字/图形：
   悬浮面板（表情包 / 管理 / 上传）、图片预览、闪友圈卡片与互动条、
   热搜吧卡片、聊天气泡、联拓网资料卡（上方已单独钉死）。
   ================================================================== */
html:not([data-theme="dark"]) .floating,
html:not([data-theme="dark"]) .upload-dialog,
html:not([data-theme="dark"]) .preview-overlay img,
html:not([data-theme="dark"]) .x-mom-card,
html:not([data-theme="dark"]) .x-mom-social,
html:not([data-theme="dark"]) .x-hot-card,
html:not([data-theme="dark"]) .x-hot-toolbar,
html:not([data-theme="dark"]) .x-hot-cmt-pane,
html:not([data-theme="dark"]) .bubble,
html:not([data-theme="dark"]) .press-bar,
html:not([data-theme="dark"]) .context-menu { background:#FFFFFF; }

/* ==================================================================
   v3.6.4：头像圆角平滑处理（全局）。
   1) 圆角同时落在图片本体上（border-radius:inherit），不再只靠父级
      overflow:hidden 硬裁剪，圆角边缘由浏览器双路径抗锯齿，明显更平滑；
   2) v3.6.12：方形头像圆角整体减半（11→5 / 12→6 / 15→7），圆角不再过圆。
   ================================================================== */
.avatar img,.group-avatar img,.nav-avatar img,.profile .avatar img,
.x-fr-ava img,.x-pf-av img,.x-near-dav img,.x-near-orb-av img,.x-near-core-av img,
.x-cg-av img,.x-tag2-av img,.x-nt-av img,.ga-cell img,.x-hot-thumb img,
.sp-cell img,.mgr-cell img{border-radius:inherit}
html:not([data-theme="dark"]) .avatar,
[data-theme="dark"] .avatar{border-radius:5px}
html:not([data-theme="dark"]) .nav-avatar,
[data-theme="dark"] .nav-avatar{border-radius:6px}
html:not([data-theme="dark"]) .profile .avatar,
[data-theme="dark"] .profile .avatar{border-radius:7px}

/* v3.6.25 收藏详情媒体预览：表情/图片点开大图、视频/语音可直接播放 */
.x-fav-preview{margin:0 0 10px;border-radius:10px;overflow:hidden;background:var(--field,#F7F7F7);
  display:flex;align-items:center;justify-content:center;min-height:80px;max-height:280px}
.x-fav-preview img,.x-fav-preview video{max-width:100%;max-height:280px;width:auto;height:auto;
  display:block;object-fit:contain;cursor:zoom-in}
.x-fav-preview video{cursor:default}
.x-fav-tip{font-size:11px;color:var(--muted,#9A9A9A);text-align:center;margin:-4px 0 10px}
.x-fav-voice{display:flex;align-items:center;gap:12px;margin:0 0 10px;padding:10px 12px;
  border-radius:10px;background:var(--field,#F7F7F7)}
.x-fav-voice .btn-outline{min-width:104px}
.x-fav-voice-dur{font-size:12px;color:var(--muted,#9A9A9A)}

/* ==================================================================
   v3.6.26：发表动态白卡 + 「提醒谁看 / 谁可以看」二级面板
   一比一对标主流朋友圈：无标题白卡、大输入框、三列图片格、
   双栏联系人搜索勾选、四选一权限面板；不含 AI 帮写。
   ================================================================== */
.x-dialog.x-pub-dialog,.x-dialog.x-pick-dialog,.x-dialog.x-vis-dialog{border-radius:12px}
.x-pub{padding:22px 24px 16px}
.x-pub-text{display:block;width:100%;min-height:96px;border:none;outline:none;resize:none;padding:0;
  background:transparent;color:var(--ink);font-size:15px;line-height:24px;font-family:inherit}
.x-pub-text::placeholder{color:#B7B7B7}
.x-pub-tools{display:flex;align-items:center;gap:16px;min-height:34px;margin:2px 0 14px;position:relative;flex-wrap:wrap}
.x-pub-tool{display:inline-flex;align-items:center;gap:5px;border:0;background:transparent;padding:0;
  color:#8A8A8A;font-size:12px;cursor:pointer}
.x-pub-tool svg{display:block;flex:none}
.x-pub-tool.on{color:#15AC70}
.x-pub-video{display:inline-flex;align-items:center}
.x-pub-video .x-mom-video-add{border:0;background:transparent;color:#8A8A8A;font-size:12px;padding:0;cursor:pointer}
.x-pub-video .x-mom-video-chip{display:flex;align-items:center;gap:6px;font-size:12px;color:#15AC70}
.x-pub-video .x-mom-video-chip svg{display:block}
.x-pub-video .x-mom-video-chip button{border:0;background:transparent;color:#999;font-size:12px;cursor:pointer}
.x-pub-emoji-pop{position:absolute;left:0;top:100%;z-index:8;background:#FFF;border:1px solid #E6E6E6;
  border-radius:8px;box-shadow:0 6px 22px rgba(0,0,0,.14);padding:8px;display:grid;grid-template-columns:repeat(6,28px);gap:2px}
.x-pub-emoji-pop span{cursor:pointer;font-size:18px;text-align:center;line-height:28px}
.x-pub-grid{display:grid;grid-template-columns:repeat(3,88px);gap:8px}
.x-pub-grid .x-mom-pick-wrap{width:88px;height:88px}
.x-pub-grid .x-mom-pick{width:88px;height:88px;border-radius:3px;object-fit:cover;display:block}
.x-pub-grid .x-mom-pick-rm{width:18px;height:18px;line-height:16px;font-size:14px}
.x-pub-grid .x-mom-addpick{width:88px;height:88px;border-radius:3px;background:#F2F2F2;color:#B0B0B0;
  font-size:36px;font-weight:200;display:flex;align-items:center;justify-content:center;cursor:pointer}
.x-pub-grid .x-mom-addpick.busy{font-size:18px}
.x-pub-grid .x-mom-video-hint{grid-column:1/-1;font-size:12px;color:#999}
.x-pub-rows{margin-top:16px;border-top:1px solid var(--line-soft,#E6E6E6)}
.x-pub-row{display:flex;align-items:center;gap:12px;height:54px;border-bottom:1px solid var(--line-soft,#E6E6E6);cursor:pointer}
.x-pub-row:hover{background:var(--list-hover,rgba(0,0,0,.025))}
.x-pub-row-ico{width:22px;flex:0 0 22px;display:flex;align-items:center;justify-content:center;font-size:21px;color:#333}
.x-pub-row-ico svg{display:block}
.x-pub-row-label{font-size:15px;color:var(--ink)}
.x-pub-row-val{margin-left:auto;font-size:13px;color:var(--muted,#999);max-width:190px;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.x-pub-row-arrow{font-size:22px;color:#C5C5C5;line-height:1}
.x-pub-foot{display:flex;align-items:center;justify-content:center;gap:16px;padding:16px 0 0}
.x-pub-btn{width:108px;height:36px;border:0;border-radius:4px;font-size:14px;cursor:pointer;transition:filter .15s}
.x-pub-btn:hover{filter:brightness(.97)}
.x-pub-btn.primary{background:#15AC70;color:#FFF}
.x-pub-btn.ghost{background:#F2F2F2;color:#333}
/* 双栏联系人选择：左搜索 + 首字母分组，右已选 */
.x-pick-body{display:flex;height:560px;max-height:66vh;min-height:0}
.x-pick-left{width:46%;min-width:0;display:flex;flex-direction:column;border-right:1px solid var(--line-soft,#E6E6E6)}
.x-pick-right{flex:1;min-width:0;display:flex;flex-direction:column;padding:18px 20px}
.x-pick-search{display:flex;align-items:center;gap:8px;height:36px;margin:14px 16px 8px;padding:0 10px;
  border:1px solid #15AC70;border-radius:5px;color:#9A9A9A;flex:none}
.x-pick-search svg{display:block;flex:none}
.x-pick-input{flex:1;min-width:0;border:0;outline:none;background:transparent;font-size:13px;color:var(--ink)}
.x-pick-list{flex:1;min-height:0;overflow-y:auto;padding:0 12px 12px}
.x-pick-letter{padding:10px 8px 4px;font-size:12px;color:#9A9A9A}
.x-pick-row{display:flex;align-items:center;gap:12px;height:48px;padding:0 8px;border-radius:6px;cursor:pointer}
.x-pick-row:hover{background:var(--list-hover,rgba(0,0,0,.04))}
.x-pick-check{width:17px;height:17px;flex:0 0 17px;border:1px solid #C9C9C9;border-radius:50%;position:relative}
.x-pick-row.on .x-pick-check{background:#15AC70;border-color:#15AC70}
.x-pick-row.on .x-pick-check::after{content:"";position:absolute;left:5px;top:2px;width:4px;height:8px;
  border:solid #FFF;border-width:0 2px 2px 0;transform:rotate(45deg)}
.x-pick-av{width:36px;height:36px;flex:0 0 36px;border-radius:50%;overflow:hidden;background:var(--field)}
.x-pick-av .avatar{width:100%;height:100%;border-radius:50%;position:relative;overflow:hidden}
.x-pick-av .avatar img{width:100%;height:100%;object-fit:cover;display:block}
.x-pick-av .av-fb{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#FFF;font-size:13px}
.x-pick-name{font-size:13.5px;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.x-pick-head{font-size:15px;font-weight:600;color:var(--ink);padding-bottom:14px;border-bottom:1px solid var(--line-soft,#E6E6E6)}
.x-pick-selected{flex:1;min-height:0;overflow-y:auto;padding-top:6px}
.x-pick-sel{display:flex;align-items:center;gap:10px;height:44px;border-bottom:1px solid var(--line-soft,#E6E6E6);font-size:13px;color:var(--ink)}
.x-pick-sel-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.x-pick-sel-x{margin-left:auto;border:0;background:transparent;color:#BFBFBF;font-size:18px;cursor:pointer}
.x-pick-tip{font-size:12px;color:var(--muted,#999);padding-top:14px;line-height:1.7}
.x-vis-chosen{font-size:12px;color:#15AC70;padding-top:10px}
.x-pick-empty{font-size:12px;color:var(--faint,#AAA);padding:14px 8px}
.x-pick-foot,.x-vis-foot{height:60px;flex:none;display:flex;align-items:center;justify-content:flex-end;
  gap:12px;padding:0 20px;border-top:1px solid var(--line-soft,#E6E6E6)}
.x-pick-foot .x-pub-btn,.x-vis-foot .x-pub-btn{width:96px;height:34px}
/* 谁可以看：四选一 + 标签子选择 */
.x-vis-inner{padding:24px 26px 18px}
.x-vis-title{font-size:15px;font-weight:600;color:var(--ink);margin-bottom:6px}
.x-vis-row{display:flex;align-items:center;gap:14px;min-height:68px;border-bottom:1px solid var(--line-soft,#E6E6E6);cursor:pointer}
.x-vis-row:last-child{border-bottom:0}
.x-vis-radio{width:18px;height:18px;flex:0 0 18px;border:1px solid #C9C9C9;border-radius:50%;position:relative}
.x-vis-row.on .x-vis-radio{border-color:#15AC70}
.x-vis-row.on .x-vis-radio::after{content:"";position:absolute;inset:4px;border-radius:50%;background:#15AC70}
.x-vis-meta{flex:1;display:flex;flex-direction:column;gap:5px}
.x-vis-meta b{font-size:14px;font-weight:500;color:var(--ink)}
.x-vis-meta small{font-size:11.5px;color:#9A9A9A}
.x-vis-go{font-size:22px;color:#C9C9C9}
.x-vis-tagbar{display:flex;flex-wrap:wrap;gap:6px;padding:10px 16px;border-bottom:1px solid var(--line-soft,#E6E6E6)}
.x-vis-tag{padding:4px 10px;border:1px solid transparent;border-radius:12px;background:var(--field);
  font-size:12px;color:var(--muted);cursor:pointer}
.x-vis-tag.on{background:#E8F8EE;color:#15AC70;border-color:#15AC70}
[data-theme="dark"] .x-pub-btn.ghost{background:#3A413C;color:#DDD}
[data-theme="dark"] .x-pub-grid .x-mom-addpick{background:#333A35;color:#888}
[data-theme="dark"] .x-pub-emoji-pop{background:#2B322D;border-color:#414942}

/* ================================================================== v3.6.34
 * 消息多选 + 主流风格转发对话框 + 合并转发卡片
 */
/* --- 多选勾选框：收发两侧统一绝对定位到消息行最左（v3.6.36 对标主流客户端） --- */
/* v3.6.38：多选态每行预留上下留白（padding），选中灰底覆盖整块含留白区域——
   灰底比消息内容高出一截，视觉更舒展；所有行一致故选中不引起任何位移。 */
.msg-area.multi-select .msg-row{position:relative;padding:8px 0 8px 40px;margin:0 0 0 0;
  transition:background .12s;cursor:pointer;border-radius:5px}
.msg-area.multi-select .msg-row.mine{padding:8px 0 8px 40px;padding-right:0}
/* 选中态为整行灰底（非绿色），与主流客户端一致 */
.msg-area.multi-select .msg-row.selected{background:#DEDEDE;border-radius:5px}
/* v3.6.39：勾选框放到消息行左侧预留区，四周留白（不再紧贴头像/边缘） */
.msg-check{position:absolute;left:9px;top:15px;width:20px;height:20px;border:1.5px solid #C9C9C9;
  border-radius:50%;box-sizing:border-box;cursor:pointer;display:flex;align-items:center;justify-content:center;
  background:var(--panel);transition:background .12s,border-color .12s;z-index:2}
.msg-check:hover{border-color:#15AC70}
.msg-check.on{background:#15AC70;border-color:#15AC70}
.msg-check-tick{width:9px;height:5px;border-left:2px solid #fff;border-bottom:2px solid #fff;
  transform:rotate(-45deg) translate(1px,-1px);opacity:0}
.msg-check.on .msg-check-tick{opacity:1}
/* 时间分割线/系统提示在多选态保持正常显示（不再淡化） */
[data-theme="dark"] .msg-area.multi-select .msg-row.selected{background:#3E4540}
[data-theme="dark"] .msg-check{background:#232A25}

/* --- 多选工具栏（替换输入区） --- */
/* v3.6.35：按钮尺寸/风格与左侧标签页 .nav-btn 完全对齐 ——
   同为 60×52 触控区、22px 线性图标、var(--nav-ink) 配色、var(--nav-hover) 悬停底。
   文字标签仅作可识别性辅助，缩小并降低存在感，不参与尺寸基准。 */
.select-bar{flex:0 0 auto;min-height:88px;background:var(--panel);border-top:1px solid var(--line-soft);
  display:flex;flex-direction:column;padding:6px 18px 8px;position:relative}
.select-bar.hidden{display:none}
.select-bar .sel-count,.select-bar.has-sel::before{position:absolute;top:4px;left:20px;font-size:11px;color:var(--faint)}
.select-bar.has-sel::before{content:"已选消息"}
.select-bar .sel-count{left:auto;right:48px;color:#15AC70}
.select-bar .sel-actions{flex:1;display:flex;align-items:center;justify-content:space-around;gap:2px}
.select-bar .sel-btn{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;
  width:60px;height:52px;padding:0;
  border:none;background:transparent;color:var(--nav-ink);font-size:11px;cursor:pointer;border-radius:8px;
  transition:background .12s,color .12s}
.select-bar .sel-btn svg{width:22px;height:22px;color:inherit;opacity:.85}
.select-bar .sel-btn:hover{color:var(--ink);background:var(--nav-hover)}
.select-bar .sel-btn:hover svg{opacity:1}
.select-bar .sel-btn.danger{color:#FA5151}
.select-bar .sel-btn.danger svg{opacity:.9}
.select-bar:not(.has-sel) .sel-btn{opacity:.45;pointer-events:none}
.select-bar .sel-close{position:absolute;top:3px;right:10px;width:26px;height:26px;border:none;background:transparent;
  color:var(--faint);font-size:18px;cursor:pointer;border-radius:50%}
.select-bar .sel-close:hover{background:var(--nav-hover)}
[data-theme="dark"] .select-bar .sel-btn.danger{color:#FF6B6B}

/* --- 合并转发卡片（聊天流里的消息气泡）—— v3.6.38 对标主流：无论收发都用灰底 --- */
/* 用 .msg-row.mine 前置提升优先级，覆盖 styles.css 的 .msg-row.mine .bubble{background:var(--bubble-me)} */
.msg-row .merge-bubble,.msg-row.mine .merge-bubble{cursor:pointer;
  /* v3.6.40：固定宽度，所有合并卡片等宽（v3.6.39 前用 min/max 自适应导致长短不一） */
  width:280px;min-width:280px;max-width:280px;
  /* v3.6.39：底色固定中性灰（比背景 #F5F5F5 暗、比选中态 #DEDEDE 浅），避免与背景/选中融为一体 */
  background:#E8E8E8;box-shadow:none;border-radius:6px;padding:12px 14px}
/* 去掉气泡小尖角（灰卡片无尖角）：收发两侧都隐藏 ::before */
.msg-row .merge-bubble::before,.msg-row.mine .merge-bubble::before{content:none;display:none;border:0}
.merge-bubble .x-merge-title{font-size:13px;font-weight:500;color:var(--ink);margin-bottom:9px;line-height:1.45}
.merge-bubble .x-merge-lines{display:flex;flex-direction:column;gap:4px}
.merge-bubble .x-merge-line{font-size:12px;color:var(--muted);line-height:1.5;
  overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical}
.merge-bubble .x-merge-line span{color:var(--muted)}
.merge-bubble .x-merge-foot{font-size:12px;color:var(--faint);margin-top:10px;padding-top:8px;
  border-top:1px solid var(--line-soft);display:flex;align-items:center;gap:3px}
.merge-bubble .x-merge-foot span{font-size:15px}
.merge-bubble:hover{filter:brightness(.98)}
/* 选中/多选态都不再带阴影 */
.msg-area.multi-select .msg-row.selected .merge-bubble,.merge-bubble:focus{box-shadow:none}
[data-theme="dark"] .msg-row .merge-bubble,[data-theme="dark"] .msg-row.mine .merge-bubble{background:#2E352F}

/* --- 主流风格两栏转发对话框 --- */
.x-dialog.x-fwd-dialog{border-radius:12px;overflow:hidden}
.x-fwd-body{display:flex;height:540px;max-height:74vh;min-height:0}
.x-fwd-left{width:340px;flex:0 0 340px;display:flex;flex-direction:column;border-right:1px solid var(--line-soft);
  background:var(--panel)}
.x-fwd-search{height:50px;flex:0 0 50px;display:flex;align-items:center;gap:8px;padding:0 16px;
  border-bottom:1px solid var(--line-soft)}
.x-fwd-search svg{color:var(--faint)}
.x-fwd-input{flex:1;min-width:0;border:1px solid #15AC70;border-radius:6px;height:30px;padding:0 10px;
  font-size:13px;background:var(--field);color:var(--ink);outline:none}
.x-fwd-tabs{display:flex;align-items:center;gap:18px;padding:12px 16px 8px;font-size:12.5px;color:var(--muted)}
.x-fwd-tabs .on{color:#15AC70;font-weight:600}
.x-fwd-tabs span:not(.on){cursor:pointer}
.x-fwd-list{flex:1;overflow-y:auto;padding:2px 10px 10px}
.x-fwd-row{display:flex;align-items:center;gap:11px;height:56px;padding:0 8px;border-radius:8px;cursor:pointer}
.x-fwd-row:hover{background:var(--list-hover)}
.x-fwd-row.on{background:var(--list-hover)}
.x-fwd-radio{width:18px;height:18px;flex:0 0 18px;border:1.5px solid #C9C9C9;border-radius:50%;position:relative;box-sizing:border-box}
.x-fwd-row.on .x-fwd-radio{background:#15AC70;border-color:#15AC70}
.x-fwd-row.on .x-fwd-radio::after{content:"";position:absolute;left:5px;top:2px;width:5px;height:9px;
  border-right:2px solid #fff;border-bottom:2px solid #fff;transform:rotate(45deg)}
.x-fwd-row .avatar{width:36px;height:36px;flex:0 0 36px;font-size:13px}
.x-fwd-name{flex:1;min-width:0;font-size:13.5px;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.x-fwd-empty{padding:30px;text-align:center;color:var(--faint);font-size:13px}
.x-fwd-right{flex:1;min-width:0;display:flex;flex-direction:column;padding:0 22px 18px;background:var(--panel)}
.x-fwd-head{font-size:14px;font-weight:600;color:var(--ink);padding:18px 0 12px;border-bottom:1px solid var(--line-soft)}
.x-fwd-sendto{font-weight:400;color:var(--muted);font-size:13px;margin-left:6px}
.x-fwd-sendto-empty{color:var(--faint)}
.x-fwd-preview{flex:1;display:flex;align-items:center;justify-content:center;padding:16px}
.x-fwd-pv-card{width:100%;max-width:300px;background:var(--field);border-radius:8px;padding:14px 16px}
.x-fwd-pv-title{font-size:13px;color:var(--ink);margin-bottom:8px;font-weight:500}
.x-fwd-pv-lines{display:flex;flex-direction:column;gap:4px;padding:6px 0;border-top:1px solid var(--line-soft);
  border-bottom:1px solid var(--line-soft)}
.x-fwd-pv-line{font-size:11.5px;color:var(--muted);line-height:1.5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.x-fwd-pv-line span{color:#576B95}
.x-fwd-pv-foot{font-size:11px;color:var(--faint);margin-top:8px;display:flex;align-items:center;gap:4px}
.x-fwd-pv-foot span{font-size:15px}
.x-fwd-single{max-width:320px;background:var(--field);border-radius:8px;padding:14px 16px;font-size:13px;
  color:var(--ink);line-height:1.6;position:relative}
.x-fwd-single-name{color:#576B95}
.x-fwd-single-arrow{position:absolute;right:14px;top:50%;transform:translateY(-50%);font-size:20px;color:var(--faint)}
.x-fwd-msgbox{height:44px;flex:0 0 44px;display:flex;align-items:center;gap:10px;padding:0 12px;
  border:1px solid var(--line-soft);border-radius:8px;background:var(--field);margin-bottom:12px}
.x-fwd-msgbox svg{color:var(--faint)}
.x-fwd-msg{flex:1;min-width:0;border:none;background:transparent;outline:none;font-size:13px;color:var(--ink)}
.x-fwd-foot{display:flex;justify-content:flex-end;gap:10px}
.x-fwd-btn{height:34px;padding:0 24px;border-radius:6px;font-size:13px;cursor:pointer;border:1px solid var(--line-soft)}
.x-fwd-btn.primary{background:#15AC70;border-color:#15AC70;color:#fff}
.x-fwd-btn.primary.disabled{opacity:.5;pointer-events:none}
.x-fwd-btn.ghost{background:var(--panel);color:var(--muted)}
[data-theme="dark"] .x-fwd-radio{border-color:#6A726B}

/* --- 合并聊天记录详情 --- */
/* v3.6.37：合并记录详情窗口 —— 标题栏 + 头像/昵称/时间/内容 + 分隔线 */
/* v3.6.45：整窗内边距——标题、消息列表、留言都离窗口边缘有留白，不再贴边 */
.x-md-dialog{padding:18px 20px 20px}
.x-md-dialog .x-head{height:auto;flex:0 0 auto;padding:0 0 10px;margin-bottom:0;border-bottom:1px solid var(--line-soft)}
/* v3.6.47：参照主流样式——消息不带卡片框，仅行与行之间一条底部细线分隔；
   列表高度上限调高（62vh），弹窗宽度由 600px 收窄到 560px */
.x-md-list{max-height:62vh;overflow-y:auto;padding:0 0 20px;min-height:120px}
.x-md-row{display:flex;align-items:flex-start;gap:11px;padding:12px 0;
  border-bottom:1px solid var(--line-soft)}
.x-md-row:last-child{border-bottom:0}
.x-md-av{width:34px;height:34px;flex:0 0 34px;font-size:13px}
.x-md-main{flex:1;min-width:0}
.x-md-nick{font-size:12px;color:var(--faint);margin-bottom:4px;line-height:1.3}
.x-md-text{font-size:14px;color:var(--ink);line-height:1.6;word-break:break-word;white-space:pre-wrap}
.x-md-img{max-width:220px;max-height:220px;border-radius:5px;display:block;cursor:zoom-in;object-fit:cover}
.x-md-time{font-size:11px;color:var(--faint);white-space:nowrap;padding-top:1px;flex:0 0 auto}
.x-md-comment{margin:14px 0 0;padding:10px 12px;background:var(--field);border:1px solid var(--line-soft);border-radius:6px;
  font-size:12.5px;color:var(--muted);line-height:1.5}
[data-theme="dark"] .x-md-img{filter:brightness(.96)}

/* --- v3.6.41：危险操作二次确认弹窗 --- */
.x-confirm{padding:4px 4px 8px;text-align:center}
.x-confirm-ico{width:52px;height:52px;margin:2px auto 14px;border-radius:26px;background:#FDECEC;
  color:#E34B4B;display:flex;align-items:center;justify-content:center}
.x-confirm-text{font-size:14px;line-height:1.7;color:var(--ink);word-break:break-word}
.x-confirm-tip{margin-top:10px;font-size:11.5px;line-height:1.6;color:var(--faint)}
[data-theme="dark"] .x-confirm-ico{background:rgba(227,75,75,.16);color:#FF7B7B}

/* ==================================================================
   v3.6.55：会话界面一比一复刻主流 IM 桌面版（后置覆盖，不动上方历史规则）。
   ① 实底浅灰三栏：去掉 v3.4.7 的淡蓝玻璃渐变/阴影，改 #F5F5F5 实底；
   ② 导航图标选中态绿底圆角块 + 聊天气泡红角标；
   ③ 搜索框纯白圆角 32px + 右侧圆圈 ⊕；
   ④ 会话头像 40px 圆角方 + 分割线起点对齐。
   仅作用于浅色主题，深色主题维持原有实底深色配色不变。
   ================================================================== */
html:not([data-theme="dark"]) {
  --app-grad:#F5F5F5;
  --titlebar:#F5F5F5; --titlebar-ink:#8A8A8A; --titlebar-hover:#EBEBEB;
  --nav:#F7F7F7; --nav-ink:#7A7A7A; --nav-hover:#EDEDED;
  --list:#FFFFFF; --list-hover:#F5F5F5;
  --selected:#15AC70; --selected-ink:#FFFFFF; --selected-sub:rgba(255,255,255,.92);
  --chat:#FFFFFF; --panel:#FFFFFF; --subtle:#F7F7F7;
  --field:#F5F5F5; --field-focus:#EDEDED;
  --bubble-other:#FFFFFF;
  --line:#E5E5E5; --line-soft:#EDEDED;
  --ink:#191919; --muted:#8A8A8A; --faint:#B2B2B2;
  --shadow:0 2px 8px rgba(0,0,0,.06); --shadow-sm:0 1px 4px rgba(0,0,0,.04);
  background:#F5F5F5;
}
html:not([data-theme="dark"]) body,
html:not([data-theme="dark"]) #app,
html:not([data-theme="dark"]) .body { background:#F5F5F5; }
html:not([data-theme="dark"]) #app { border-color:#E5E5E5; }
html:not([data-theme="dark"]) .titlebar { background:#F5F5F5; }
html:not([data-theme="dark"]) .nav,
html:not([data-theme="dark"]) .list-col,
html:not([data-theme="dark"]) .content-col { box-shadow:none; }
html:not([data-theme="dark"]) .conv-item,
html:not([data-theme="dark"]) .simple-row,
html:not([data-theme="dark"]) .cat-row { background:var(--list); }
html:not([data-theme="dark"]) .chat-header,
html:not([data-theme="dark"]) .msg-area,
html:not([data-theme="dark"]) .input-area,
html:not([data-theme="dark"]) .search-row { background:var(--panel); }
/* ③ 搜索框：纯白圆角 32px（与右侧 + 同高）+ 右侧圆圈 ⊕ 加号 */
.search-box{height:32px;background:#FFFFFF;border:1px solid var(--line-soft)}
.search-box:focus-within{background:#FFFFFF;border-color:var(--line)}
.add-btn{width:32px;height:32px;flex:0 0 32px;border-radius:50%;background:#FFFFFF;border:1px solid var(--line-soft)}
.add-btn svg{width:18px;height:18px}
/* ④ 会话头像 34→40px 圆角方 + 分割线起点对齐（padding12+头像40+gap10=62） */
.conv-avatar{flex:0 0 40px;width:40px;height:40px}
.conv-item::after{left:62px}
/* ② 导航图标选中态：主流 IM 式绿底圆角块 + 白色图标；未选中灰线性 */
.nav-btn{width:38px;height:38px;flex:0 0 38px;border-radius:8px;margin:1px 0}
.nav-btn svg{width:23px;height:23px;opacity:1}
.nav-btn.active{background:var(--brand,#15AC70);color:#FFF}
.nav-btn.active svg{color:#FFF;stroke:#FFF;opacity:1}
.nav-btn.has-unread.active svg{color:#FFF;stroke:#FFF}
.nav-badge{box-shadow:0 0 0 2px var(--nav,#F7F7F7)}
.nav-avatar{margin-bottom:12px}
/* 输入区/工具条细节贴近主流 IM：输入框上沿分隔线更淡 */
.input-area{border-color:var(--line-soft)}
/* 深色主题：导航选中块跟随品牌绿、头像同样 40px */
[data-theme="dark"] .nav-btn.active{background:var(--brand,#3DBE7E)}
[data-theme="dark"] .nav-btn.active svg{color:#FFF;stroke:#FFF}

/* v3.6.56：确认码弹窗去掉左侧提示文案后，6 格居中展示；关闭仅走按钮由 JS 控制 */
.x-dialog.x-tf-dialog .x-tf-row{justify-content:center;margin-bottom:12px}
.x-dialog.x-tf-dialog .x-tf-cells{justify-content:center}

/* ==================================================================
   v3.6.58：会话框整体样式恢复到 v3.6.54（还原 v3.4.7 渐变玻璃三栏）。
   仅覆盖 v3.6.55 的实底/去阴影/搜索框/输入框改动；
   v3.6.57 的导航旧激活态与 38px 头像写在下方，继续生效。
   ================================================================== */
html:not([data-theme="dark"]) {
  --app-grad: linear-gradient(158deg,#FFFFFF 0%,#FAFCFE 32%,#F0F7FC 66%,#E4F0FA 100%);
  --titlebar:#F8FBFE; --titlebar-ink:#8497A8; --titlebar-hover:#EBF3FA;
  --nav:rgba(255,255,255,.58); --nav-ink:#8497A8; --nav-hover:rgba(255,255,255,.90);
  --list:rgba(255,255,255,.72); --list-hover:rgba(255,255,255,.94);
  --selected:#15AC70; --selected-ink:#FFFFFF; --selected-sub:rgba(255,255,255,.94);
  --chat:rgba(255,255,255,.56); --panel:rgba(255,255,255,.82); --subtle:rgba(240,247,252,.70);
  --field:rgba(255,255,255,.74); --field-focus:rgba(255,255,255,.96);
  --bubble-other:rgba(255,255,255,.94);
  --line:rgba(23,50,80,.10); --line-soft:rgba(23,50,80,.06);
  --ink:#17242E; --muted:#708599; --faint:#9BAEBD;
  --shadow:0 8px 28px rgba(23,50,80,.12); --shadow-sm:0 2px 10px rgba(23,50,80,.08);
  background:var(--app-grad);
}
html:not([data-theme="dark"]) body,
html:not([data-theme="dark"]) #app,
html:not([data-theme="dark"]) .body { background:transparent; }
html:not([data-theme="dark"]) #app { border-color:rgba(23,50,80,.12); }
html:not([data-theme="dark"]) .titlebar { background:rgba(248,251,254,.86); }
html:not([data-theme="dark"]) .nav,
html:not([data-theme="dark"]) .list-col,
html:not([data-theme="dark"]) .content-col { box-shadow:0 4px 20px rgba(23,50,80,.05); }
html:not([data-theme="dark"]) .conv-item,
html:not([data-theme="dark"]) .simple-row,
html:not([data-theme="dark"]) .cat-row { background:transparent; }
html:not([data-theme="dark"]) .chat-header,
html:not([data-theme="dark"]) .msg-area,
html:not([data-theme="dark"]) .input-area,
html:not([data-theme="dark"]) .search-row { background:transparent; }
html:not([data-theme="dark"]) .input-area { border-color:rgba(23,50,80,.14) !important; box-shadow:0 2px 10px rgba(23,50,80,.06); }
/* 搜索框/加号按钮回 3.6.54：28px 圆角 6 + 灰底方形加号 */
.search-box{height:28px;background:var(--field);border-radius:6px;border:0}
.search-box:focus-within{background:var(--field-focus)}
.add-btn{width:28px;height:28px;flex:0 0 28px;border-radius:6px;background:var(--field);border:0}
.add-btn svg{width:20px;height:20px;color:#7A7A7A}
/* 导航按钮尺寸回 3.6.54：整列 52px 触控区；激活配色由下方 v3.6.57 覆盖 */
.nav-btn{width:100%;height:52px;flex:0 0 52px;border-radius:0;margin:0}
.nav-btn svg{width:22px;height:22px}
.nav-btn .ln-ico,.nav-btn svg.ln-ico{width:22px;height:22px}
.nav-avatar{margin-bottom:14px}

/* v3.6.57：侧栏激活恢复旧版（去绿底方块，仅图标/文字用主题绿）；会话头像 40→38px 微调 */
.nav-btn.active{background:transparent;color:var(--nav-active)}
.nav-btn.active svg{color:var(--nav-active);stroke:var(--nav-active);opacity:1}
.nav-btn.has-unread.active svg{color:var(--nav-active);stroke:var(--nav-active)}
[data-theme="dark"] .nav-btn.active{background:transparent}
[data-theme="dark"] .nav-btn.active svg{color:var(--nav-active);stroke:var(--nav-active)}
.conv-avatar{flex:0 0 38px;width:38px;height:38px}
.conv-item::after{left:60px}

/* ==================================================================
   v3.6.59：字体样式/颜色 + 配色一比一复刻参考图（v3.6.57 中性灰实底）。
   布局一律不动：导航 52px、会话头像 38px、搜索/加号 28px、线性加号、
   侧栏旧激活态全部沿用上方现行规则；本块只覆盖“颜色与字体呈现”：
   ① 三栏改中性灰实底（#F5F5F5 标题栏 / #F7F7F7 导航 / 白色列表与聊天区）；
   ② 文字 ink #191919 / muted #8A8A8A / faint #B2B2B2；
   ③ 分割线、输入框边框全部中性灰，去蓝调玻璃渐变与投影；
   ④ 搜索框/加号改白底细边框（尺寸仍 28px，加号仍线性）；
   ⑤ 会话列表字体族/字号/字重显式锁定为参考图值（14/12/11px，常规字重）。
   ================================================================== */
html:not([data-theme="dark"]) {
  --app-grad:#F5F5F5;
  --titlebar:#F5F5F5; --titlebar-ink:#8A8A8A; --titlebar-hover:#EBEBEB;
  --nav:#F7F7F7; --nav-ink:#7A7A7A; --nav-hover:#EDEDED;
  --list:#FFFFFF; --list-hover:#F5F5F5;
  --selected:#15AC70; --selected-ink:#FFFFFF; --selected-sub:rgba(255,255,255,.92);
  --chat:#FFFFFF; --panel:#FFFFFF; --subtle:#F7F7F7;
  --field:#F5F5F5; --field-focus:#EDEDED;
  --bubble-other:#FFFFFF;
  --line:#E5E5E5; --line-soft:#EDEDED;
  --ink:#191919; --muted:#8A8A8A; --faint:#B2B2B2;
  --shadow:0 2px 8px rgba(0,0,0,.06); --shadow-sm:0 1px 4px rgba(0,0,0,.04);
  background:#F5F5F5;
}
html:not([data-theme="dark"]) body,
html:not([data-theme="dark"]) #app,
html:not([data-theme="dark"]) .body { background:#F5F5F5; }
html:not([data-theme="dark"]) #app { border-color:#E5E5E5; }
html:not([data-theme="dark"]) .titlebar { background:#F5F5F5; }
html:not([data-theme="dark"]) .nav,
html:not([data-theme="dark"]) .list-col,
html:not([data-theme="dark"]) .content-col { box-shadow:none; }
html:not([data-theme="dark"]) .conv-item,
html:not([data-theme="dark"]) .simple-row,
html:not([data-theme="dark"]) .cat-row { background:var(--list); }
html:not([data-theme="dark"]) .chat-header,
html:not([data-theme="dark"]) .msg-area,
html:not([data-theme="dark"]) .input-area,
html:not([data-theme="dark"]) .search-row { background:var(--panel); }
html:not([data-theme="dark"]) .input-area { border-color:var(--line-soft) !important; box-shadow:none; }
/* 搜索框/加号：白底细边框，尺寸仍 28px、加号仍线性（仅改配色） */
.search-box{height:28px;background:#FFFFFF;border:1px solid var(--line-soft);border-radius:6px}
.search-box:focus-within{background:#FFFFFF;border-color:var(--line)}
.add-btn{width:28px;height:28px;flex:0 0 28px;border-radius:6px;background:#FFFFFF;border:1px solid var(--line-soft)}
.add-btn svg{width:20px;height:20px;color:#7A7A7A}
/* 字体呈现显式锁定参考图值：不改尺寸，只固定族/字号/字重/颜色 */
.conv-name{font-family:"Microsoft YaHei","PingFang SC","Noto Sans SC",system-ui,sans-serif;font-size:14px;font-weight:400;line-height:20px;color:var(--ink)}
.conv-prev{font-size:12px;line-height:20px;color:var(--muted)}
.conv-time{font-size:11px;color:var(--faint)}

/* ==================================================================
   v3.6.60：主流 IM式「半透明磨砂」窗口（Windows 11 Mica 背景材质）+ 系统圆角保留 + 圆圈加号。
   主进程：transparent 保持 false（否则 Windows 会去掉系统圆角与阴影）、
   backgroundColor:#00000000、setBackgroundMaterial('mica')；桌面壁纸经系统模糊透出。
   本块只把 v3.6.59 的「实底表面」换成半透明 rgba，字体/字号/字重、布局尺寸、
   38px 头像、52px 导航、28px 搜索框、导航旧激活态、选中绿一律不动：
   ① 画布/标题栏/导航/列表/聊天/输入区/搜索框/加号改半透明；
   ② 三栏加 backdrop-filter 毛玻璃，容器补圆角与轻投影，保留通透质感；
   ③ 加号图标 #ln-plus-circle（灰色空心圆包 + 号），按钮仍 28px。
   ================================================================== */
html:not([data-theme="dark"]) {
  --app-grad:rgba(245,245,245,.72);
  --titlebar:rgba(245,245,245,.78);
  --nav:rgba(247,247,247,.76);
  --list:rgba(255,255,255,.86);
  --list-hover:rgba(245,245,245,.92);
  --chat:rgba(255,255,255,.82);
  --panel:rgba(255,255,255,.88);
  --subtle:rgba(247,247,247,.82);
  --field:rgba(255,255,255,.80);
  --field-focus:rgba(237,237,237,.90);
  --bubble-other:rgba(255,255,255,.92);
}
html:not([data-theme="dark"]),
html:not([data-theme="dark"]) body,
html:not([data-theme="dark"]) #app,
html:not([data-theme="dark"]) .body { background:transparent; }
html:not([data-theme="dark"]) #app {
  border:1px solid rgba(255,255,255,.45);
  border-radius:10px;
  box-shadow:0 10px 40px rgba(0,0,0,.18);
}
html:not([data-theme="dark"]) .titlebar { background:rgba(245,245,245,.78); }
html:not([data-theme="dark"]) .nav,
html:not([data-theme="dark"]) .list-col,
html:not([data-theme="dark"]) .content-col {
  backdrop-filter:blur(18px) saturate(1.35);
  -webkit-backdrop-filter:blur(18px) saturate(1.35);
  box-shadow:0 4px 20px rgba(0,0,0,.06);
}
html:not([data-theme="dark"]) .search-box{height:28px;background:rgba(255,255,255,.72);border:1px solid rgba(0,0,0,.06);border-radius:6px}
html:not([data-theme="dark"]) .search-box:focus-within{background:rgba(255,255,255,.92);border-color:rgba(0,0,0,.10)}
html:not([data-theme="dark"]) .add-btn{width:28px;height:28px;flex:0 0 28px;border-radius:6px;background:rgba(255,255,255,.72);border:1px solid rgba(0,0,0,.06)}
html:not([data-theme="dark"]) .add-btn svg{width:18px;height:18px;color:#6B6B6B}

/* ==================================================================
   v3.6.61：修复黑边 + 标题栏也透明（真透明窗口方案）。
   v3.6.60 用 transparent:false + #00000000 想借 Mica 透出，但窗口帧/边缘
   在这台 Win11 构建上被画成纯黑（四角透壁纸、四边死黑）。本版主进程改
   transparent:true，整窗 alpha 生效，故渲染层确保「任何顶层容器都不实底」，
   让桌面壁纸从标题栏到三栏真实透出；标题栏单独加 backdrop-filter 磨砂，
   与三栏同一质感。字体/字号/字重、布局尺寸、38px 头像、52px 导航、
   28px 搜索框、导航旧激活态、选中绿一律不动。
   ================================================================== */
/* 顶层全部透明：窗口背景、画布、应用壳、内容区都不许有实色挡住壁纸 */
html:not([data-theme="dark"]),
html:not([data-theme="dark"]) body,
html:not([data-theme="dark"]) #app,
html:not([data-theme="dark"]) .body { background:transparent !important; }
/* 标题栏也半透明 + 磨砂；覆盖 v3.6.59/v3.6.60 的实底与 pre-login 强制白色
   （登录态由 #xNetOverlay::before 自己的白色不透明层负责，不靠标题栏实底） */
html:not([data-theme="dark"]) .titlebar.titlebar {
  background:rgba(245,245,245,.62) !important;
  backdrop-filter:blur(18px) saturate(1.35);
  -webkit-backdrop-filter:blur(18px) saturate(1.35);
}
/* 应用壳圆角 + 投影：整窗透明后由 CSS 提供窗口边界的通透质感 */
html:not([data-theme="dark"]) #app {
  border:1px solid rgba(255,255,255,.55) !important;
  border-radius:10px !important;
  box-shadow:0 10px 40px rgba(0,0,0,.20) !important;
}
/* 登录/登出过场态例外：登录卡片是实白，标题栏保持白色与其连成一体，
   避免登录窗口顶部露出壁纸割裂（登录层自带不透明 ::before 覆盖内容区）。 */
html.pre-login .titlebar.titlebar,
html.auth-transition .titlebar.titlebar {
  background:#FFFFFF !important;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
}

/* ==================================================================
   v3.6.62：「框架整体」90% 不透明磨砂玻璃，三块面板恢复 v3.6.59 实底。
   用户圈选（截图红线像素定位）：窗口外边框一圈 + 标题栏条 + 标题栏下方
   水平缝（y≈33-39）+ 导航/列表竖缝（x≈66-72）+ 列表/聊天竖缝（x≈302-308）
   + 聊天右侧/底部缝 —— 标题栏与 .body 的 6px 内缝通道物理连续，构成一个
   「框架整体」。框架 = rgba(245,245,245,.9)（90% 不透明、壁纸隐约透出，
   同类主流客户端质感），标题栏加 backdrop-filter 磨砂（缝隙仅 6px，磨砂
   不可感知，只上同色底即可，且避免 backdrop-filter 生成 containing block
   影响内部浮层定位）；导航/列表/聊天三块面板恢复 v3.6.59 不透明实底
   （#F7F7F7/#FFFFFF/#F5F5F5），去毛玻璃去投影；搜索框/加号回实底白。
   布局/字号/38px 头像/52px 导航/旧激活态/圆圈加号一律不动。
   ================================================================== */
html:not([data-theme="dark"]) {
  --app-grad:#F5F5F5;
  --nav:#F7F7F7; --list:#FFFFFF; --list-hover:#F5F5F5;
  --chat:#F5F5F5; --panel:#FFFFFF; --subtle:#F7F7F7;
  --field:#F5F5F5; --field-focus:#EDEDED; --bubble-other:#FFFFFF;
}
/* 框架整体①：标题栏条（顶部圆角随应用壳），90% 不透明磨砂 */
html:not([data-theme="dark"]) .titlebar.titlebar {
  background:rgba(245,245,245,.9) !important;
  border-radius:10px 10px 0 0;
  backdrop-filter:blur(18px) saturate(1.35);
  -webkit-backdrop-filter:blur(18px) saturate(1.35);
}
/* 框架整体②：标题栏下 + 面板四周的 6px 缝隙通道（同一底色连成一体） */
html:not([data-theme="dark"]) .body {
  background:rgba(245,245,245,.9) !important;
  border-radius:0 0 10px 10px;
}
/* 三块面板恢复 v3.6.59 实底：去毛玻璃、去投影 */
html:not([data-theme="dark"]) .nav,
html:not([data-theme="dark"]) .list-col,
html:not([data-theme="dark"]) .content-col {
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
  box-shadow:none;
}
html:not([data-theme="dark"]) .chat-header,
html:not([data-theme="dark"]) .msg-area,
html:not([data-theme="dark"]) .input-area,
html:not([data-theme="dark"]) .search-row { background:var(--panel); }
html:not([data-theme="dark"]) .input-area { border-color:var(--line-soft) !important; box-shadow:none; }
/* 搜索框/加号回 v3.6.59 实底白 */
html:not([data-theme="dark"]) .search-box{background:#FFFFFF;border:1px solid var(--line-soft)}
html:not([data-theme="dark"]) .search-box:focus-within{background:#FFFFFF;border-color:var(--line)}
html:not([data-theme="dark"]) .add-btn{background:#FFFFFF;border:1px solid var(--line-soft)}
/* 登录/登出过场态标题栏白色例外（须晚于上面的磨砂底才能覆盖登录窗） */
html.pre-login .titlebar.titlebar,
html.auth-transition .titlebar.titlebar {
  background:#FFFFFF !important;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
}


/* ==================================================================
   v3.6.63：主流 IM式整窗统一磨砂 + 导航列与框架一体。
   用户参考图：①整窗要有同类主流客户端那种统一通透磨砂感 —— 壁纸从整个
   窗口隐约透出，不只是框架；②左侧导航列与透明框架是一体的 —— 主流 IM里
   头像+图标列从窗口最顶贯穿到底、与标题栏无缝同色。
   实现：
   1) #app 统一 backdrop-filter 磨砂：壁纸模糊后从整窗均匀透出；
   2) 框架层（标题栏 + 缝隙通道）改 rgba(247,247,247,.85) 同底连成一体，
      各自的 backdrop-filter 去掉（#app 已统一磨砂，避免重复取景）；
   3) .body 上/左 padding 归零：导航列贴住标题栏与窗口左边缘，导航背景
      透明 = 与框架物理同层，真正「一体」；
   4) 列表/聊天面板改低 alpha 半透明白（壁纸 tint 均匀隐约），聊天头部/
      消息区/输入区/搜索行改透明跟随面板；搜索框/加号改半透明白；
   5) 布局尺寸不动：38px 头像、52px 导航、28px 搜索框、旧激活态、圆圈加号。
   ================================================================== */
html:not([data-theme="dark"]) #app {
  backdrop-filter:blur(22px) saturate(1.4);
  -webkit-backdrop-filter:blur(22px) saturate(1.4);
}
html:not([data-theme="dark"]) .titlebar.titlebar {
  background:rgba(247,247,247,.85) !important;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
  border-radius:10px 10px 0 0;
}
html:not([data-theme="dark"]) .body {
  background:rgba(247,247,247,.85) !important;
  padding:0 6px 6px 0 !important;
  border-radius:0 0 10px 10px;
}
/* 导航列与框架一体：贴住标题栏与左边缘，背景透明与框架同层无缝 */
html:not([data-theme="dark"]) .nav {
  background:transparent;
  border-radius:10px 0 0 10px;
}
/* 列表/聊天面板：低 alpha 半透明白，壁纸隐约透出（统一通透质感） */
html:not([data-theme="dark"]) .list-col { background:rgba(255,255,255,.55); }
html:not([data-theme="dark"]) .content-col { background:rgba(252,252,252,.5); }
html:not([data-theme="dark"]) .chat-header,
html:not([data-theme="dark"]) .msg-area,
html:not([data-theme="dark"]) .input-area,
html:not([data-theme="dark"]) .search-row { background:transparent; }
html:not([data-theme="dark"]) .input-area { border-color:rgba(0,0,0,.06) !important; box-shadow:none; }
/* 搜索框/加号：半透明白（尺寸仍 28px 不变） */
html:not([data-theme="dark"]) .search-box{background:rgba(255,255,255,.65);border:1px solid rgba(0,0,0,.06)}
html:not([data-theme="dark"]) .search-box:focus-within{background:rgba(255,255,255,.85);border-color:rgba(0,0,0,.1)}
html:not([data-theme="dark"]) .add-btn{background:rgba(255,255,255,.65);border:1px solid rgba(0,0,0,.06)}
/* 登录/登出过场态例外：登录卡片是实白，标题栏保持白色与其连成一体 */
html.pre-login .titlebar.titlebar,
html.auth-transition .titlebar.titlebar {
  background:#FFFFFF !important;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
}

/* ==================================================================
   v3.6.64：面板恢复不透明实底 + 框架透明只透颜色不透内容。
   用户反馈（截图红框）：①列表/聊天面板透出了后面窗口的清晰文字，
   绝对不行 —— 面板区域恢复 v3.6.62 不透明实底；
   ②透明部分（框架：标题栏 + 缝隙 + 导航列）不能透到文字等内容，
   只能透到颜色（同类主流客户端观感）。
   根因：transparent:true 窗口下，WebContents 的 backdrop-filter 无法
   采样 OS 桌面壁纸（壁纸不在网页渲染层取景范围内），blur 从未生效，
   半透明面板透出的是清晰的下层窗口内容。因此：
   1) #app 移除无效的 backdrop-filter；
   2) 框架层 alpha .9 → .95：透过率仅 5%，下层文字对比度低到无法辨认，
      视觉上只剩一团颜色 = 「只透颜色不透内容」；
   3) 三面板恢复 v3.6.59/62 不透明实底（#F7F7F7/#FFFFFF/#F5F5F5），
      聊天头部/消息区/输入区/搜索行回 var(--panel)，搜索框/加号回实底白；
   4) 导航列与框架一体结构保留（背景透明共享框架层、上/左缝归零）；
   5) 布局尺寸不动：38px 头像、52px 导航、28px 搜索框、旧激活态、圆圈加号。
   ================================================================== */
html:not([data-theme="dark"]) #app {
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
}
html:not([data-theme="dark"]) .titlebar.titlebar {
  background:rgba(245,245,245,.95) !important;
}
html:not([data-theme="dark"]) .body {
  background:rgba(245,245,245,.95) !important;
}
/* 三面板恢复 v3.6.62 不透明实底 */
html:not([data-theme="dark"]) {
  --nav:#F7F7F7; --list:#FFFFFF; --list-hover:#F5F5F5;
  --chat:#F5F5F5; --panel:#FFFFFF;
}
html:not([data-theme="dark"]) .list-col { background:var(--list); }
html:not([data-theme="dark"]) .content-col { background:var(--panel); }
html:not([data-theme="dark"]) .chat-header,
html:not([data-theme="dark"]) .msg-area,
html:not([data-theme="dark"]) .input-area,
html:not([data-theme="dark"]) .search-row { background:var(--panel); }
html:not([data-theme="dark"]) .input-area { border-color:var(--line-soft) !important; box-shadow:none; }
html:not([data-theme="dark"]) .search-box{background:#FFFFFF;border:1px solid var(--line-soft)}
html:not([data-theme="dark"]) .search-box:focus-within{background:#FFFFFF;border-color:var(--line)}
html:not([data-theme="dark"]) .add-btn{background:#FFFFFF;border:1px solid var(--line-soft)}
/* 登录/登出过场态例外：登录卡片是实白，标题栏保持白色与其连成一体 */
html.pre-login .titlebar.titlebar,
html.auth-transition .titlebar.titlebar {
  background:#FFFFFF !important;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
}

/* ==================================================================
   v3.6.65：导航小方块 + 列表四角圆角 + 加号/搜索框简化 + 线条减淡
   + 窗口四角轮廓清晰化。
   用户五点反馈（对照同类主流客户端）：
   1) 导航悬停效果改成「小方块」：按钮从整列 52px 横条改为 38×38 圆角 8
      小方块，悬停浅灰方块（同 nav-hover），选中仍为旧激活态（绿图标）；
   2) 消息栏列表四个边角都要圆角：list-col 与导航列之间恢复 6px 缝，
      四角 10px 全圆 + overflow:hidden 裁剪 hover 背景；
   3) 右上角加号去掉方型边框：裸图标，悬停浅灰圆底；
   4) 搜索框白底无边框（同类主流客户端式干净圆角）；
   5) 贯穿线条减淡：--line #E5E5E5→#EFEFEF、--line-soft #F0F0F0→#F5F5F5；
   6) 程序四角发虚：白色半透明边框 + 重投影导致轮廓模糊，改 rgba(0,0,0,.10)
      清晰细边框 + 减淡投影（0 6px 24px .12）。
   布局尺寸不动：38px 头像、28px 搜索框、旧激活态、圆圈加号。
   ================================================================== */
/* ① 导航小方块（悬停灰底方块，选中保持旧激活态绿图标） */
html:not([data-theme="dark"]) .nav-btn{
  width:38px;height:38px;flex:0 0 38px;border-radius:8px;margin:4px 0;
}
html:not([data-theme="dark"]) .nav-btn:hover{background:var(--nav-hover)}
/* ② 会话列表四角圆角：与导航列之间留 6px 缝 */
html:not([data-theme="dark"]) .list-col{
  margin-left:6px;border-radius:10px;overflow:hidden;
}
/* ③ 加号：去方型边框，裸图标 + 悬停浅灰圆底 */
html:not([data-theme="dark"]) .add-btn{
  background:transparent;border:0;border-radius:8px;
}
html:not([data-theme="dark"]) .add-btn:hover{background:rgba(0,0,0,.05)}
html:not([data-theme="dark"]) .add-btn svg{width:20px;height:20px;color:#7A7A7A}
/* ④ 搜索框：白底无边框 */
html:not([data-theme="dark"]) .search-box{
  background:#FFFFFF;border:0;box-shadow:0 1px 3px rgba(0,0,0,.05);
}
html:not([data-theme="dark"]) .search-box:focus-within{
  background:#FFFFFF;border:0;box-shadow:0 1px 3px rgba(0,0,0,.08);
}
/* ⑤ 贯穿线条减淡 */
html:not([data-theme="dark"]) {
  --line:#EFEFEF; --line-soft:#F5F5F5;
}
/* ⑥ 窗口四角轮廓清晰化：深色细边框 + 减淡投影 */
html:not([data-theme="dark"]) #app {
  border:1px solid rgba(0,0,0,.10) !important;
  box-shadow:0 6px 24px rgba(0,0,0,.12) !important;
}

/* ==================================================================
   v3.6.66：热搜吧白底统一 + 框架超浅蓝白渐变 + 搜索动画绿色化。
   1) 热搜吧页面「多了一块」根因：.x-hot-shell 底色是 --chat 灰，在工具栏
      与内容之间的空隙露出灰带 —— 统一改白底；
   2) 框架层（标题栏 + 缝隙 + 导航列一体）底色改超浅蓝白渐变（保持 .95
      透过率：只透颜色不透内容）；
   3) 搜索动画绿色化：进度条橙渐变→品牌绿渐变，「正在联网检索…」橙字→
      绿字呼吸动画，检索提示前加绿色呼吸点；
   4) 布局尺寸不动。
   ================================================================== */
html:not([data-theme="dark"]) .x-hot-shell{background:var(--panel,#FFFFFF)}
/* v3.6.68 修正：只调整聊天气泡底色，消息区背景保持白色（var(--panel)）不动；
   v3.6.67 的 #F5F5F5 与白底仅差约 4% 视觉上不可辨（等同未生效），改用明显
   可见的浅灰 #EDEDED，在白色消息区上形成同类主流客户端的气泡层次。 */
html:not([data-theme="dark"]) { --bubble-other:#EEEEF0; }
html:not([data-theme="dark"]) .titlebar.titlebar{
  background:linear-gradient(158deg,rgba(243,247,250,.95),rgba(247,249,246,.95)) !important;
}
html:not([data-theme="dark"]) .body{
  background:linear-gradient(158deg,rgba(243,247,250,.95),rgba(247,249,246,.95)) !important;
}
html:not([data-theme="dark"]) .x-hot-search-progress{
  background:linear-gradient(90deg,#59D98C,#15AC70);
}
html:not([data-theme="dark"]) .x-hot-result-loading{
  color:var(--brand,#15AC70);animation:xHotLoadingBreath 1.2s ease-in-out infinite;
}
@keyframes xHotLoadingBreath{0%,100%{opacity:1}50%{opacity:.45}}
html:not([data-theme="dark"]) .x-hot-search-hint::before{
  content:'';display:inline-block;width:7px;height:7px;margin-right:8px;
  border-radius:50%;background:#15AC70;box-shadow:0 0 0 3px rgba(21,172,112,.18);
  vertical-align:1px;animation:xHotLive 2s ease-in-out infinite;
}
/* v3.6.66 补：会话选中态文字对比度调低（同类主流客户端式柔和浅白） */
html:not([data-theme="dark"]) {
  --selected-ink:rgba(255,255,255,.88);
  --selected-sub:rgba(255,255,255,.62);
}

/* ==================================================================
   v3.6.69：对方气泡底色真正生效（修正 v3.6.4 全局钉白遗留）
   根因：v3.6.4「全局不透明化」块里
        html:not([data-theme="dark"]) .bubble{background:#FFFFFF}
        特异性 (0,2,1) 高于 styles.css 的 .bubble{background:var(--bubble-other)}
        (0,1,0)，导致前两轮只改 --bubble-other 变量对气泡本体完全无效
        （只有 ::before 箭头用同一变量会变，肉眼几乎看不出）。
   修法：用更高特异性 + !important 直接钉死对方普通气泡（排除我方绿气泡 /
        合并转发灰卡片 / 文件白卡片），箭头 border-right-color 同步钉死；
        不改动 v3.6.4 历史块，保持 verify-v364b 的历史断言成立。
   ================================================================== */
html:not([data-theme="dark"]) .msg-row:not(.mine) .bubble:not(.file-bubble):not(.merge-bubble){background:#EEEEF0 !important}
html:not([data-theme="dark"]) .msg-row:not(.mine) .bubble:not(.file-bubble):not(.merge-bubble)::before{border-right-color:#EEEEF0 !important}

/* ==================================================================
   v3.6.70：底色一比一复刻用户截图（实测量值）
   - 选中会话绿 #15AC70 / 我方气泡 #9DF29F
   - 会话列表底 #EEEEF0 / 消息区底 #FAFAFA / 对方气泡 #EEEEF0
   说明（踩坑记录）：v3.6.64 末尾块用 html:not([data-theme="dark"])
   重新定义了 --list/--panel/--chat，本块必须放在文件最后才能生效；
   历史块一律不动，避免旧断言失效。
   ================================================================== */
html:not([data-theme="dark"]) {
  --brand:#15AC70; --brand-strong:#12995F; --brand-soft:#E7F5EE;
  --nav-active:#15AC70;
  --list:#EEEEF0; --list-hover:#E7E7EA;
  --selected:#15AC70; --selected-ink:#FFFFFF; --selected-sub:rgba(255,255,255,.92);
  --chat:#FAFAFA; --panel:#FAFAFA; --subtle:#F4F4F6;
  --field:#EFEFF2; --field-focus:#E8E8EB;
  --bubble-other:#EEEEF0; --bubble-me:#9DF29F;
}

/* v3.6.70 #1：热搜吧频道切换不再整页重绘 —— 旧卡片保留，加载中用轻微降透明过渡，
   避免 shell + 骨架屏重灌造成的白屏闪烁 */
.x-hot-feed.is-switching{opacity:.55;pointer-events:none;transition:opacity .14s ease}

/* ==================================================================
   v3.6.70 #7：登录窗口头部与内容接不上
   根因：第八/九/十…轮在文件末尾追加了
   html:not([data-theme="dark"]) .titlebar.titlebar{background:linear-gradient(...)!important}
   而 pre-login 的白色标题栏块都写在它前面 —— 同为 (0,2,1)+!important，
   后写的渐变赢，于是登录窗顶部是磨砂灰带，下面却是纯白登录层，出现横缝。
   修法：把登录态白底规则放到文件最后，并显式清掉背景图 / 边框 / 投影。
   ================================================================== */
html.pre-login .titlebar.titlebar,
html.auth-transition .titlebar.titlebar {
  background:#FFFFFF !important;
  background-image:none !important;
  border-bottom:0 !important;
  box-shadow:none !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
}
html.pre-login #app {
  background:#FFFFFF !important;
  border-color:transparent !important;
  box-shadow:none !important;
}
html.pre-login .titlebar-name { color:#8A8A8A; }
html[data-theme="dark"].pre-login #app { background:#232A25 !important; }
html[data-theme="dark"].pre-login .titlebar.titlebar {
  background:#232A25 !important; background-image:none !important;
}

/* ==================================================================
   v3.6.70 #2：联拓网页面壳统一主风格
   只改页头与页面底色（白色工具栏 + 细分割线 + 14px 标题 / 12px 副标题），
   中间星网舞台（.x-near-field / 世界层 / 环轨公转 / 拖拽缩放）逻辑与结构
   一律不动，避免影响 v3.5.22~v3.5.27 好不容易调好的 1:1 清晰度。
   ================================================================== */
.x-near-stage { background:var(--panel); }
.x-near-top {
  height:48px; padding:0 16px;
  background:var(--panel);
  border-bottom:1px solid var(--line-soft);
}
.x-near-title b { font-size:14px; font-weight:600; letter-spacing:0; line-height:20px; }
.x-near-title span { font-size:12px; margin-top:1px; line-height:16px; }
.x-near-refresh {
  width:28px; height:28px; border-radius:8px;
  background:transparent; box-shadow:none; color:var(--muted);
}
.x-near-refresh:hover { background:var(--list-hover); color:var(--ink); }

/* v3.6.70 补充（用户截图反馈）：登录窗底部两角是直角。
   根因：#xNetOverlay 是 fixed inset:0 的整窗白色层，不受 #app 圆角裁剪，
   窗口系统圆角只在顶部生效，底部露出两个白色方块。
   修法：登录态把浮层本身按窗口圆角裁切，并显式给白色底同样的圆角。 */
html.pre-login #xNetOverlay,
html.auth-transition #xNetOverlay {
  border-radius:10px;
  overflow:hidden;
}
html.pre-login #xNetOverlay::before,
html.auth-transition #xNetOverlay::before {
  border-radius:0 0 10px 10px;
}

/* ==================================================================
   v3.6.71 #1：列表头与左侧菜单统一底色（截图反馈）
   现象一：通讯录页顶部的搜索行比下方列表浅一档（--panel #FAFAFA
   vs --list #EEEEF0），中间出现一条横向色带，像是两块拼起来的。
   现象二：收藏 / 发现（热搜吧）两个标签页的左侧菜单同样是浅色，
   与会话列表不统一。
   修法：搜索行不再单独取 --panel，直接跟随 --list；发现页的
   list-panel / 分组条 / 菜单行（含悬停态）一并改为 --list / --list-hover。
   历史块不动，只在文件末尾覆盖，避免旧断言失效。
   ================================================================== */
html:not([data-theme="dark"]) .search-row { background:var(--list) !important; }
html:not([data-theme="dark"]) body[data-view="moments"] .list-panel,
html:not([data-theme="dark"]) body[data-view="moments"] .group-bar,
html:not([data-theme="dark"]) body[data-view="moments"] .simple-row.mom-row {
  background:var(--list) !important;
}
html:not([data-theme="dark"]) body[data-view="moments"] .simple-row.mom-row:hover {
  background:var(--list-hover) !important;
}
html:not([data-theme="dark"]) body[data-view="moments"] .simple-row.mom-row.active,
html:not([data-theme="dark"]) body[data-view="moments"] .simple-row.mom-row.active:hover {
  background:var(--brand) !important;
}
/* 收藏页左栏整列跟随列表底色（写笔记按钮仍是白卡，保留层次） */
html:not([data-theme="dark"]) .fav-left { background:transparent; }

/* ==================================================================
   v3.6.71 #3：列表与聊天面板之间的接缝
   现象（截图红框）：两列之间有一条 6px 缝隙，且两侧各自的圆角把缝
   撑成「两个白角 + 中间一条边」的怪形状。
   修法：靠缝的两侧全部改直角 —— list-col 只留外侧（导航侧）圆角，
   content-col 只留窗口外侧圆角，同时把 margin-left:6px 归零，缝隙消失。
   list-col 与导航列之间原有的 6px 缝是设计的一部分，保持不变。
   其他标签页（收藏 / 发现 / 更多 / 设置等）共用同一套容器，自动统一。
   ================================================================== */
html:not([data-theme="dark"]) .list-col {
  margin-left:6px;
  border-radius:10px 0 0 10px;
  overflow:hidden;
}
html:not([data-theme="dark"]) .content-col {
  margin-left:0 !important;
  border-radius:0 10px 10px 0;
  box-shadow:none;
}

/* ==================================================================
   v3.6.72 #1：列表底色提亮
   用户反馈：会话列表的灰（#EEEEF0）与框架层（半透明蓝白，实测
   rgb(231,238,248)）太接近，两栏糊在一起。列表整体提亮到 #F7F7F9，
   在框架上成为一张更白的卡片；悬停相应调浅一档，避免按下时反差过大。
   ================================================================== */
html:not([data-theme="dark"]) {
  --list:#F7F7F9;
  --list-hover:#EDEDF1;
}

/* ==================================================================
   v3.6.72 #2：左侧菜单选中态与聊天 / 通讯录统一为整行通栏
   现象（用户截图）：发现（热搜吧）页的选中项是「内缩 8px + 6px 圆角」
   的药丸，而聊天、通讯录列表都是整行通栏色带，一个应用里两套选中样式。
   修法：收藏 / 发现 / 更多 三个左侧菜单的选中行改成通栏（去内缩、去圆角），
   图标尺寸与文字左距也对齐 18px / 12px，四页完全一致。
   ================================================================== */
html:not([data-theme="dark"]) body[data-view="moments"] .simple-row.mom-row {
  margin:0 !important;
  border-radius:0 !important;
  height:44px !important;
  padding:0 12px !important;
}
html:not([data-theme="dark"]) body[data-view="moments"] .simple-row.mom-row .row-ico {
  width:18px; height:18px; flex:0 0 18px;
}
html:not([data-theme="dark"]) body[data-view="moments"] .simple-row.mom-row .row-ico svg {
  width:18px; height:18px;
}
html:not([data-theme="dark"]) body[data-view="moments"] .simple-row.mom-row .row-text {
  margin-left:12px !important;
}
html:not([data-theme="dark"]) .fav-cats { padding:0 !important; }
html:not([data-theme="dark"]) .fav-cat {
  margin:0 !important;
  border-radius:0 !important;
  height:44px !important;
  padding:0 12px !important;
}
html:not([data-theme="dark"]) .fav-cat-ico { width:18px; height:18px; flex:0 0 18px; }

/* ==================================================================
   v3.6.72 #3：输入框边框加深
   现象：输入区外框被 v3.6.64 压成 --line-soft #F5F5F5，在白色消息区上
   几乎看不见，用户反馈「不太明细」。改回可见的浅灰描边 + 极轻投影。
   ================================================================== */
html:not([data-theme="dark"]) .input-area {
  border-color:#DBDBE1 !important;
  box-shadow:0 1px 3px rgba(0,0,0,.04) !important;
}

/* v3.6.72 附：#1 的连带调整 —— 列表提亮后，纯白搜索框在近白底上几乎看不出边界，
   改为主流的浅灰填充（聚焦回白底 + 细描边），保持清晰的可点区域。 */
html:not([data-theme="dark"]) .search-box {
  background:#F0F0F3 !important;
  box-shadow:none !important;
}
html:not([data-theme="dark"]) .search-box:focus-within {
  background:#FFFFFF !important;
  box-shadow:0 0 0 1px #D6D6DC inset !important;
}

/* ==================================================================
   v3.6.72 #7：音乐页 / 独立窗口的内容面板补回左侧圆角
   v3.6.71 为消除列表与聊天之间的缝，把 content-col 左侧两个角改成直角。
   但音乐页（body[data-view=music]）里 list-col 是隐藏的，content-col 直接贴着
   导航列，左侧就成了两个直角，红框处露出框架底色。这里按「没有左邻居时
   恢复四角圆角 + 6px 间距」处理。
   ================================================================== */
html:not([data-theme="dark"]) body[data-view="music"] .content-col,
html:not([data-theme="dark"]) body[data-standalone="1"] .content-col {
  margin-left:6px !important;
  border-radius:10px !important;
}

/* ==================================================================
   v3.6.72 #8：设置弹窗顶部色带
   现象（截图红框）：设置窗口最上面 28px 的头部条没有底色，直接透出后面的
   框架渐变（实测混着 rgba(247,248,250) 与白色），和下面的白色窗体断层。
   修法：头部条 / 窗体 / 左侧导航 / 右侧内容统一为纯白，整窗一块平面。
   ================================================================== */
html:not([data-theme="dark"]) .xfs-head,
html:not([data-theme="dark"]) .xfs-body,
html:not([data-theme="dark"]) .xfs-side,
html:not([data-theme="dark"]) .xfs-main {
  background:#FFFFFF !important;
}

/* ==================================================================
   v3.6.72 #9：热搜吧内容顶部多出一条白带
   v3.6.66 把 .x-hot-shell 改成白底后「多一块」消失了；v3.6.70 起 --panel
   变成 #FAFAFA，而 v3.6.18 的白底选择器列表里仍钉着 .x-hot-toolbar = #FFFFFF，
   于是吸顶工具条在 #FAFAFA 的内容上又亮出一条。改回跟随 --panel。
   ================================================================== */
html:not([data-theme="dark"]) .x-hot-toolbar {
  background:var(--panel) !important;
}

/* ==================================================================
   v3.6.72 #10：资料卡两行行去掉悬停底色 + 编辑态无灰框
   用户反馈：鼠标移到「群聊名称」这一行会出现一整块灰，看着像被选中；
   点进编辑后值又变成灰底输入框（截图红框），两个都去掉。
   整行仍然可点进编辑（data-d 在最外层行上），只是不给视觉反馈底色。
   ================================================================== */
.x-dw-row2 { cursor:pointer; }
.x-dw-row2:hover { background:transparent; }
.x-dw-row2 .x-dw-edit {
  background:transparent;
  border:0;
  box-shadow:none;
  padding:0;
  font:inherit;
  color:var(--ink);
  width:100%;
  outline:none;
}
.x-dw-row2 .x-dw-edit:focus { background:transparent; box-shadow:none; }

/* ==================================================================
   v3.6.73
   ================================================================== */

/* ---- #11 会话列表分隔线：原来用 --line-soft(#F5F5F5)，在 #F7F7F9 的列表底上
   只差两个色阶，等于没有线。改为固定 #E4E4E8（对标主流），仍从头像右侧起线，
   选中行不画线。 ---- */
html:not([data-theme="dark"]) .conv-item::after {
  background: #E4E4E8;
  left: 60px;
  right: 12px;
  height: 1px;
}
html[data-theme="dark"] .conv-item::after {
  background: rgba(255, 255, 255, .10);
  left: 60px;
  right: 12px;
}

/* ---- #9 置顶会话微区分：整行底色比列表底深一档，悬停再深一档；
   选中态仍走品牌浅绿，不冲突。 ---- */
html:not([data-theme="dark"]) .conv-item.pinned { background: #F0F0F4; }
html:not([data-theme="dark"]) .conv-item.pinned:hover { background: #E8E8EE; }
html:not([data-theme="dark"]) .conv-item.pinned.active { background: var(--selected); }
html[data-theme="dark"] .conv-item.pinned { background: #2A312C; }
html[data-theme="dark"] .conv-item.pinned:hover { background: #333B35; }
html[data-theme="dark"] .conv-item.pinned.active { background: var(--selected); }
/* 置顶区与普通区之间那条线稍重，形成自然分组 */
html:not([data-theme="dark"]) .conv-item.pinned:last-of-type::after { background: #DCDCE2; }

/* ---- #8 免打扰标记：对标主流 —— 灰色静音铃铛（铃铛 + 斜杠）贴在**第二行预览的右端**，
   右边缘与第一行时间对齐。之前用普通铃铛且跟着时间块内联换行，样式和位置都不对。
   图标从 conv-time 里绝对定位到下一行：conv-time 本身 right:12px/top:12px，
   子元素 right:0 与时间右对齐，top:22px 落到预览行。 ---- */
.conv-time .conv-mute {
  position: absolute; right: 0; top: 22px;
  display: block; line-height: 0; color: var(--faint);
}
.conv-time .conv-mute svg { width: 14px; height: 14px; display: block; }
.conv-item.muted .conv-prev { margin-right: 30px; }
.conv-item.active .conv-time .conv-mute { color: var(--selected-sub); }

/* ---- #5/#6 页面顶部色带割裂 ----
   热搜吧：工具条与内容卡片必须同色。v3.6.72 让工具条跟随 --panel(#FAFAFA)，
   但新闻卡是纯白 #FFFFFF，浅灰条压在纯白内容上就是「一条灰带」。
   这里把热搜外壳一并刷白，工具条用 1px 分隔线代替色差。 */
html:not([data-theme="dark"]) .x-hot-shell,
html:not([data-theme="dark"]) .x-hot-toolbar,
html:not([data-theme="dark"]) .x-hot-card,
html:not([data-theme="dark"]) .x-hot-result-head {
  background: #FFFFFF !important;
}
html:not([data-theme="dark"]) .x-hot-toolbar {
  margin-bottom: 0;
  border-bottom: 1px solid #EFEFF2;
}

/* 联拓网：页头是 --panel 白条，下方舞台是带光斑的浅色渐变，两者硬切。
   给舞台顶部加一层同色到透明的过渡（120px），页头与画布自然衔接；
   同时去掉页头那条 1px 硬线。 */
html:not([data-theme="dark"]) .x-near-top {
  border-bottom: 0 !important;
  background: var(--panel) !important;
}
html:not([data-theme="dark"]) .x-near-field {
  background-image: linear-gradient(180deg, var(--panel) 0, rgba(250, 250, 250, 0) 120px);
}
html[data-theme="dark"] .x-near-field {
  background-image: linear-gradient(180deg, #232A25 0, rgba(35, 42, 37, 0) 120px);
}

/* ================================ v3.6.74 ================================ */

/* #1 系统通知不再统一「信息通知」：标题=会话昵称、右侧大图=会话头像，
   主进程侧只负责把渲染层合成好的头像解成 NativeImage，样式无需参与。 */

/* #2/#3 未读角标：会话头像上的数字角标去掉白色描边并缩小（主流：红底白字，压在头像角上）；
   左侧导航角标同样收小一档，避免在 24px 图标旁显得过大。 */
.conv-avatar .badge {
  top: -4px;
  right: -4px;
  min-width: 15px;
  height: 15px;
  border-radius: 7.5px;
  font-size: 9px;
  line-height: 15px;
  padding: 0 3px;
  box-shadow: none;          /* 去掉 2px 白色描边 —— 这是「角标带白边」的根因 */
}
.conv-avatar .badge.muted {
  top: -1px;
  right: -1px;
  width: 8px;
  min-width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 50%;
}
.nav-badge {
  min-width: 14px;
  height: 14px;
  border-radius: 7px;
  font-size: 9px;
  line-height: 14px;
  padding: 0 3px;
  box-shadow: 0 0 0 1.5px var(--nav, #F7F7F7);
}

/* #4 会话列表预览里的表情：直接显示表情图（GIF 会动），高度贴合 20px 行高不撑行 */
.conv-prev .conv-emoji {
  width: 18px;
  height: 18px;
  object-fit: contain;
  vertical-align: -4px;
  margin-left: 1px;
  border-radius: 3px;
}

/* ================================ v3.6.75 ================================ */

/* #1 StarGPT 侧边「回答风格 / 角色」行不要悬停底色（它展开的是下方 chips，
   整条灰块在面板里显得很跳；其余行仍保留悬停反馈） */
.sgp-row.no-hover:hover { background: transparent; }

/* #3 侧边菜单文字整体收小一档：
   - 用户 / 群聊会话的资料卡（.x-drawer）
   - StarGPT 会话侧边面板（.sgp-*）
   只调字号，不动行高与间距，避免点按区域变小。 */
.x-drawer .x-dw-row { font-size: 12px; }
.x-drawer .x-dw-row2 .x-dw-lb { font-size: 12px; }
.x-drawer .x-dw-row2 .x-dw-vl { font-size: 10.5px; }
.x-drawer .x-dw-perm-txt { font-size: 10.5px; }

.sgp-row { font-size: 12px; }
.sgp-row em { font-size: 10.5px; }
.sgp-sec { font-size: 10.5px; }
.sgp-modes button { font-size: 12px; }
.sgp-info > div { font-size: 11.5px; }
.sgp-about-head { font-size: 12px; }
.sgp-his-row b { font-size: 12px; }
.sgp-his-row span { font-size: 10.5px; }

/* #4 通讯录资料页「闪友圈」行可点开独立窗口（v3.6.79 改回：不改主界面样式，只保留手型） */
.pf-row[data-action="profileMoments"] { cursor: pointer; }

/* ================================ v3.6.77 ================================ */

/* 删除消息的紧凑确认框：居中问句 + 两个灰底按钮，无图标 / 无副标题 / 无标题栏。
   其它危险操作（删除会话、转让群聊等）仍用 v3.6.41 的完整警示样式。 */
.x-dialog.x-simple-confirm { border-radius:9px; }
.x-dialog.x-simple-confirm .x-head { display:none; }
.x-dialog.x-simple-confirm .x-body { padding:26px 18px 14px; overflow:visible; }
.x-dialog.x-simple-confirm .x-foot {
  height:auto; flex:0 0 auto; justify-content:center; gap:10px;
  padding:0 18px 18px; border-top:0;
}
.x-simple-confirm .x-cs-title {
  text-align:center; font-size:14px; line-height:20px; color:var(--ink);
}
.x-cs-btn {
  height:34px; min-width:104px; padding:0 14px; border:0; border-radius:6px;
  background:#F2F2F4; font-size:13px; line-height:34px; cursor:pointer;
}
.x-cs-btn:hover { background:#E9E9EC; }
.x-cs-ok { color:#E34B4B; }
.x-cs-cancel { color:var(--ink); }
[data-theme="dark"] .x-cs-btn { background:#3A403C; }
[data-theme="dark"] .x-cs-btn:hover { background:#464D48; }

/* ================================ v3.6.78 ================================ */

/* 文件消息：浅灰气泡 + 实体文档图标，和白色聊天背景明确分层（不再融成一片） */
html:not([data-theme="dark"]) .file-bubble,
html:not([data-theme="dark"]) .msg-row.mine .file-bubble {
  background: #F2F3F5 !important;
  border: 1px solid #E3E5E9;
  box-shadow: 0 1px 2px rgba(31, 35, 41, .05);
}
.file-bubble .file-name { font-size: 13.5px; font-weight: 500; line-height: 19px; }
.file-bubble .file-meta { font-size: 11px; color: var(--faint); margin-top: 6px; }
.file-bubble .file-type {
  width: 48px; height: 58px; flex: 0 0 48px; border-radius: 0;
  background: transparent !important; gap: 5px; font-size: 10px;
}
/* 文档图标：按类型着色的纸张 + 折角 + 白色 W/X/P 角标 */
.file-bubble .file-doc {
  position: relative; width: 34px; height: 42px; border-radius: 4px;
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 5px;
  color: #FFF; font-size: 13px; font-weight: 700; line-height: 1;
  box-shadow: 0 2px 5px rgba(31, 35, 41, .14);
}
.file-bubble .file-doc::after {
  content: ''; position: absolute; top: 0; right: 0; width: 0; height: 0;
  border-left: 11px solid rgba(255, 255, 255, .62);
  border-bottom: 11px solid transparent;
}
[data-theme="dark"] .file-bubble,
[data-theme="dark"] .msg-row.mine .file-bubble {
  background: #33383A !important; border-color: #454B4C;
}


/* ================================ v3.6.81 ================================ */

/* 闪友圈独立窗：不再另写独立渲染页面，复用普通闪友圈内容；
   只保留一条应用标题栏（与单开聊天框一致），页面内的覆盖式顶栏不再显示。 */
body[data-standalone="1"][data-moments="1"] .titlebar { display: flex !important; }
body[data-standalone="1"][data-moments="1"] .x-mom-topbar { display: none !important; }
body[data-standalone="1"][data-moments="1"] .titlebar-name { font-size: 13px; color: var(--ink); }
body[data-standalone="1"][data-moments="1"] .content-col { margin: 0 !important; border-radius: 0 !important; }
.x-um-title-back,
.x-um-title-refresh {
  display: flex; align-items: center; justify-content: center;
  width: 26px; height: 22px; padding: 0; margin-right: 8px;
  border: 0; border-radius: 5px; background: transparent; color: var(--titlebar-ink, #8A8A8A); cursor: pointer;
}
.x-um-title-back:hover,
.x-um-title-refresh:hover { background: var(--titlebar-hover, #EBEBEB); color: var(--ink); }
.x-um-title-refresh { margin: 0 6px 0 0; }
.x-um-sign { padding: 32px 30px 4px; text-align: right; font-size: 12.5px; color: #747474; }

/* ================================ v3.6.82 ================================ */

/* 独立闪友圈窗：内容铺满整窗，不要 800px 居中留白；标题栏做成朋友圈的轻量样式。 */
body[data-standalone="1"][data-moments="1"] .x-mom-inner { max-width: none; width: 100%; }
body[data-standalone="1"][data-moments="1"] .x-mom-scroll,
body[data-standalone="1"][data-moments="1"] .x-mom-shell { width: 100%; }
body[data-standalone="1"][data-moments="1"] .titlebar {
  height: 34px; background: #FFF; border-bottom: 1px solid #EFEFEF;
}
body[data-standalone="1"][data-moments="1"] .titlebar-drag { gap: 7px; }
body[data-standalone="1"][data-moments="1"] .titlebar-name { font-size: 13px; font-weight: 500; color: #222; }
.x-um-title-ico {
  display: flex; align-items: center; justify-content: center; flex: 0 0 17px;
  width: 17px; height: 17px; border-radius: 50%; color: #FFF;
  background: linear-gradient(135deg, #35C77E, #13A86A);
}
.x-um-title-back,
.x-um-title-refresh { width: 24px; height: 24px; margin-right: 2px; color: #737373; }
.x-um-title-refresh { margin: 0 4px 0 0; }
body[data-standalone="1"][data-moments="1"] .x-mom-cover { height: 270px; }
body[data-standalone="1"][data-moments="1"] .x-mom-feed { padding-left: 0; padding-right: 0; }

/* ================================ v3.6.83 ================================ */

/* 「不要头了」——独立闪友圈窗对标桌面版朋友圈：彻底去掉自绘标题栏，
   封面直接顶到窗口最上方，右上角是朋友圈自带的 4 个圆形功能按钮，
   上滑越过封面后顶栏变白并显示「朋友圈」（沿用 x-mom-topbar + bindTopbarScroll）。 */
/* 1. 标题栏整条隐藏；外壳无边框、内容铺满整窗 */
body[data-standalone="1"][data-moments="1"] .titlebar { display: none !important; }
body[data-standalone="1"][data-moments="1"] #app { border: 0; }
/* 2. 恢复朋友圈原生顶栏（v3.6.81 曾把它隐藏换成自绘标题栏） */
body[data-standalone="1"][data-moments="1"] .x-mom-topbar { display: flex !important; }
/* 3. 顶部顶栏空白区 + 封面作为拖动区，按钮 / 头像昵称排除拖动，保证可点 */
body[data-standalone="1"][data-moments="1"] .x-mom-topbar,
body[data-standalone="1"][data-moments="1"] .x-mom-cover { -webkit-app-region: drag; }
body[data-standalone="1"][data-moments="1"] .x-mom-tb-btns,
body[data-standalone="1"][data-moments="1"] .x-mom-cover-me { -webkit-app-region: no-drag; }
/* 4. 封面通栏铺满；下方动态区左右留白对标截图（窄窗用 20px，避免贴边） */
body[data-standalone="1"][data-moments="1"] .x-mom-inner { max-width: none; width: 100%; }
body[data-standalone="1"][data-moments="1"] .x-mom-cover { height: 270px; }
body[data-standalone="1"][data-moments="1"] .x-mom-feed { padding: 46px 20px 0; }

/* ================================ v3.6.84 ================================ */

/* #1 封面完全对齐：v3.6.71 给独立窗 content-col 的 margin-left:6px 特异性高于
   v3.6.81 的覆盖，封面左侧一直露 6px 白边；这里用更高特异性彻底铺满整窗。 */
html:not([data-theme="dark"]) body[data-standalone="1"][data-moments="1"] .content-col,
html[data-theme="dark"] body[data-standalone="1"][data-moments="1"] .content-col,
body[data-standalone="1"][data-moments="1"] .content-col {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  width: 100% !important;
}
body[data-standalone="1"][data-moments="1"] #app {
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
}
body[data-standalone="1"][data-moments="1"] .x-mom-shell,
body[data-standalone="1"][data-moments="1"] .x-mom-scroll,
body[data-standalone="1"][data-moments="1"] .x-mom-inner {
  width: 100% !important;
  margin: 0 !important;
  border-radius: 0 !important;
}
body[data-standalone="1"][data-moments="1"] .x-mom-cover { width: 100% !important; }

/* #2 单人闪友圈独立窗右上角「搜索 / 关闭」按钮 + 搜索框 */
body[data-standalone="1"][data-moments="1"] .x-mom-top.x-mom-close { background: rgba(0,0,0,.28); color: #FFF; }
body[data-standalone="1"][data-moments="1"] .x-mom-topbar.scrolled .x-mom-top.x-mom-close { color: var(--ink); }
.x-solo-search{position:relative;z-index:21;display:flex;align-items:center;gap:8px;
  height:40px;margin:0 20px;padding:0 12px;background:var(--panel,#fff);
  border-bottom:1px solid var(--line-soft,#eee)}
.x-solo-search-ico{width:16px;height:16px;flex:0 0 16px;color:var(--faint,#999)}
.x-solo-search input{flex:1;border:0;outline:none;background:transparent;
  font-size:13px;color:var(--ink);font-family:inherit}
.x-solo-search-x{width:22px;height:22px;flex:0 0 22px;color:var(--muted,#999);
  display:flex;align-items:center;justify-content:center}
.x-solo-search-x svg{width:15px;height:15px}

/* #3 StarGPT 助手面板：鼠标悬停不显示任何底色（保留选中态与必要图标显现） */
.sg-panel .sgp-row:hover,
.sg-panel .sgp-modes button:hover,
.sg-panel .sgp-his-row:hover,
.sg-panel .sgp-about-head:hover,
.sg-panel .sgp-his-del:hover{background:transparent !important}

/* ================================ v3.6.85 ================================ */

/* #5 单人闪友圈：右侧不再留滚动条白带 —— 滚动条改为不占位，内容整宽，
   封面与卡片一直铺到窗口右边缘（用户截图里右侧那条浅色竖带就是它）。 */
body[data-standalone="1"][data-moments="1"] .x-mom-scroll{scrollbar-width:none;-ms-overflow-style:none}
body[data-standalone="1"][data-moments="1"] .x-mom-scroll::-webkit-scrollbar{width:0;height:0}
body[data-standalone="1"][data-moments="1"] .x-mom-inner{background:var(--panel,#fff);min-height:100%}
body[data-standalone="1"][data-moments="1"] .x-mom-cover{height:250px}

/* #6 单人闪友圈版式：对标「个人主页朋友圈」—— 左侧日期（23 / 9月），右侧正文与图片，
   不重复头像昵称；点赞 / 评论沿用闪友圈同一套操作条与评论区。 */
.x-mom-date{display:none}
.x-mom-shell.solo .x-mom-feed{padding:6px 0 0}
.x-mom-shell.solo .x-mom-card{
  display:grid;grid-template-columns:54px minmax(0,1fr);column-gap:14px;
  padding:20px 18px 18px;border-bottom:1px solid #F2F2F2;background:var(--panel,#fff);
}
.x-mom-shell.solo .x-mom-avatar,
.x-mom-shell.solo .x-mom-nick{display:none}
.x-mom-shell.solo .x-mom-date{display:flex;flex-direction:column;align-items:flex-end;gap:2px;padding-top:3px}
.x-mom-shell.solo .x-mom-date b{
  font-size:20px;font-weight:600;line-height:1;color:#3C3C3C;
  font-family:"Segoe UI","Microsoft YaHei",system-ui,sans-serif;font-variant-numeric:tabular-nums;
}
.x-mom-shell.solo .x-mom-date i{font-style:normal;font-size:11px;color:#A6A6A6}
.x-mom-shell.solo .x-mom-main{min-width:0}
.x-mom-shell.solo .x-mom-text{font-size:13.5px;line-height:1.62;color:#262626}
.x-mom-shell.solo .x-mom-meta{margin-top:6px}
.x-mom-shell.solo .x-mom-grid{margin:8px 0 0;gap:5px}
.x-mom-shell.solo .x-mom-grid .x-mom-cell{width:96px;height:96px}
.x-mom-shell.solo .x-mom-grid.n1 .x-mom-cell img{max-width:100%;max-height:230px}
.x-mom-shell.solo .x-mom-social{margin-top:8px}
.x-mom-shell.solo .x-empty{padding:56px 20px}

/* #7 右上角功能按钮的悬停反馈。
   关闭按钮有一条更高特异性的静态底色（body[data-*] .x-mom-top.x-mom-close），
   旧的 .x-mom-top:hover 压不过它，所以「悬停没有任何反馈」；这里用同样特异性 + :hover 覆盖。 */
body[data-standalone="1"][data-moments="1"] .x-mom-top{transition:background .12s ease,color .12s ease,transform .12s ease}
body[data-standalone="1"][data-moments="1"] .x-mom-top.x-mom-close:hover{background:rgba(0,0,0,.55);color:#FFF}
body[data-standalone="1"][data-moments="1"] .x-mom-topbar.scrolled .x-mom-top.x-mom-close:hover{background:#F3E2E0;color:#D93A2B}
body[data-standalone="1"][data-moments="1"] .x-mom-top:active{transform:scale(.94)}
.x-solo-search-n{font-size:11px;color:var(--faint,#9A9A9A);white-space:nowrap;flex:0 0 auto}
.x-solo-search-x:hover{background:var(--list-hover,#EDEDED);border-radius:5px;color:var(--ink)}
.x-solo-search input::placeholder{color:var(--faint,#B2B2B2)}
/* 单人窗：签名避开封面右下角头像（头像下沿压出封面 24px） */
.x-mom-shell.solo + .x-um-sign,
.x-um-sign{padding-top:46px}
/* 右侧 6px 白带的真正来源：v3.6.61 给框架层 #app > .body 留了 padding:0 6px 6px 0，
   v3.6.84 只清了 #app 本身。单人闪友圈要整宽铺满，这里连框架层一起清掉。 */
body[data-standalone="1"][data-moments="1"] #app > .body{padding:0 !important}
html:not([data-theme="dark"]) body[data-standalone="1"][data-moments="1"] .body,
html[data-theme="dark"] body[data-standalone="1"][data-moments="1"] .body{padding:0 !important}
/* 单人窗整块纯白（与个人主页朋友圈一致），并且动态区去掉 20px 内缩：
   卡片自己带 20px 内边距，行与行只用 1px 细线分隔。 */
body[data-standalone="1"][data-moments="1"] .x-mom-shell.solo .x-mom-inner,
body[data-standalone="1"][data-moments="1"] .x-mom-shell.solo .x-mom-feed,
body[data-standalone="1"][data-moments="1"] .x-mom-shell.solo .x-mom-card{background:#FFF}
body[data-standalone="1"][data-moments="1"] .x-mom-shell.solo .x-mom-feed{padding:4px 0 0}
body[data-standalone="1"][data-moments="1"] .x-mom-topbar.scrolled{background:#FFF}
/* 上滑变白后，关闭按钮不该继续保留封面上那层半透明黑（在白底上会变成一块灰方块）。
   白底态：透明底 + 深色图标；悬停给浅色底/浅红底。 */
body[data-standalone="1"][data-moments="1"] .x-mom-topbar.scrolled .x-mom-top.x-mom-close{
  background:transparent;color:var(--ink,#191919)
}
body[data-standalone="1"][data-moments="1"] .x-mom-topbar.scrolled .x-mom-top.x-mom-close:hover{
  background:#F3E2E0;color:#D93A2B
}

/* 搜索框：整条通栏（不再左右各缩 20px 显得像浮块），顶栏随之下移 46px */
body[data-standalone="1"][data-moments="1"] .x-solo-search{height:46px;margin:0;padding:0 16px 0 18px;background:#FFF}
body[data-standalone="1"][data-moments="1"] .x-mom-shell.has-search .x-mom-topbar{top:46px}
body[data-standalone="1"][data-moments="1"] .x-mom-shell.has-search .x-mom-topbar.scrolled{background:#FFF}

/* ================================ v3.6.86 ================================ */

/* #1 单人闪友圈右上角「搜索 / 关闭」点不动。根因（真实鼠标 A/B 实测确认）：
   v3.6.83 把整条顶栏 .x-mom-topbar 和整张封面设成了 -webkit-app-region: drag。
   拖动区是在 Chromium「浏览器层」先行判定的：落在拖动区上的按下会被当成拖窗口，
   渲染进程连 mousedown 都收不到，按钮就只剩视觉。实测在这套层级里
   （绝对定位子元素 / 静态子元素 / 伪元素 / 加层叠上下文，四种写法都试过），
   no-drag 的「洞」都不生效 —— 只有彻底不用 app-region 才恢复点击。
   所以改成：封面与顶栏一律 no-drag，窗口拖动改由指针事件驱动
   （renderer 发 win:drag-start / win:drag-end，主进程按光标位移 setPosition）。 */
body[data-standalone="1"][data-moments="1"] .x-mom-cover,
body[data-standalone="1"][data-moments="1"] .x-mom-topbar,
body[data-standalone="1"][data-moments="1"] .x-mom-tb-btns,
body[data-standalone="1"][data-moments="1"] .x-mom-top{
  -webkit-app-region: no-drag;
}
/* 上滑变白之后顶栏是实心白条：接住指针，作为「拖动手柄」 */
body[data-standalone="1"][data-moments="1"] .x-mom-topbar.scrolled{
  pointer-events: auto;
}
body[data-standalone="1"][data-moments="1"] .x-mom-tb-btns,
body[data-standalone="1"][data-moments="1"] .x-mom-top{
  pointer-events: auto;
}
body[data-standalone="1"][data-moments="1"] .x-mom-tb-btns{ z-index: 3; }
/* 可拖动区域给一个「抓手」光标，封面正文（按钮/头像区）保持默认 */
body[data-standalone="1"][data-moments="1"] .x-mom-cover{cursor:default}
body[data-standalone="1"][data-moments="1"] .x-mom-topbar.scrolled{cursor:default}
