/* ============================================================
 * 天罗地网 · 微信绿浅色主题（v1.5.0 回滚黑红）
 * 底色浅灰、卡片纯白、主色 #07C160；
 * 红色只留给危险操作（解散 / 删除 / 退出登录），不再当主题色。
 * ============================================================ */
:root {
  --bg:        #EDEDED;   /* 页面底 / 聊天区底 */
  --panel:     #FFFFFF;   /* 列表 / 卡片 */
  --panel-2:   #F7F7F7;   /* 输入栏 / 次级块 */
  --panel-3:   #F2F2F2;   /* 搜索框 / 我方浅块 */
  --line:      #E5E5E5;   /* 分割线 */
  --txt:       #191919;   /* 主文字 */
  --dim:       #888888;   /* 次要文字 */
  --dim2:      #B2B2B2;   /* 更弱 */
  --brand:     #07C160;   /* 微信绿 */
  --brand-deep:#06AD56;
  --brand-soft:rgba(7,193,96,.10);
  --danger:    #FA5151;   /* 只用于危险操作 */
  --danger-soft:rgba(250,81,81,.10);
  --bubble-me: #95EC69;   /* 我方气泡 */
  --bubble-you:#FFFFFF;   /* 对方气泡 */
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  min-height: 100vh; display: flex; align-items: flex-start; justify-content: center;
  gap: 56px; padding: 40px 28px; flex-wrap: wrap; color: var(--txt);
  -webkit-font-smoothing: antialiased;
}

/* ---------- 左侧说明 ---------- */
.side { max-width: 300px; flex: 0 0 300px; }
.side h1 { font-size: 21px; letter-spacing: -.01em; margin-bottom: 8px; font-weight: 700; color: #111; }
.side h1 span { color: var(--brand); font-weight: 500; }
.side .p { font-size: 13px; color: #666; line-height: 1.75; margin-bottom: 16px; }
.side .feat { list-style: none; font-size: 12.5px; color: #666; line-height: 2; }
.side .feat b { color: var(--brand); font-weight: 600; display: inline-block; min-width: 34px; }
.side .btns { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.btn { font-size: 12.5px; padding: 8px 14px; border-radius: 8px; border: 1px solid #DADADA; background: #fff; color: #333; cursor: pointer; font-family: inherit; transition: .15s; font-weight: 500; }
.btn:hover { border-color: var(--brand); color: var(--brand-deep); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-deep); color: #fff; }

/* ---------- 手机框 ---------- */
.phone {
  width: 375px; height: 760px; background: var(--panel); border-radius: 36px; overflow: hidden; position: relative;
  box-shadow: 0 26px 60px -20px rgba(0,0,0,.30), 0 0 0 10px #fff, 0 0 0 11px #DCDCDC;
  display: flex; flex-direction: column; flex: 0 0 auto;
}

/* ---------- 状态栏 / 导航栏 ---------- */
.statusbar { height: 30px; flex: 0 0 30px; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; font-size: 12px; font-weight: 600; background: #F7F7F7; color: var(--txt); }
.statusbar .icons { display: flex; gap: 5px; align-items: center; }
.statusbar .bar { width: 3px; background: var(--txt); border-radius: 1px; display: inline-block; }

.navbar { height: 46px; flex: 0 0 46px; background: #F7F7F7; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; border-bottom: 1px solid var(--line); position: relative; }
.navbar .t { position: absolute; left: 0; right: 0; text-align: center; font-size: 17px; font-weight: 600; pointer-events: none; color: var(--txt); }
.navbar .t small { display: block; font-size: 10.5px; color: var(--dim); font-weight: 400; margin-top: -2px; }
.nb-btn { font-size: 14px; color: #333; background: none; border: none; cursor: pointer; font-family: inherit; padding: 6px; display: flex; align-items: center; gap: 3px; position: relative; z-index: 2; }
.nb-btn.plus { font-size: 22px; line-height: 1; font-weight: 300; color: #333; }
.nb-btn.dim { color: var(--dim); }
.nb-btn.okbtn { font-size: 14.5px; }

.screen { flex: 1; overflow-y: auto; overflow-x: hidden; position: relative; background: var(--bg); overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.screen::-webkit-scrollbar { width: 0; }

/* ---------- 底部 Tab ---------- */
.tabbar { flex: 0 0 54px; height: 54px; background: #F7F7F7; border-top: 1px solid var(--line); display: flex; padding-bottom: 4px; }
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 10.5px; color: #7A7A7A; cursor: pointer; border: none; background: none; font-family: inherit; position: relative; }
.tab.on { color: var(--brand); }
.tab svg { width: 23px; height: 23px; fill: currentColor; }
.tab .dot { position: absolute; top: 6px; right: calc(50% - 20px); min-width: 16px; height: 16px; border-radius: 9px; background: var(--danger); color: #fff; font-size: 10px; font-weight: 600; display: flex; align-items: center; justify-content: center; padding: 0 4px; border: 1.5px solid #F7F7F7; }

/* ---------- 列表 / 单元格 ---------- */
.list { background: var(--panel); }
.row { display: flex; align-items: center; gap: 11px; padding: 10px 14px; background: var(--panel); border-bottom: 1px solid var(--line); cursor: pointer; position: relative; transition: background .12s; }
.row:active { background: #F0F0F0; }
.row:last-child { border-bottom: none; }
.row .mid { flex: 1; min-width: 0; }
.row .nm { font-size: 16px; color: var(--txt); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 5px; }
.row .pv { font-size: 13px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 3px; }
.row .rt { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex: 0 0 auto; }
.row .tm { font-size: 11px; color: var(--dim2); }
.badge { min-width: 18px; height: 18px; border-radius: 9px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 600; display: flex; align-items: center; justify-content: center; padding: 0 5px; }
.badge.mute { background: #C8C8C8; }
.sec-title { font-size: 12px; color: var(--dim); padding: 14px 14px 6px; background: var(--bg); font-weight: 500; }

.cell { display: flex; align-items: center; gap: 11px; padding: 13px 14px; background: var(--panel); border-bottom: 1px solid var(--line); cursor: pointer; font-size: 16px; color: var(--txt); }
.cell:active { background: #F0F0F0; }
.cell .val { margin-left: auto; font-size: 13px; color: var(--dim); display: flex; align-items: center; gap: 6px; }
.cell .val.danger { color: var(--danger); }
.cell .lb { width: 76px; flex: 0 0 76px; color: var(--txt); }
.cell input { color: var(--txt); }
.cell-input { flex: 1; border: none; outline: none; text-align: right; font-size: 16px; font-family: inherit; color: var(--txt); background: transparent; }
.chev { color: var(--dim2); font-size: 15px; margin-left: auto; }
.grp { background: var(--panel); margin-top: 10px; }
.grp .cell:first-child { border-top: 1px solid var(--line); }
.muted-txt { font-size: 13px; color: var(--dim); }
.tip { text-align: center; font-size: 11px; color: var(--dim2); padding: 12px 20px; line-height: 1.7; }
.cnt { font-size: 11px; color: var(--dim2); font-weight: 400; }

/* ---------- 头像 ---------- */
.av { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 600; border-radius: 5px; position: relative; overflow: hidden; }
.av > span { line-height: 1; position: relative; z-index: 0; }
.av > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; z-index: 1; }
.av.add { background: transparent !important; border: 1px dashed #C9C9C9; color: var(--dim2); font-size: 22px !important; font-weight: 400; }

/* ---------- 聊天区 ---------- */
.chatbg { background: var(--bg); padding: 12px 12px 20px; min-height: 100%; }
.sys { text-align: center; margin: 10px 0; }
.sys span { display: inline-block; font-size: 11.5px; color: #fff; background: rgba(0,0,0,.12); padding: 3px 9px; border-radius: 4px; line-height: 1.5; max-width: 88%; }
.time-div { text-align: center; margin: 14px 0 10px; }
.time-div span { font-size: 11.5px; color: #A0A0A0; }

.msg { display: flex; gap: 9px; margin-bottom: 16px; align-items: flex-start; }
.msg.me { flex-direction: row-reverse; }
.msg .col { display: flex; flex-direction: column; min-width: 0; align-items: flex-start; }
.msg.me .col { align-items: flex-end; }
.bubble { max-width: 225px; padding: 9px 12px; border-radius: 6px; font-size: 15.5px; line-height: 1.5; background: var(--bubble-you); color: #191919; position: relative; word-break: break-word; white-space: pre-wrap; box-shadow: 0 1px 1px rgba(0,0,0,.04); }
.msg.me .bubble { background: var(--bubble-me); color: #111; }
.bubble::before { content: ''; position: absolute; top: 11px; left: -4px; width: 8px; height: 8px; background: inherit; transform: rotate(45deg); border-radius: 1px; }
.msg.me .bubble::before { left: auto; right: -4px; }
.msg .nm-top { font-size: 10.5px; color: #999; margin-bottom: 4px; }
/* @我 的消息：右上一小块浅橙提示，不影响阅读 */
.bubble.atme { box-shadow: 0 0 0 1.5px #FFB01F inset, 0 1px 1px rgba(0,0,0,.04); }
/* 纯表情消息：放大、去掉气泡与尖角 */
.bubble.emo { background: transparent !important; padding: 0 2px; font-size: 34px; line-height: 1.25; box-shadow: none; }
.bubble.emo::before { display: none; }

/* ---------- 输入栏 ---------- */
.inputbar { flex: 0 0 auto; background: #F7F7F7; border-top: 1px solid var(--line); padding: 8px 10px; display: flex; align-items: flex-end; gap: 8px; }
.inputbar .ib { width: 28px; height: 28px; flex: 0 0 28px; display: flex; align-items: center; justify-content: center; color: #555; cursor: pointer; margin-bottom: 3px; font-size: 19px; }
.inputbar .ib:active { color: var(--brand); }
.inputbar input { flex: 1; border: none; border-radius: 6px; padding: 9px 10px; font-size: 15px; font-family: inherit; outline: none; background: #fff; color: var(--txt); min-width: 0; }
.inputbar input::placeholder { color: var(--dim2); }
.send { border: none; background: var(--brand); color: #fff; font-size: 13.5px; font-weight: 600; padding: 9px 14px; border-radius: 6px; cursor: pointer; font-family: inherit; flex: 0 0 auto; }
.send:disabled { background: #DCDCDC; color: #fff; cursor: default; }

/* ---------- 通用 ---------- */
.empty { text-align: center; color: var(--dim); font-size: 13px; padding: 60px 20px; line-height: 1.8; }

/* 选人（建群 / 邀请） */
.pickbar { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: var(--brand-soft); border-bottom: 1px solid rgba(7,193,96,.18); font-size: 12.5px; color: #3C7A57; }
.pickbar b { color: var(--brand-deep); font-size: 14px; }
.pickbar em { font-style: normal; color: var(--brand-deep); cursor: pointer; font-weight: 600; }
.pick { display: flex; align-items: center; gap: 11px; padding: 10px 14px; background: var(--panel); border-bottom: 1px solid var(--line); cursor: pointer; }
.pick:active { background: #F0F0F0; }
.pick .pn { font-size: 16px; color: var(--txt); }
.cbox { width: 21px; height: 21px; border-radius: 50%; border: 1.5px solid #C9C9C9; flex: 0 0 21px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; transition: .12s; }
.cbox.on { background: var(--brand); border-color: var(--brand); }

.searchbar { padding: 9px 12px; background: var(--bg); display: flex; gap: 8px; }
.searchbar input { flex: 1; border: none; border-radius: 6px; padding: 8px 12px; font-size: 14px; font-family: inherit; outline: none; background: #fff; color: var(--txt); }
.searchbar input::placeholder { color: var(--dim2); }
.searchbar button { border: none; background: var(--brand); color: #fff; border-radius: 6px; padding: 0 14px; font-family: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }

/* 资料头 */
.profile-head { background: var(--panel); padding: 26px 20px; display: flex; gap: 16px; align-items: center; border-bottom: 1px solid var(--line); cursor: pointer; }
.profile-head .info { flex: 1; min-width: 0; }
.profile-head .n { font-size: 19px; font-weight: 600; display: flex; align-items: center; gap: 7px; color: var(--txt); }
.profile-head .w { font-size: 12.5px; color: var(--dim); margin-top: 5px; }

/* 按钮行 */
.btnrow { padding: 14px; display: flex; gap: 10px; }
.btnrow .b { flex: 1; padding: 12px; border-radius: 8px; border: 1px solid var(--line); font-size: 15.5px; font-family: inherit; font-weight: 600; cursor: pointer; background: var(--panel); color: var(--txt); }
.btnrow .b.red { color: var(--danger); border-color: rgba(250,81,81,.35); background: #fff; }
.btnrow .b.green { background: var(--brand); color: #fff; border-color: transparent; }
.btnrow .b:active { opacity: .85; }

/* 群成员网格 */
.avatar-grid { background: var(--panel); padding: 16px 14px; display: flex; flex-wrap: wrap; gap: 12px; }
.ag-item { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 52px; cursor: pointer; position: relative; }
.ag-item span { font-size: 10.5px; color: var(--dim); max-width: 52px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-item .own { position: absolute; top: -4px; right: -2px; font-style: normal; font-size: 9px; color: #fff; background: var(--brand); padding: 1px 4px; border-radius: 3px; transform: scale(.92); }

/* ---------- 公开频道 ---------- */
/* 频道卡片：头像 + 名称 + 简介 + 人数 */
.ch-card { display: flex; gap: 12px; padding: 14px; background: var(--panel); border-bottom: 1px solid var(--line); cursor: pointer; align-items: flex-start; }
.ch-card:active { background: #F0F0F0; }
.ch-card .ch-mid { flex: 1; min-width: 0; }
.ch-card .ch-nm { display: flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 600; color: var(--txt); }
.ch-card .ch-nm .ch-nm-txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-card .ch-intro { font-size: 12.5px; color: var(--dim); margin-top: 5px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ch-card .ch-meta { font-size: 11.5px; color: var(--dim2); margin-top: 7px; display: flex; gap: 10px; align-items: center; }
.ch-card .ch-join { flex: 0 0 auto; align-self: center; font-size: 12.5px; font-weight: 600; padding: 6px 12px; border-radius: 6px; border: 1px solid var(--brand); color: var(--brand-deep); background: #fff; cursor: pointer; }
.ch-card .ch-join.joined { border-color: var(--line); color: var(--dim); }
.tag-pub { font-size: 10px; font-weight: 500; color: var(--brand-deep); background: var(--brand-soft); border: 1px solid rgba(7,193,96,.22); padding: 1px 5px; border-radius: 3px; flex: 0 0 auto; }

/* 频道详情头部 */
.ch-hero { background: var(--panel); padding: 22px 18px 18px; display: flex; gap: 14px; align-items: center; border-bottom: 1px solid var(--line); }
.ch-hero .ch-hero-mid { flex: 1; min-width: 0; }
.ch-hero .ch-hero-nm { font-size: 18px; font-weight: 700; color: var(--txt); display: flex; align-items: center; gap: 6px; }
.ch-hero .ch-hero-sub { font-size: 12.5px; color: var(--dim); margin-top: 6px; }
.ch-hero .ch-hero-intro { font-size: 13px; color: #555; margin-top: 10px; line-height: 1.6; }

/* 底部固定操作栏 */
.joinbar { position: sticky; bottom: 0; padding: 12px 14px; background: rgba(255,255,255,.94); border-top: 1px solid var(--line); display: flex; gap: 10px; backdrop-filter: blur(6px); }
.joinbar button { flex: 1; padding: 12px; border-radius: 8px; border: none; font-family: inherit; font-size: 15.5px; font-weight: 600; cursor: pointer; }
.joinbar .j-main { background: var(--brand); color: #fff; }
.joinbar .j-main:disabled { background: #DCDCDC; }
.joinbar .j-quit { background: #fff; color: var(--danger); border: 1px solid rgba(250,81,81,.35); }

/* 创建频道表单 */
.form-box { background: var(--panel); padding: 4px 0; }
.form-box .fi { padding: 13px 14px; border-bottom: 1px solid var(--line); }
.form-box .fi:last-child { border-bottom: none; }
.form-box .fi label { display: block; font-size: 12px; color: var(--dim); margin-bottom: 6px; }
.form-box .fi input, .form-box .fi textarea { width: 100%; border: none; outline: none; font-size: 15.5px; font-family: inherit; color: var(--txt); background: transparent; resize: none; line-height: 1.6; }
.form-box .fi input::placeholder, .form-box .fi textarea::placeholder { color: var(--dim2); }
.form-box .fi .cnt-line { text-align: right; font-size: 11px; color: var(--dim2); margin-top: 4px; }

/* ---------- 登录 / 注册 ---------- */
.auth { position: absolute; inset: 0; z-index: 50; display: flex; flex-direction: column; align-items: center; padding: 54px 30px 30px; background: #FFFFFF; }
.auth .logo { width: 64px; height: 64px; border-radius: 14px; background: var(--brand); color: #fff; font-size: 30px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; box-shadow: 0 10px 24px -10px rgba(7,193,96,.55); }
.auth h2 { font-size: 20px; margin-bottom: 4px; color: var(--txt); }
.auth .sub { color: var(--dim); font-size: 12.5px; margin-bottom: 26px; }
.auth .switch { display: flex; gap: 24px; margin-bottom: 22px; }
.auth .switch span { font-size: 15px; color: var(--dim); padding-bottom: 6px; cursor: pointer; }
.auth .switch span.on { color: var(--txt); font-weight: 600; border-bottom: 2px solid var(--brand); }
.auth form { width: 100%; display: flex; flex-direction: column; gap: 12px; }
.auth input { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; font-size: 15px; font-family: inherit; outline: none; background: var(--panel-3); color: var(--txt); }
.auth input:focus { border-color: var(--brand); }
.auth input::placeholder { color: var(--dim2); }
.auth .err { color: var(--danger); font-size: 12.5px; min-height: 16px; }
.auth .main { background: var(--brand); color: #fff; border: none; border-radius: 8px; padding: 13px; font-size: 16px; font-weight: 600; cursor: pointer; font-family: inherit; }
.auth .main:disabled { background: #C9C9C9; }

/* ---------- @ 弹窗 ---------- */
.mention-pop { position: absolute; bottom: 60px; left: 10px; right: 10px; background: #fff; border: 1px solid var(--line); border-radius: 10px; max-height: 240px; overflow-y: auto; z-index: 40; box-shadow: 0 12px 32px rgba(0,0,0,.14); }
.mention-pop .mi { padding: 10px 14px; font-size: 14px; cursor: pointer; border-bottom: 1px solid var(--line); color: var(--txt); }
.mention-pop .mi:last-child { border-bottom: none; }
.mention-pop .mi:active { background: #F0F0F0; }

/* ---------- ＋ 下拉菜单 ---------- */
.plusmenu { position: absolute; top: 76px; right: 14px; background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 4px 0; z-index: 60; min-width: 156px; box-shadow: 0 14px 34px rgba(0,0,0,.14); }
.plusmenu div { color: var(--txt); font-size: 15px; padding: 11px 18px; cursor: pointer; }
.plusmenu div:active { background: var(--brand-soft); color: var(--brand-deep); }
.plusmenu div.dim { color: var(--dim2); cursor: default; }
.plusmenu .sep { height: 1px; background: var(--line); margin: 3px 0; padding: 0; }

/* ---------- toast ---------- */
.toast { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%) scale(.94); background: rgba(0,0,0,.78); color: #fff; font-size: 13.5px; padding: 12px 20px; border-radius: 9px; z-index: 99; opacity: 0; pointer-events: none; transition: .2s; max-width: 80%; text-align: center; line-height: 1.5; }
.toast.show { opacity: 1; transform: translate(-50%,-50%) scale(1); }

/* ---------- 开关 ---------- */
.sw { width: 44px; height: 26px; border-radius: 13px; background: #DCDCDC; position: relative; display: inline-block; transition: background .2s; }
.sw i { position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.22); transition: left .2s; }
.sw.on { background: var(--brand); }
.sw.on i { left: 20px; }

/* ---------- 表情面板 ---------- */
.emoji-panel { display: none; flex: 0 0 auto; height: 208px; overflow-y: auto; background: #F7F7F7; border-top: 1px solid var(--line); padding: 8px 8px 12px; }
.emoji-panel.show { display: block; }
.emoji-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; }
.emoji-grid .em { display: flex; align-items: center; justify-content: center; height: 38px; font-size: 24px; border-radius: 6px; cursor: pointer; user-select: none; line-height: 1; }
.emoji-grid .em:active { background: #E4E4E4; }
.emoji-grid .em.del { font-size: 19px; color: var(--dim); background: #EDEDED; }

/* ---------- 头像编辑 ---------- */
.avatar-edit { background: var(--panel); padding: 24px 20px 20px; display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; }
.avatar-edit .av { border-radius: 10px; }
.avatar-edit .ae-tip { font-size: 14.5px; color: var(--brand-deep); font-weight: 500; }
.avatar-edit .ae-sub { font-size: 11.5px; color: var(--dim2); }

/* ============================================================
 * 频道 · YY 模式（v1.6.0）
 * 官方频道走金色标识（区别于微信绿主色），用户在广场里一眼能分出来
 * ============================================================ */
.tag-off  { font-size: 10px; font-weight: 600; color: #8A5A00; background: #FFF3D6; border: 1px solid #F0D48A; padding: 1px 5px; border-radius: 3px; flex: 0 0 auto; }
.tag-ch   { font-size: 10px; font-weight: 500; color: #4A6B8A; background: #EDF2F8; border: 1px solid #D7E2EF; padding: 1px 5px; border-radius: 3px; flex: 0 0 auto; }

/* 系统内置群（综合群聊）顶部提示条 */
.sys-banner {
  margin: 10px 12px 0; padding: 9px 12px; text-align: center;
  font-size: 12px; line-height: 1.55; color: #8A5A00;
  background: #FFF8E6; border: 1px solid #F3E0B0; border-radius: 10px;
}
.tag-lock { font-size: 10px; font-weight: 500; color: var(--dim); background: var(--panel-3); border: 1px solid var(--line); padding: 1px 5px; border-radius: 3px; flex: 0 0 auto; }

.ch-card.off { background: #FFFDF6; }
.ch-card .ch-meta .room { color: var(--brand-deep); font-weight: 600; }
.ch-hint { font-size: 11px; color: var(--dim2); padding: 0 14px 4px; background: var(--bg); }

.ch-hero .room-big { font-weight: 700; color: var(--brand-deep); margin-right: 10px; }
.ch-hero .ch-hero-sub + .ch-hero-sub { margin-top: 4px; }
.ch-hero .role-badge { font-style: normal; }

/* 四色身份标：频道主红 / 管理员金 / 会员绿 / 游客灰 */
.role-badge { display: inline-block; font-style: normal; font-size: 10px; font-weight: 600; padding: 1px 5px; border-radius: 3px; line-height: 1.5; }
.role-badge.owner  { background: #FFE9E9; color: #C0392B; }
.role-badge.admin  { background: #FFF3D6; color: #8A5A00; }
.role-badge.member { background: var(--brand-soft); color: var(--brand-deep); }
.role-badge.guest  { background: var(--panel-3); color: var(--dim); }

.ag-item .role-badge { position: absolute; top: -5px; right: -6px; transform: scale(.9); }
.ban-mark { position: absolute; bottom: 17px; right: -4px; font-style: normal; font-size: 9px; font-weight: 600; color: #fff; background: var(--danger); padding: 1px 4px; border-radius: 3px; transform: scale(.92); }

.role-tip { margin: 10px 14px 0; padding: 10px 12px; border-radius: 8px; font-size: 12.5px; line-height: 1.55; }
.role-tip.guest { background: #EEF2F7; color: #4A627A; border: 1px solid #DAE4EF; }
.role-tip.ban   { background: var(--danger-soft); color: #C0392B; border: 1px solid rgba(250,81,81,.24); }

.ch-announce { margin: 10px 14px 0; padding: 10px 12px; border-radius: 8px; background: #FFF8E6; border: 1px solid #F1E1BB; font-size: 12.5px; color: #7A5B12; line-height: 1.6; white-space: pre-wrap; }
.ch-announce b { display: block; font-size: 11px; color: #A07A1E; margin-bottom: 3px; }

.ch-roomstrip { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; background: var(--panel); border-bottom: 1px solid var(--line); }
.ch-roomstrip .rb { font-size: 15px; font-weight: 700; color: var(--brand-deep); }
.ch-roomstrip .rs { font-size: 11.5px; color: var(--dim); margin-left: 8px; }
.mini { border: 1px solid var(--brand); background: #fff; color: var(--brand-deep); font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 6px; font-family: inherit; cursor: pointer; }
.mini:active { background: var(--brand-soft); }

/* 单选 / 复选行 */
.radio-row { display: flex; flex-direction: column; gap: 9px; margin-top: 5px; }
.rd { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--txt); cursor: pointer; }
.rd input { width: 16px; height: 16px; accent-color: var(--brand); flex: 0 0 auto; }
/* 这一条必须写在 .form-box .fi input 之后：否则单选框会被撑成 100% 宽、标签被染成灰色小字 */
.form-box .fi .rd { display: flex; font-size: 13.5px; color: var(--txt); margin-bottom: 0; }
.form-box .fi .rd input { width: 16px; height: 16px; flex: 0 0 auto; }
.fi-tip { font-size: 11px; color: var(--dim2); margin-top: 5px; line-height: 1.5; }

/* 聊天区底部「不能发言」提示 */
.speak-tip { margin: 12px 14px 26px; padding: 11px 12px; border-radius: 8px; background: var(--danger-soft); color: #C0392B; font-size: 12.5px; text-align: center; line-height: 1.55; }

/* 底部动作菜单 / 输入弹层 */
.sheet-mask { position: absolute; inset: 0; background: rgba(0,0,0,.34); display: flex; align-items: flex-end; z-index: 70; }
.sheet { width: 100%; background: var(--panel-2); border-radius: 14px 14px 0 0; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); animation: sheetUp .18s ease; max-height: 78%; overflow-y: auto; }
@keyframes sheetUp { from { transform: translateY(18px); opacity: .5; } to { transform: translateY(0); opacity: 1; } }
.sheet-t { font-size: 12px; color: var(--dim); text-align: center; padding: 10px 8px 12px; }
.sheet-i { display: block; width: 100%; border: none; background: var(--panel); color: var(--txt); font-family: inherit; font-size: 15.5px; padding: 14px; border-radius: 9px; margin-bottom: 6px; cursor: pointer; }
.sheet-i:active { background: #EDEDED; }
.sheet-i.danger { color: var(--danger); }
.sheet-i.cancel { margin-top: 6px; margin-bottom: 0; color: var(--dim); }
.sheet-i.ok { background: var(--brand); color: #fff; font-weight: 600; }
.sheet-in { width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 9px; padding: 12px 14px; font-size: 15px; font-family: inherit; margin-bottom: 8px; outline: none; }
.sheet-in:focus { border-color: var(--brand); }

@media (max-width: 767px) {
  body { gap: 28px; padding: 24px 12px; align-items: flex-start; }
  .side { flex: 1 1 100%; max-width: none; order: 2; }
  .phone { transform: scale(.94); transform-origin: top center; margin: 0 auto; }
  /* Discord 式：手机底部导航深色化（仅配色，结构不变） */
  .tabbar { background: #2E2E2E; border-top: none; }
  .tab { color: #9A9A9A; }
  .tab.on { color: #07C160; }
  .tab .dot { border-color: #2E2E2E; }
}

/* ============================================================
 * 自适应双栏（v1.9.0）：≥768px 切成「会话列表 | 聊天区」全屏网页应用
 *   <768px          手机单栏（与原先完全一致）
 *   768–1023px      平板：300px 列表 + 聊天区
 *   ≥1024px         电脑：320px 列表 + 聊天区，消息列限宽居中
 * body.desk 类由 app.js 的 applyLayout() 断点监听时开关
 * ============================================================ */
.dsk { display: none; }
#screenList, #screenChat { display: none; }
.dsk-empty { display: none; }

body.desk { align-items: stretch; justify-content: flex-start; padding: 0; gap: 0; }
body.desk .side { display: none; }
body.desk .phone {
  flex: 1 1 auto; width: 100%; height: 100vh; height: 100dvh;
  border-radius: 0; box-shadow: none; transform: none;
}
body.desk .statusbar { display: none; }
body.desk #screen { display: none; }
body.desk .dsk { display: flex; flex: 1 1 auto; width: 100%; min-height: 0; }

.dsk-l {
  flex: 0 0 300px; width: 300px; min-width: 0; min-height: 0;
  display: flex; flex-direction: column; position: relative;
  background: #F7F7F7; border-right: 1px solid var(--line);
}
.dsk-r {
  flex: 1 1 auto; min-width: 0; min-height: 0;
  display: flex; flex-direction: column; position: relative;
  background: var(--bg);
}
body.desk #screenList, body.desk #screenChat { display: block; }
#screenList { flex: 1 1 auto; min-height: 0; }
#screenChat { flex: 1 1 auto; min-height: 0; }

body.desk .dsk-l .navbar { flex: 0 0 46px; }

/* ---------- Discord 式左侧图标栏（v1.10.0） ---------- */
.dsk-rail { flex: 0 0 56px; width: 56px; min-width: 0; background: #2E2E2E; display: flex; flex-direction: column; }
body.desk .dsk-rail .tabbar {
  flex: 1 1 auto; height: auto; flex-direction: column;
  background: transparent; border: none; padding: 14px 0; gap: 6px;
}
body.desk .dsk-rail .tab { flex: 0 0 auto; color: #9A9A9A; }
body.desk .dsk-rail .tab.on { color: #07C160; }
body.desk .dsk-rail .tab .dot { top: -2px; right: calc(50% - 19px); border-color: #2E2E2E; }

/* ---------- 成员栏：≥1200px 且右栏开着会话时显示 ---------- */
.dsk-m {
  flex: 0 0 208px; width: 208px; min-width: 0; min-height: 0;
  display: none; flex-direction: column;
  background: #F7F7F7; border-left: 1px solid var(--line);
}
.dsk-m-h { flex: 0 0 auto; padding: 15px 14px 9px; font-size: 13px; font-weight: 600; color: var(--txt); border-bottom: 1px solid var(--line); }
.dsk-m-b { flex: 1 1 auto; overflow-y: auto; padding: 6px 0 14px; }
.dsk-m-i { display: flex; align-items: center; gap: 9px; padding: 7px 12px; min-width: 0; }
.dsk-m-t { flex: 1 1 auto; min-width: 0; }
.dsk-m-n { font-size: 13.5px; color: var(--txt); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dsk-m-r { font-size: 11px; color: var(--dim); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 1200px) {
  body.desk .dsk-m[data-on="1"] { display: flex; }
}

/* 右栏没有打开会话时的占位 */
.dsk-empty {
  position: absolute; inset: 0; z-index: 5;
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: var(--bg);
}
.dsk-empty .dsk-empty-logo {
  width: 72px; height: 72px; border-radius: 18px;
  background: #DEDEDE; color: #fff; font-size: 30px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.dsk-empty .dsk-empty-t { font-size: 14px; color: var(--dim); }

/* 桌面聊天区内容限宽居中，超宽屏上一行字拉满全宽很难看 */
body.desk .dsk-r .chatbg { max-width: 820px; margin: 0 auto; width: 100%; }
body.desk .dsk-r .inputbar { max-width: 820px; width: 100%; margin: 0 auto; }

/* 电脑宽屏再抬一档：列表加宽、消息列更舒展 */
@media (min-width: 1024px) {
  .dsk-l { flex: 0 0 320px; width: 320px; }
  body.desk .dsk-r .chatbg { max-width: 860px; }
  body.desk .dsk-r .inputbar { max-width: 860px; }
}

/* ============================================================
 * v1.11.0 玻璃沉浸风（A+B 混搭）
 * · 彩色渐变大底贯穿手机 / 平板 / 电脑，面板全部磨砂玻璃化
 * · body[data-theme] 四档主题色：紫罗兰(默认) / 微信绿 / 晴空蓝 / 落日橙
 * · 电脑端右栏无会话时渲染「工作台」今日面板（.wb-*）
 * 手机端不再是"微信套壳"：全屏铺满 + 玻璃质感
 * ============================================================ */
body {
  --acc:        #7C5CFC;
  --acc-deep:   #5B3FE4;
  --bubble-me-bg: linear-gradient(135deg, #8A6BFF, #6C4DF6);
  background: linear-gradient(160deg, #EDE9FF 0%, #E0EBFF 46%, #FFE9F2 100%) fixed;
}
body[data-theme="green"] {
  --acc: #07C160; --acc-deep: #06AD56;
  --bubble-me-bg: linear-gradient(135deg, #2BD879, #07C160);
  background: linear-gradient(160deg, #DFF6EA 0%, #E8F7E4 48%, #F2FBEC 100%) fixed;
}
body[data-theme="blue"] {
  --acc: #3D7BFF; --acc-deep: #2B62E0;
  --bubble-me-bg: linear-gradient(135deg, #5B90FF, #3D7BFF);
  background: linear-gradient(160deg, #E3EDFF 0%, #DDE9FF 48%, #EAF4FF 100%) fixed;
}
body[data-theme="sunset"] {
  --acc: #FF7A45; --acc-deep: #E85F2B;
  --bubble-me-bg: linear-gradient(135deg, #FF9660, #FF7A45);
  background: linear-gradient(160deg, #FFEFE3 0%, #FFE9E9 48%, #FFF3E0 100%) fixed;
}

/* 面板变量玻璃化：列表 / 卡片 / 次级块全部半透明白 */
body { --panel: rgba(255,255,255,.66); --panel-2: rgba(255,255,255,.5); --panel-3: rgba(255,255,255,.42); --bg: transparent; }

/* 手机壳：整块玻璃，去掉旧的白边圈 */
.phone {
  background: rgba(255,255,255,.42);
  backdrop-filter: blur(28px) saturate(1.5);
  -webkit-backdrop-filter: blur(28px) saturate(1.5);
  border-radius: 24px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.55), 0 30px 70px -30px rgba(60,40,140,.35);
}

/* 导航 / 状态栏 / 底部 Tab / 输入栏：磨砂条 */
.statusbar, .navbar { background: rgba(255,255,255,.5); }
.tabbar, .inputbar {
  background: rgba(255,255,255,.6);
  backdrop-filter: blur(22px) saturate(1.5);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
}
.inputbar { border-top: 1px solid rgba(255,255,255,.6); }

/* 登录页玻璃化 */
.auth { background: rgba(255,255,255,.75); backdrop-filter: blur(26px) saturate(1.5); -webkit-backdrop-filter: blur(26px) saturate(1.5); }

/* 气泡：圆角加大、对方半透明白、我方主题色渐变白字 */
.bubble { background: rgba(255,255,255,.88); border-radius: 16px 16px 16px 4px; }
.msg.me .bubble { background: var(--bubble-me-bg); color: #fff; }
.bubble.atme { box-shadow: 0 0 0 1.5px var(--acc) inset, 0 1px 1px rgba(0,0,0,.04); }

/* 列表行与卡片：玻璃卡 + 圆角 */
.row, .cell { background: transparent; }
.grp { background: rgba(255,255,255,.6); border-radius: 16px; margin: 10px 10px 0; overflow: hidden; }
.list { background: rgba(255,255,255,.55); border-radius: 16px; margin: 10px 10px 0; overflow: hidden; }
.sec-title, .ch-hint, .searchbar { background: transparent; }

/* ---------- 电脑 / 平板：双栏玻璃化 ---------- */
body.desk .dsk-l {
  background: rgba(255,255,255,.5);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-right: 1px solid rgba(255,255,255,.6);
}
.dsk-r { background: transparent; }
body.desk .dsk-r .chatbg, body.desk .dsk-r .inputbar { background: transparent; }
.dsk-rail { background: rgba(38,34,64,.62); backdrop-filter: blur(24px) saturate(1.4); -webkit-backdrop-filter: blur(24px) saturate(1.4); border-right: 1px solid rgba(255,255,255,.12); }
.dsk-m { background: rgba(255,255,255,.5); backdrop-filter: blur(24px) saturate(1.4); -webkit-backdrop-filter: blur(24px) saturate(1.4); border-left: 1px solid rgba(255,255,255,.6); }

/* ---------- 工作台首页（右栏无会话时） ---------- */
.dsk-empty {
  align-items: flex-start; justify-content: flex-start;
  background: transparent; overflow-y: auto; overflow-x: hidden;
}
.dsk-work { width: 100%; max-width: 680px; margin: 0 auto; padding: 26px 28px 44px; display: flex; flex-direction: column; gap: 14px; }
.wb-greet .wb-hi { font-size: 22px; font-weight: 700; color: var(--txt); letter-spacing: -.01em; }
.wb-greet .wb-sub { font-size: 13px; color: var(--dim); margin-top: 4px; }
.wb-stats { display: flex; gap: 12px; }
.wb-stat { flex: 1; background: rgba(255,255,255,.6); border: 0.5px solid rgba(255,255,255,.7); border-radius: 16px; padding: 12px 14px; min-width: 0; }
.wb-k { font-size: 12px; color: var(--dim); }
.wb-v { font-size: 22px; font-weight: 700; color: var(--txt); margin-top: 2px; }
.wb-v span { font-size: 12px; font-weight: 400; color: var(--dim); }
.wb-hero { background: linear-gradient(135deg, var(--acc), var(--acc-deep)); border-radius: 18px; padding: 16px 18px; color: #fff; cursor: pointer; transition: transform .15s; }
.wb-hero:hover { transform: translateY(-1px); }
.wb-hero-top { display: flex; align-items: center; gap: 10px; }
.wb-hero-n { font-size: 16px; font-weight: 600; }
.wb-hero-b { margin-left: auto; background: rgba(255,255,255,.25); border-radius: 9px; font-size: 11px; padding: 2px 8px; flex: 0 0 auto; }
.wb-hero-p { font-size: 13px; opacity: .92; margin-top: 8px; line-height: 1.6; word-break: break-word; }
.wb-hero-go { font-size: 12px; margin-top: 10px; opacity: .85; }
.wb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.wb-mini { display: flex; align-items: center; gap: 9px; background: rgba(255,255,255,.6); border: 0.5px solid rgba(255,255,255,.7); border-radius: 14px; padding: 10px 12px; cursor: pointer; min-width: 0; transition: transform .15s; }
.wb-mini:hover { transform: translateY(-1px); }
.wb-mini-t { min-width: 0; flex: 1; }
.wb-mini-n { font-size: 13px; color: var(--txt); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wb-mini-p { font-size: 11px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.wb-mini-b { background: var(--danger); color: #fff; font-size: 10px; border-radius: 8px; padding: 1px 6px; flex: 0 0 auto; }
.wb-new { color: var(--acc); font-size: 13px; justify-content: center; border-style: dashed; background: rgba(255,255,255,.35); }

/* ---------- 主题色选择圆点（"我"页） ---------- */
.theme-dots { display: flex; gap: 10px; margin-left: auto; }
.theme-dot { width: 22px; height: 22px; border-radius: 50%; cursor: pointer; border: 2px solid transparent; display: inline-block; box-sizing: border-box; }
.theme-dot.t-violet { background: #7C5CFC; }
.theme-dot.t-green  { background: #07C160; }
.theme-dot.t-blue   { background: #3D7BFF; }
.theme-dot.t-sunset { background: #FF7A45; }
.theme-dot.on { border-color: var(--txt); }

/* ---------- 手机端：脱离套壳感，全屏玻璃 ---------- */
@media (max-width: 767px) {
  body { padding: 0; gap: 0; }
  .side { display: none; }
  .phone {
    /* v1.20.4：必须先用 100vh 兜底再写 100dvh。
       部分手机浏览器（iOS 15.4 以下、微信内置 X5 内核、老安卓 WebView）不认识 dvh，
       只写 dvh 时这条声明整条失效，.phone 高度退化为内容高度，
       屏幕区被压成几十像素，用户看到的就是「一片空白」。 */
    width: 100%; height: 100vh; height: 100dvh; flex: none;
    border-radius: 0; box-shadow: none; transform: none; margin: 0 auto;
    background: rgba(255,255,255,.42);
    backdrop-filter: blur(24px) saturate(1.5);
    -webkit-backdrop-filter: blur(24px) saturate(1.5);
  }
}

/* ============================================================
 * v1.12.0 顶部胶囊分段导航
 * · 底部 Tab 栏 / 左侧竖图标栏全部取消，导航只有一条顶部胶囊
 * · 手机端：胶囊置顶（状态栏之下）；桌面端：胶囊放左栏顶部
 * · 选中项浮起白底 + 主题色；玻璃风与主题色体系保留
 * ============================================================ */
.statusbar { order: -2; }
.tabbar {
  order: -1;
  flex: 0 0 auto; height: auto;
  margin: 8px 10px 2px; padding: 4px; gap: 2px;
  border-radius: 14px; border-top: none;
  border: 1px solid rgba(255,255,255,.65);
}
.tab {
  flex-direction: row; gap: 5px;
  font-size: 12.5px; padding: 7px 0; border-radius: 10px;
  color: var(--dim); transition: background .15s, color .15s;
}
.tab.on {
  color: var(--acc); background: #fff; font-weight: 500;
  box-shadow: 0 2px 8px rgba(60,40,140,.14);
}
.tab svg { width: 16px; height: 16px; }
.tab .dot { top: 1px; right: 4px; border-color: #fff; }

/* 竖图标栏整体退场 */
.dsk-rail { display: none; }

/* 桌面左栏：胶囊在最上，与列表同为玻璃 */
body.desk .dsk-l .tabbar { flex: 0 0 auto; margin: 10px 12px 4px; }

/* ============================================================
 * v1.13.0 图片消息 / 撤回
 * ============================================================ */
.bubble.imgbub { padding: 3px; background: rgba(255,255,255,.92); }
.msg.me .bubble.imgbub { background: rgba(255,255,255,.92); }
.msg-img { display: block; max-width: 200px; max-height: 240px; border-radius: 13px; cursor: zoom-in; }
.img-viewer {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(20,18,30,.88);
  display: flex; align-items: center; justify-content: center;
  cursor: zoom-out; padding: 24px;
}
.img-viewer img { max-width: 100%; max-height: 100%; border-radius: 10px; }

/* ============================================================
 * v1.14.0 纯文字 Tab（等级样式已于 v1.18.0 换为仙侠六境徽章）
 * ============================================================ */
.tab { gap: 0; }
.tab svg { display: none; }
.tab .tb-txt { font-size: 15px; font-weight: 600; letter-spacing: 1px; }
.realm {
  display: inline-flex; align-items: center; margin-left: 5px;
  font-size: 11px; line-height: 1; font-weight: 600; letter-spacing: .5px;
  padding: 2px 6px; border-radius: 6px; vertical-align: 1px;
  border: 1px solid transparent; white-space: nowrap;
}
/* v2.4.0：LV 数字 + 段位名合并为一个徽章，放在昵称前（[LV2 小白条] 名字）。
   徽章在名字前 → 用右边距；复用 .realm 段位配色，与「等级说明」页同源。 */
.realm.lv-badge { margin-left: 0; margin-right: 5px; letter-spacing: .3px; }
/* v2.5.0：徽章后的名字加粗放大，和徽章视觉重量匹配。
   用 max 保底 14px，小字号界面（10.5/13.5px）也够大；大字号按 1.1 倍放大不破坏层级。 */
.lv-name { font-weight: 700; font-size: max(1.1em, 14px); line-height: 1.1; }
/* v1.62.1：超管赋予的特殊称号。
   尺寸/形状与前面的等级徽章 .realm 完全一致（11px / 600 / 2px 6px / 圆角 6px / 1px 描边），
   仅用紫金配色区分身份；只改颜色不改大小，和 LV 徽章并排时视觉重量相同。 */
.ut-title { display:inline-flex; align-items:center; margin-left:5px;
  font-size:11px; line-height:1; font-weight:600; letter-spacing:.5px;
  padding:2px 6px; border-radius:6px; vertical-align:1px;
  border:1px solid rgba(124,77,190,.30); white-space:nowrap;
  color:#6B3FA0; background:rgba(124,77,190,.13); }
.realm.q1 { color: #4F7183; background: rgba(79,113,131,.12);  border-color: rgba(79,113,131,.26); }
.realm.q2 { color: #2E8B57; background: rgba(46,139,87,.12);   border-color: rgba(46,139,87,.28); }
.realm.q3 { color: #A9770B; background: rgba(217,164,32,.16);  border-color: rgba(217,164,32,.38); }
.realm.q4 { color: #7C4DBE; background: rgba(124,77,190,.13);  border-color: rgba(124,77,190,.30); }
.realm.q5 { color: #2C55B8; background: rgba(44,85,184,.13);   border-color: rgba(44,85,184,.30); }
.realm.q6 { color: #B23A17; background: rgba(178,58,23,.12);   border-color: rgba(178,58,23,.30); }
.realm.q7 { color: #0E7C86; background: rgba(14,124,134,.12);  border-color: rgba(14,124,134,.30); }
.realm.q8 { color: #B3245F; background: rgba(179,36,95,.12);   border-color: rgba(179,36,95,.30); }
.realm.q9 { color: #8A5A00; background: linear-gradient(135deg, rgba(255,196,92,.34), rgba(224,150,40,.22)); border-color: rgba(180,120,20,.42); }
.lv-cell { align-items: center; }
.lv-sub { font-size: 12px; color: var(--dim); padding: 0 16px 10px; margin-top: -6px; }

/* ============================================================
 * v1.15.0 论坛讨论区
 * ============================================================ */
.fd-bi {
  width: 40px; height: 40px; border-radius: 11px; flex: none;
  background: linear-gradient(135deg, var(--acc, #7C6CF6), #9B8CFF);
  color: #fff; font-size: 18px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.fd-bt { flex: 1 1 auto; min-width: 0; margin: 0 10px; }
.fd-tt { flex: 1 1 auto; min-width: 0; }
.fd-title { font-size: 15px; font-weight: 600; margin-bottom: 3px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fd-editor { padding: 0 16px 12px; }
.fd-editor textarea {
  width: 100%; min-height: 220px; resize: vertical;
  border: 1px solid var(--line); border-radius: 12px; padding: 12px;
  font-size: 15px; line-height: 1.6; background: rgba(255,255,255,.55);
  box-sizing: border-box; font-family: inherit;
}
.fd-card, .fd-floor {
  margin: 12px; padding: 14px; border-radius: 16px;
  background: rgba(255,255,255,.62);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(255,255,255,.55);
}
.fd-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.fd-hinfo { flex: 1 1 auto; min-width: 0; }
.fd-hn { font-size: 14px; font-weight: 600; }
.fd-ht { font-size: 12px; color: var(--dim); margin-top: 2px; }
.fd-del { font-size: 12px; color: #E5484D; cursor: pointer; flex: none; }
.fd-title-lg { font-size: 18px; font-weight: 700; line-height: 1.4; margin-bottom: 8px; }
.fd-body { font-size: 15px; line-height: 1.7; word-break: break-word; }
.fd-floor .fd-body { font-size: 14px; }
.fd-acts { margin-top: 10px; display: flex; gap: 14px; }
.fd-like { font-size: 13px; color: var(--dim); cursor: pointer; user-select: none; }
.fd-like.on { color: #E5484D; font-weight: 600; }
.fd-floors { padding-bottom: 6px; }
.fd-nofloor { text-align: center; color: var(--dim); font-size: 13px; padding: 18px 0; }
.fd-replybar {
  position: sticky; bottom: 0; margin: 0 12px; padding: 10px 0 14px;
  display: flex; gap: 8px; align-items: flex-end;
}
.fd-replybar textarea {
  flex: 1 1 auto; min-height: 44px; max-height: 120px; resize: none;
  border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px;
  font-size: 14px; line-height: 1.5; background: rgba(255,255,255,.75);
  box-sizing: border-box; font-family: inherit;
}
.fd-send { flex: none; padding: 10px 18px; }

/* ============================================================
 * v1.16.0 管理员自助管理
 * ============================================================ */
.adm-warn { color: #B45309; font-weight: 600; }
.adm-note { font-size: 12px; color: var(--dim); line-height: 1.6; padding: 4px 16px 10px; }
.adm-row small { color: var(--dim); font-size: 12px; margin-left: 6px; }
.adm-add { display: flex; gap: 8px; padding: 10px 16px 14px; }
.adm-add input {
  flex: 1 1 auto; min-width: 0; padding: 9px 12px; font-size: 14px;
  border: 1px solid var(--line); border-radius: 10px;
  background: rgba(255,255,255,.7); box-sizing: border-box; font-family: inherit;
}
.adm-add .b { flex: none; padding: 9px 16px; }

/* ============================================================
 * v1.17.0 后台管理：用户 / 权限 / 封禁
 * ============================================================ */
.ap-bar { display: flex; gap: 8px; padding: 12px; }
.ap-bar input {
  flex: 1 1 auto; min-width: 0; padding: 9px 12px; font-size: 14px;
  border: 1px solid var(--line); border-radius: 10px;
  background: rgba(255,255,255,.7); box-sizing: border-box; font-family: inherit;
}
.ap-bar .b { flex: none; padding: 9px 16px; }
.ap-u { margin: 0 12px 10px; padding: 12px; border-radius: 14px;
  background: rgba(255,255,255,.62); backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,.55); }
.ap-urow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ap-uinfo { flex: 1 1 140px; min-width: 0; }
.ap-un { font-size: 14px; font-weight: 600; }
.ap-uw { font-size: 12px; color: var(--dim); margin-top: 3px; }
.ap-tag { font-size: 11px; padding: 1px 6px; border-radius: 6px; margin-left: 4px;
  background: rgba(124,108,246,.14); color: #6B5BD6; }
.ap-tag.red { background: rgba(229,72,77,.14); color: #E5484D; }
.ap-ops { display: flex; flex-wrap: wrap; gap: 5px; margin-left: auto; }
.ap-ops .nb-btn { font-size: 12px; padding: 5px 8px; border-radius: 8px; }
.ap-perms { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 8px; }
.ap-perms label { font-size: 14px; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.ap-perms .b { align-self: flex-start; padding: 8px 16px; }
.ap-pager { display: flex; justify-content: space-between; align-items: center;
  padding: 6px 16px 20px; font-size: 12px; color: var(--dim); gap: 8px; }

/* ============================================================
 * v1.20.0 境界介绍 / 注册数字 ID
 * ============================================================ */
.realm { cursor: pointer; }
.ri-hero { padding: 20px 16px 6px; font-size: 20px; font-weight: 700; }
.ri-mine { padding: 0 16px 14px; font-size: 13px; color: var(--dim); }
.ri-mine b { color: var(--acc, #7C6CF6); }
.ri-list { padding: 0 12px; }
.ri-row {
  display: flex; align-items: center; gap: 12px; padding: 12px;
  margin-bottom: 8px; border-radius: 14px;
  background: rgba(255,255,255,.62); backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,.55);
}
.ri-row .realm { margin-left: 0; font-size: 13px; padding: 4px 9px; flex: none; }
.ri-info { flex: 1 1 auto; min-width: 0; }
.ri-d { font-size: 14px; }
.ri-t { font-size: 12px; color: var(--dim); margin-top: 3px; }
.ri-now { font-size: 11px; color: #fff; background: var(--acc, #7C6CF6); padding: 2px 8px; border-radius: 8px; flex: none; }
.ri-rules { padding: 8px 18px 24px; font-size: 12px; line-height: 2; color: var(--dim); }
.reg-id {
  font-size: 38px; font-weight: 800; letter-spacing: 4px; color: var(--acc, #7C6CF6);
  padding: 16px 20px; margin: 8px 0; border-radius: 16px;
  background: rgba(255,255,255,.7); cursor: pointer; user-select: all;
}
.reg-acct { font-size: 14px; margin-bottom: 8px; }

/* ================= 后台：等级设置（v1.20.7） =================
 * 段位卡片：序号 + 名字 + 占级数 + 删除，第二行描述，第三行自动算出的 LV/天数区间。
 * 站长只需要填「这段占几级」，区间由脚本算，不用自己对齐 LV 号。 */
.la-tip { padding: 12px 16px 4px; font-size: 12px; line-height: 1.7; color: var(--dim); }
.la-days { max-width: 90px; }
.la-unit { font-size: 13px; color: var(--dim); flex: none; margin-left: 4px; }
.la-card {
  margin: 0 10px 8px; padding: 10px 12px 8px; border-radius: 14px;
  background: rgba(255,255,255,.62); border: 1px solid rgba(255,255,255,.55);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.la-card.bad { border-color: rgba(250,81,81,.45); background: rgba(250,81,81,.06); }
.la-top { display: flex; align-items: center; gap: 8px; }
.la-no {
  flex: none; width: 20px; height: 20px; border-radius: 50%; font-size: 11px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; background: var(--acc, #7C5CFC); font-weight: 600;
}
.la-name {
  flex: 1 1 auto; min-width: 0; border: none; font-size: 15px; font-family: inherit;
  font-weight: 600; color: var(--txt); background: transparent; padding: 2px 0;
  outline: none; border-bottom: 1px dashed rgba(0,0,0,.14); border-radius: 0;
}
.la-name:focus { border-bottom-color: var(--acc, #7C5CFC); border-bottom-style: solid; }
.la-name::placeholder { font-weight: 400; color: var(--dim2); }
.la-span {
  flex: none; width: 56px; text-align: center; font-size: 15px; font-family: inherit;
  color: var(--txt); background: rgba(0,0,0,.045); border: 1px solid transparent;
  border-radius: 8px; padding: 4px 2px; outline: none;
}
.la-span:focus { border-color: var(--acc, #7C5CFC); background: #fff; }
.la-del, .la-del-ph { flex: none; width: 24px; height: 24px; }
.la-del {
  border: none; background: rgba(250,81,81,.10); color: var(--danger); border-radius: 50%;
  font-size: 16px; line-height: 1; cursor: pointer; padding: 0;
}
.la-del-ph { display: block; }
.la-desc {
  width: 100%; box-sizing: border-box; margin-top: 6px; border: none; outline: none;
  font-size: 13px; font-family: inherit; color: var(--txt); background: transparent; padding: 2px 0;
}
.la-desc::placeholder { color: var(--dim2); }
.la-range { font-size: 11.5px; color: var(--dim); margin-top: 4px; }
.la-tools { display: flex; gap: 10px; padding: 6px 12px 0; }
.la-tools .b {
  flex: 1; padding: 10px; border-radius: 10px; border: 1px solid var(--line);
  background: rgba(255,255,255,.7); color: var(--txt); font-size: 14px; font-family: inherit; cursor: pointer;
}
.la-tools .b:active { opacity: .8; }

/* 段位超过 9 段时的备用配色（默认 9 段用不到，站长加段时生效） */
.realm.q10 { color: #0F6B3F; background: rgba(15,107,63,.13);  border-color: rgba(15,107,63,.30); }
.realm.q11 { color: #6B3F0F; background: rgba(107,63,15,.13);  border-color: rgba(107,63,15,.30); }
.realm.q12 { color: #3F0F6B; background: rgba(63,15,107,.13);  border-color: rgba(63,15,107,.30); }

/* 桌面端：段位卡片不要拉满整屏，限制阅读宽度更舒服 */
@media (min-width: 900px) {
  .la-tip    { max-width: 720px; }
  .la-card   { max-width: 720px; }
  .la-name   { max-width: 240px; }
  .la-tools  { max-width: 720px; }
}

/* ============================================================
 * v1.20.8：消息长按菜单 + 消息设置页
 * 长按气泡弹出的底部操作条（撤回 / 复制 / 取消）。
 * 遮罩铺满视口，点空白处关闭；菜单本身在底部，单手也能点到。
 * ============================================================ */
.mm-mask {
  position: fixed; inset: 0; z-index: 4000;
  background: rgba(0,0,0,.38);
  display: flex; align-items: flex-end; justify-content: center;
}
/* 遮罩不做 opacity 动画：后台标签页 / 省电模式下动画会被节流停在中间态，
 * 结果就是「菜单看起来半透明、底下的聊天内容透出来」。只让菜单本身滑入。 */
.mm-box {
  width: 100%; max-width: 420px; margin: 0 10px 10px;
  /* 必须用不透明底色：--panel 在玻璃主题下是 rgba(255,255,255,.66)，
   * 菜单浮在聊天内容之上，半透明会把底下的气泡透出来，看着很脏。 */
  background: #FFFFFF; border-radius: 12px; overflow: hidden;
  isolation: isolate;
  box-shadow: 0 12px 34px rgba(0,0,0,.22);
  animation: mmUp .18s cubic-bezier(.2,.9,.3,1) both;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
@keyframes mmUp { from { transform: translateY(14px) } to { transform: none } }
.mm-item {
  padding: 15px 16px; text-align: center; font-size: 16px; color: var(--txt);
  border-bottom: 1px solid var(--line); cursor: pointer; user-select: none;
}
.mm-item:last-child { border-bottom: none; }
.mm-item:active { background: #F2F2F2; }
.mm-item.mm-cancel { color: var(--dim); font-size: 15px; margin-top: 6px; border-top: 6px solid #EDEDED; }
.mm-item.mm-dis { color: var(--dim2); font-size: 13px; cursor: default; }
.mm-item.mm-dis:active { background: transparent; }

/* 消息设置页的数字输入框（复用等级页的输入样式，但宽度单独收窄） */
.ma-num { width: 76px !important; flex: 0 0 76px; text-align: right; }
@media (min-width: 900px) {
  #mmMask .mm-box { margin-bottom: 24px; }
}

/* ============================================================
 * v1.21.0：自助找回密码 / 密保 / 举报审核 / 安全自检
 * ============================================================ */
.rec-link { text-align: center; color: var(--brand-deep); font-size: 13px; padding: 10px 0 2px; cursor: pointer; user-select: none; }
.rec-link:active { opacity: .6; }
.rec-pane { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }
.rec-pane h3 { font-size: 19px; font-weight: 600; color: var(--txt); margin-bottom: 4px; text-align: center; }
.rec-sub { font-size: 12.5px; color: var(--dim); text-align: center; margin-bottom: 16px; }
.rec-pane > div > * { margin-bottom: 10px; }
.rec-pane .rec-input { width: 100%; box-sizing: border-box; }
.rec-pane .main { width: 100%; }
.rec-q {
  background: var(--panel-3); border: 1px solid var(--line); border-radius: 8px;
  padding: 14px; font-size: 15px; color: var(--txt); text-align: center; line-height: 1.5;
}
.rec-done { text-align: center; padding: 24px 0; font-size: 14px; color: var(--txt); line-height: 2; }
.rec-done-ico { font-size: 42px; color: var(--brand); line-height: 1.2; }
.sec-sel { max-width: 62%; text-align: right; direction: rtl; }
.fd-rep { color: var(--dim); font-size: 12px; cursor: pointer; margin-left: 8px; }
.fd-rep:active { opacity: .55; }

/* 举报弹窗：复用 .mm-mask 遮罩，但改为居中卡片 */
#rpMask { align-items: center; }
.rp-box {
  width: calc(100% - 32px); max-width: 380px; background: #FFFFFF;
  border-radius: 12px; padding: 18px; box-sizing: border-box;
  box-shadow: 0 12px 34px rgba(0,0,0,.22);
}
.rp-title { font-size: 16px; font-weight: 600; color: var(--txt); margin-bottom: 4px; }
.rp-tip { font-size: 12px; color: var(--dim); margin-bottom: 14px; }
.rp-sel {
  width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px;
  font-size: 14px; font-family: inherit; color: var(--txt); background: var(--panel-2);
  margin-bottom: 12px; outline: none;
}
.rp-ta {
  width: 100%; min-height: 78px; box-sizing: border-box; resize: vertical;
  border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px;
  font-size: 14px; font-family: inherit; color: var(--txt); background: var(--panel-2); outline: none;
}
.rp-btns, .rp-btns3 { display: flex; gap: 10px; margin-top: 14px; }
.rp-btns .b, .rp-btns3 .b { flex: 1; font-size: 13px; padding: 9px 4px; }

/* 举报审核台 */
.rp-tabs { display: flex; gap: 8px; padding: 12px 12px 4px; flex-wrap: wrap; }
.rp-tab {
  padding: 7px 14px; border-radius: 16px; font-size: 13px; cursor: pointer;
  background: var(--panel-2); color: var(--dim); border: 1px solid var(--line);
}
.rp-tab.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.rp-card {
  margin: 10px 12px; padding: 14px; border-radius: 10px;
  background: var(--panel); border: 1px solid var(--line);
}
.rp-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.rp-tag { font-size: 11px; color: var(--dim); background: var(--panel-3); padding: 3px 8px; border-radius: 10px; }
.rp-reason { font-size: 14px; font-weight: 600; color: var(--txt); }
.rp-st { margin-left: auto; font-size: 11px; padding: 3px 8px; border-radius: 10px; }
.rp-st.pending { color: #A15C00; background: rgba(239,159,39,.16); }
.rp-st.handled { color: #0F6E56; background: rgba(29,158,117,.14); }
.rp-st.dismissed { color: var(--dim); background: var(--panel-3); }
.rp-prev {
  background: var(--panel-2); border-radius: 8px; padding: 10px 12px;
  font-size: 13px; color: var(--txt); line-height: 1.6; word-break: break-all;
  max-height: 96px; overflow: hidden;
}
.rp-detail { font-size: 12.5px; color: var(--dim); margin-top: 8px; word-break: break-all; }
.rp-meta { font-size: 11.5px; color: var(--dim2); margin-top: 8px; }
.sa-bad { color: var(--danger) !important; }

@media (min-width: 900px) {
  .rp-card { max-width: 720px; }
  .rp-tabs { max-width: 720px; }
}

/* 找回密码流程：临时把玻璃登录页切成不透明，遮住底下 #screen 的残留页面 */
.auth.rec-on {
  background: #FFFFFF;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  overflow-y: auto;
}

/* ============================================================
 * v1.21.1 无界 UI：去设备框 + 柔和呼吸感
 * 核心诉求：① 去掉「手机」观感（设备白圈 / 假状态栏）② 整体放大圆角、
 *          弱化分割线、卡片柔化悬浮、增大留白，营造无界通透感。
 * 全部以「追加覆盖」方式实现，不改动既有规则，降低回归风险。
 * ============================================================ */
:root {
  --line: #ECECEC;          /* 分割线更浅，边界感更弱 */
  --radius: 16px;           /* 统一圆角基准 */
  --shadow-soft: 0 6px 22px -10px rgba(0,0,0,.14);   /* 柔和悬浮阴影 */
}

/* ① 移动端：不再是「手机框里的小窗」，改成全屏边到边、无设备环、无假状态栏 */
@media (max-width: 767px) {
  .phone {
    width: 100% !important; height: 100vh; height: 100dvh; min-height: 0;
    border-radius: 0 !important; box-shadow: none !important;
    transform: none !important; margin: 0;
  }
  .statusbar { display: none !important; }   /* 假 iOS 时钟/电量是最强的「像手机」信号，去掉 */
  .tabbar { padding-bottom: 0; }
  .screen { padding-bottom: 6px; }
  body { padding: 0; gap: 0; }
}

/* ① 桌面 landing：设备框也收敛，不再用大白圈 + 重阴影悬浮（仅桌面，避免回灌移动端） */
@media (min-width: 768px) {
  .phone { box-shadow: 0 14px 44px -20px rgba(0,0,0,.20); border-radius: 24px; }
  body.desk .phone { border-radius: 0; box-shadow: none; }
  /* 桌面 landing：左右间距更舒展（无界留白） */
  body { gap: 44px; padding: 36px 28px; }
}

/* ② 圆角与留白放大 */
.list { border-radius: var(--radius); overflow: hidden; }
@media (max-width: 767px) { .list { border-radius: 0; margin: 0; } }  /* 移动端全屏，列表贴边更无界 */
.cell { border-radius: 12px; }
.grp { border-radius: var(--radius); overflow: hidden; background: var(--panel); box-shadow: var(--shadow-soft); }
.grp .cell { border-bottom: 1px solid var(--line); }
.grp .cell:last-child { border-bottom: none; }

/* 输入框 / 按钮 圆角放大，更柔和 */
#fWxid, #fNick, #fPass, #fRegion, .auth input, .rec-input, .rp-ta, .rp-sel, .sheet-in,
.fd-editor textarea, #frInput, #apSearch, #admWxid, .cell input, input.cell-input, textarea.cell-input {
  border-radius: 12px;
}
.b, button.b, .nb-btn, .main, .send, .auth .btn, .btn, .theme-dot, .b.green, .b.red {
  border-radius: 12px;
}

/* 论坛卡片 / 举报卡片 / 设置卡片：柔化悬浮，替代硬边框 */
.fd-card, .rp-card {
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  border: none;
}
.rp-box, .sheet, .mm-box {
  border-radius: 18px;
}
.rec-pane .rec-q { border-radius: 12px; }

/* 版块列表里的「管理」入口：低调的胶囊，不抢视线（无界） */
.fd-mg {
  flex: 0 0 auto; margin-left: 8px; font-size: 12px; color: var(--brand-deep);
  background: var(--brand-soft); padding: 4px 11px; border-radius: 20px; cursor: pointer;
  user-select: none; -webkit-tap-highlight-color: transparent;
}
.fd-mg:active { background: var(--brand); color: #fff; }

/* 顶部导航栏去掉硬下边框，改用极浅分隔，更通透 */
.navbar { border-bottom: none; box-shadow: 0 1px 0 rgba(0,0,0,.04); }
.tabbar { border-top: none; box-shadow: 0 -1px 0 rgba(0,0,0,.04); }

/* ================= v1.21.2：点头像看资料卡 ================= */
.ava-click { cursor: pointer; transition: opacity .12s; }
.ava-click:active { opacity: .7; }

.uc-mask {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(0,0,0,.42);
  display: flex; align-items: center; justify-content: center;
  padding: 22px; -webkit-tap-highlight-color: transparent;
}
.uc-card {
  width: 100%; max-width: 340px;
  background: rgba(255,255,255,.97); border-radius: var(--radius);
  box-shadow: var(--shadow-soft); overflow: hidden;
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  animation: uc-pop .16s ease-out;
}
@keyframes uc-pop { from { transform: translateY(8px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.uc-head { padding: 22px 18px 14px; text-align: center; border-bottom: 1px solid var(--line); }
.uc-head .av { display: block; margin: 0 auto 10px; }
.uc-name { font-size: 17px; font-weight: 600; color: var(--txt); }
.uc-sub { margin-top: 5px; font-size: 12px; color: var(--dim); }
.uc-badge {
  display: inline-block; margin-left: 6px; padding: 1px 8px; font-size: 11px;
  color: #fff; background: var(--brand); border-radius: 9px; vertical-align: middle; font-weight: 500;
}
.uc-body { padding: 4px 18px; }
.uc-row { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; font-size: 13.5px; border-bottom: 1px solid var(--line); }
.uc-row:last-child { border-bottom: none; }
.uc-lb { color: var(--dim); flex: 0 0 auto; }
.uc-val { color: var(--txt); text-align: right; word-break: break-all; }
.uc-actions { display: flex; gap: 10px; padding: 14px 18px 18px; }
.uc-actions .nb-btn {
  flex: 1; justify-content: center; padding: 11px 14px;
  border-radius: 12px; font-weight: 600; font-size: 14px;
  background: rgba(0,0,0,.05); color: var(--txt);
}
.uc-actions .nb-btn:active { transform: scale(.98); }
.uc-actions .nb-btn:first-child { background: var(--brand); color: #fff; }

/* ================= v1.21.3：修复设置页「我的等级」副标题被分隔线压住 =================
 * 根因：.lv-sub 原 margin-top:-6px 把整行文字上提，正好骑在 v1.21.1 给 .grp .cell
 *       加的 border-bottom 上，看起来就是「字被线条穿过」。
 * 修复：取消上提；等级行自己不再画下边线（副标题本来就是它的说明文字）。 */
.grp .lv-sub { margin-top: 0; padding: 0 16px 10px; }
.grp .cell.lv-cell { border-bottom: none; }

/* ================= v1.21.4：聊天记录「查看更早」 ================= */
.load-more-hist {
  margin: 6px auto 10px; width: max-content; max-width: 92%;
  padding: 7px 16px; font-size: 12.5px; color: var(--dim);
  background: rgba(255,255,255,.7); border-radius: 999px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  cursor: pointer; user-select: none;
}
.load-more-hist:active { opacity: .6; }

/* ================= v1.22.0：语音 / 文件 / 引用 / 转发 / 搜索 ================= */

/* 输入栏允许换行：引用条独占一行，其余控件仍在第二行 */
.inputbar { flex-wrap: wrap; }
.quote-bar {
  width: 100%; order: -1; display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.82); border-left: 3px solid var(--acc);
  border-radius: 10px; padding: 7px 10px; margin-bottom: 6px;
}
.quote-bar .qb-main { flex: 1; min-width: 0; display: flex; gap: 6px; font-size: 12.5px; color: var(--dim); }
.quote-bar .qb-main b { flex: 0 0 auto; color: var(--acc); font-weight: 600; font-size: 12.5px; }
.quote-bar .qb-main span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quote-bar .qb-x { border: none; background: none; color: var(--dim2); font-size: 13px; cursor: pointer; padding: 2px 4px; }

/* 气泡内的引用块 / 转发来源 */
.bubble .qbox {
  font-size: 12.5px; line-height: 1.45; padding: 5px 8px; margin-bottom: 6px; white-space: normal;
  border-radius: 8px; background: rgba(0,0,0,.06); border-left: 2px solid currentColor; opacity: .88;
}
.msg.me .bubble .qbox { background: rgba(255,255,255,.22); }
.bubble .qbox b { display: block; font-weight: 600; font-size: 11.5px; opacity: .9; margin-bottom: 2px; }
.bubble .qbox span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bubble .fwd-tag { font-size: 11px; opacity: .62; margin-bottom: 4px; }

/* 文件气泡 */
.bubble.fbub { display: flex; align-items: center; gap: 10px; min-width: 196px; max-width: 252px; }
.fbub .fico { font-size: 25px; flex: 0 0 auto; }
.fbub .f-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fbub .fnm { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fbub .fsub { font-size: 11.5px; opacity: .68; }
.fbub .fdl { flex: 0 0 auto; font-size: 12px; padding: 5px 9px; border-radius: 8px; background: rgba(0,0,0,.07); }
.msg.me .bubble .fdl { background: rgba(255,255,255,.24); }

/* 聊天记录搜索 */
.cs-bar { display: flex; gap: 8px; padding: 10px 12px; }
.cs-bar input {
  flex: 1; min-width: 0; border: none; border-radius: 10px; padding: 10px 12px;
  font-size: 14.5px; font-family: inherit; outline: none;
  background: rgba(255,255,255,.9); color: var(--txt);
}
.cs-btn { border: none; border-radius: 10px; padding: 0 16px; background: var(--acc); color: #fff; font-size: 14px; font-family: inherit; cursor: pointer; }
.cs-row .cs-who { font-size: 11px; color: var(--dim2); margin-left: 6px; font-weight: 400; }
.cs-row .pv { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-row mark { background: rgba(255,176,31,.38); color: inherit; border-radius: 3px; padding: 0 1px; }

/* 群文件 */
.f-cell { display: flex; align-items: center; gap: 10px; }
.f-cell .fico { font-size: 22px; flex: 0 0 auto; }
.f-cell .f-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.f-cell .fnm { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f-cell .fsub { font-size: 11.5px; color: var(--dim); }
.f-cell .fdl { flex: 0 0 auto; font-size: 12.5px; color: var(--acc); padding: 4px 8px; }

/* 会话列表「有人@我」标记 */
.at-flag { color: #FF6B35; font-weight: 600; margin-right: 4px; }

/* 从搜索结果跳转：目标气泡闪一下 */
.bubble.hit { animation: hitFlash 1.7s ease; }
@keyframes hitFlash {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,176,31,0); }
  22%      { box-shadow: 0 0 0 3px rgba(255,176,31,.6); }
  62%      { box-shadow: 0 0 0 3px rgba(255,176,31,.3); }
}
.nb-btn.plus + .nb-btn.plus { margin-left: 2px; }

/* ================= v1.22.2：会话内搜索（底部输入栏直接变搜索框） ================= */
/* 搜索态：表情 / 图片 / 附件 / 提及 / 引用条全部让位，只留输入框 + 「搜索」 */
.inputbar.searching #searchBtn,
.inputbar.searching #emojiBtn,
.inputbar.searching #imgBtn,
.inputbar.searching #attachBtn,
.inputbar.searching #atBtn,
.inputbar.searching .quote-bar { display: none !important; }
.inputbar.searching input {
  background: rgba(255,255,255,.96);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.10);
  border-radius: 10px;
}
/* 搜索范围切换 */
.cs-scope { display: flex; gap: 8px; padding: 10px 12px 2px; }
.cs-chip {
  border: none; border-radius: 999px; padding: 6px 14px;
  font-size: 12.5px; font-family: inherit; cursor: pointer;
  background: rgba(255,255,255,.78); color: var(--dim);
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
  transition: background .15s, color .15s;
}
.cs-chip.on { background: var(--acc); color: #fff; box-shadow: 0 3px 10px rgba(0,0,0,.14); }
.cs-chip:active { transform: scale(.97); }

/* ================= v1.23.0：输入栏视觉重构（B 方案 · 圆片收敛） =================
 * 目标：解决「6 个元素等权平铺 + emoji 字符花色不一 + 输入框与栏底只差半级明度」。
 * 边界：只改视觉，不改任何一个按钮的 id / 顺序 / 绑定函数 —— app.js 零改动。
 * 层次来源（三级明度）：栏底 #F7F7F7 → 图标圆片 #ECEDEF（凹）→ 输入胶囊 #FFF（凸）。
 * 旧定义保留在上面（第 134-139 行），这里按「后写覆盖」生效，便于回滚。 */
.inputbar {
  align-items: center;
  gap: 6px;
  padding: 9px 10px;
  /* 磨砂条保留（blur 继承自第 481 行），只把白色比例从 .6 提到 .86 并掺入极淡灰。
     原 .6 白叠在浅灰底上≈#FAFAFB，白胶囊压上去毫无对比，这是「没有层次感」的主因。
     桌面双栏由 body.desk .dsk-r .inputbar{background:transparent} 接管，不受影响。 */
  background: rgba(242,243,246,.93);
  border-top: 1px solid rgba(0,0,0,.06);
}
.inputbar .ib {
  width: 32px; height: 32px; flex: 0 0 32px;
  margin-bottom: 0; padding: 0; border: none;
  background: #E6E8EC; border-radius: 50%;
  color: #63696F; font-size: 0;
  display: flex; align-items: center; justify-content: center;
  transition: background .14s, color .14s, transform .1s;
}
.inputbar .ib svg { display: block; }
.inputbar .ib:active { background: #D8DCE2; color: var(--brand-deep); transform: scale(.94); }
.inputbar #atBtn { font-weight: 400; }
.inputbar input {
  height: 36px; padding: 0 14px; border-radius: 18px;
  border: 1px solid #DDE1E7; background: #fff;
  box-shadow: 0 1px 3px rgba(16,24,40,.055);
}
.inputbar input:focus {
  border-color: rgba(7,193,96,.5);
  box-shadow: 0 0 0 2.5px rgba(7,193,96,.10);
}
.send { height: 36px; padding: 0 16px; border-radius: 18px; }
.send:not(:disabled) { box-shadow: 0 2px 6px rgba(7,193,96,.24); }
/* 引用条独占第一行，行间距交给 inputbar 的 gap，避免二次叠加 */
.inputbar .quote-bar { margin-bottom: 0; }
/* 搜索态：沿用胶囊形状，只换描边语义（覆盖第 1148 行的方形内阴影） */
.inputbar.searching input {
  border-radius: 18px;
  border-color: #DCE0E5;
  box-shadow: 0 0 0 2px rgba(0,0,0,.055);
}
/* 表情面板：8 列 gap 2 → 6 列 gap 8，格子 38 → 44，解决「表情挤在一起」
   面板改成「上浮抽屉」：顶部圆角 + 上投影，与聊天区之间有明确分界。 */
.emoji-panel {
  height: 216px; padding: 12px 12px 16px;
  background: #fff;
  border-top: 1px solid #E9EBEF;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -2px 10px rgba(16,24,40,.05);
}
.emoji-grid { grid-template-columns: repeat(6, 1fr); gap: 8px; }
.emoji-grid .em { height: 44px; font-size: 25px; border-radius: 10px; }
.emoji-grid .em:active { background: #E4E6EA; }
.emoji-grid .em.del { background: #EBEDF0; }

/* ================= v1.24.0：AI 助手消息 =================
   只加一圈半透明描边与昵称色，不改气泡底色，跟随各主题自动适配。 */
.msg.ai .bubble { border: 1px solid rgba(59,130,246,.45); box-shadow: inset 2px 0 0 rgba(59,130,246,.55); }
.msg.ai .nm-top { color: #2B7CD3; }

/* ================= v1.25.0：后台 AI 设置表单 =================
   沿用 .cell / .grp / .cell-input 的既有布局，只补 select 与多行输入。 */
.ai-sel { flex: 1; min-width: 0; border: none; outline: none; background: transparent; color: var(--txt); font-family: inherit; font-size: 15px; text-align: right; }
.ai-ta-cell { display: block; padding: 10px 14px; }
.ai-ta-cell .lb { display: block; margin-bottom: 6px; }
.ai-ta { display: block; width: 100%; box-sizing: border-box; text-align: left; resize: vertical; min-height: 80px; line-height: 1.6; font-size: 14px; font-family: inherit; color: var(--txt); background: transparent; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.ai-out { margin: 12px 14px 0; padding: 10px 12px; border-radius: 8px; font-size: 13px; line-height: 1.6; word-break: break-word; white-space: pre-line; }
.ai-out.ok { background: #EAF3DE; color: #27500A; }
.ai-out.bad { background: #FCEBEB; color: #791F1F; }

/* ================= v1.37.0：每日签到 / 积分 / 卡密兑换 ================= */
.ci-entry .val b { font-weight: 600; }
.ci-hero { margin: 12px 14px 4px; padding: 24px 16px; border-radius: 12px; background: linear-gradient(135deg, #07C160, #06AD56); color: #fff; text-align: center; }
.ci-hero-coin { font-size: 13px; opacity: .9; }
.ci-hero-num { font-size: 40px; font-weight: 700; line-height: 1.2; margin: 4px 0; }
.ci-hero-sub { font-size: 12px; opacity: .85; }
.ci-stat { display: flex; padding: 14px 0; }
.ci-stat > div { flex: 1; text-align: center; }
.ci-stat b { display: block; font-size: 20px; color: var(--txt); }
.ci-stat span { display: block; font-size: 11px; color: var(--dim); margin-top: 3px; }
.ci-balance { margin: 12px 14px 0; padding: 10px 14px; border-radius: 8px; background: var(--brand-soft); font-size: 14px; color: var(--txt); }
.ci-balance b { color: var(--brand-deep); font-size: 17px; }
.ci-card { display: flex; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.ci-card-info { flex: 1; min-width: 0; }
.ci-card-name { font-size: 15px; color: var(--txt); margin-bottom: 3px; }
.ci-card-cost { font-size: 13px; color: var(--brand-deep); }
.ci-card-btn { padding: 7px 18px !important; font-size: 13px !important; flex: none !important; }
.ci-card-out { font-size: 13px; color: var(--dim); }
.ci-claim { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.ci-claim-top { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--txt); }
.ci-claim-top small { color: var(--dim); font-size: 11px; font-weight: normal; }
.ci-claim-code { margin-top: 7px; padding: 8px 10px; border-radius: 6px; background: var(--panel-2); font-family: monospace; font-size: 15px; color: var(--brand-deep); word-break: break-all; cursor: pointer; }
/* ============ 卡密批量录入：双模式 + 实时解析预览（纯前端） ============ */
.ci-batch { padding: 0 14px 4px; }
.ci-tabs { display: flex; gap: 8px; margin: 2px 0 12px; }
.ci-tabs button { flex: 1; padding: 8px 0; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--dim); font-size: 13px; font-family: inherit; }
.ci-tabs button.on { background: var(--brand); color: #fff; border-color: transparent; }
.ci-qgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.ci-qgrid label { display: block; font-size: 12px; color: var(--dim); margin-bottom: 5px; }
.ci-qin { width: 100%; box-sizing: border-box; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--txt); font-size: 14px; font-family: inherit; outline: none; }
.ci-ta-hd { display: flex; align-items: center; font-size: 12px; color: var(--dim); margin-bottom: 5px; }
.ci-file { margin-left: auto; color: var(--brand); }
.ci-ta { margin: 0; }
.ci-pv { margin-top: 10px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--panel); }
.ci-pv-sum { display: flex; flex-wrap: wrap; gap: 12px; padding: 9px 11px; background: var(--panel-2); font-size: 12px; }
.ci-pv-sum .ok { color: #178C64; }
.ci-pv-sum .err { color: var(--danger); }
.ci-pv-sum .warn { color: #B5730F; }
.ci-pv-empty { padding: 14px 12px; text-align: center; font-size: 12px; color: var(--dim2); }
.ci-pv-list { max-height: 320px; overflow-y: auto; }
.ci-pv-row { display: flex; align-items: center; gap: 8px; padding: 7px 11px; border-top: 1px solid var(--line); font-size: 12px; color: var(--txt); }
.ci-pv-row.err { background: rgba(250,81,81,.09); cursor: pointer; }
.ci-pv-row.warn { background: rgba(232,173,25,.12); }
.ci-pv-mark { flex: 0 0 14px; font-weight: 700; }
.ci-pv-row.ok .ci-pv-mark { color: #178C64; }
.ci-pv-row.err .ci-pv-mark, .ci-pv-row.err .ci-pv-rsn { color: var(--danger); }
.ci-pv-row.warn .ci-pv-mark, .ci-pv-row.warn .ci-pv-rsn { color: #B5730F; }
.ci-pv-txt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: monospace; }
.ci-pv-rsn { flex: 0 0 auto; max-width: 46%; color: var(--dim); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ci-pv-more { padding: 7px 11px; border-top: 1px solid var(--line); font-size: 11px; color: var(--dim2); text-align: center; }
.ci-dup { display: flex; align-items: center; gap: 6px; margin: 10px 2px 2px; font-size: 12px; color: var(--dim); }
.ci-batch .btnrow { padding: 12px 0 4px; }
.ci-batch .btnrow .b:last-child { flex: 2; }
.ci-adm-card { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.ci-adm-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--txt); }
.ci-adm-code { margin: 7px 0; padding: 7px 9px; border-radius: 6px; background: var(--panel-2); font-family: monospace; font-size: 13px; word-break: break-all; cursor: pointer; color: var(--txt); }
.ci-adm-meta { font-size: 11px; color: var(--dim); }
.ci-adm-ops { display: flex; gap: 10px; margin-top: 8px; }
.ci-adm-ops .b { flex: none; padding: 5px 14px; font-size: 12px; }
.ci-modal { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; padding: 20px; }
.ci-modal-box { width: 100%; max-width: 340px; background: var(--panel); border-radius: 12px; padding: 20px; }
.ci-modal-t { font-size: 16px; font-weight: 600; color: var(--brand-deep); margin-bottom: 12px; }
.ci-modal-name { font-size: 14px; color: var(--txt); margin-bottom: 8px; }
.ci-modal-code { padding: 12px; border-radius: 8px; background: var(--panel-2); font-family: monospace; font-size: 17px; word-break: break-all; color: var(--txt); }
.ci-modal-box .btnrow { margin-top: 16px; }

/* ================= v1.40.0：论坛小视频 ================= */
.fd-video { display: block; width: 100%; max-width: 100%; margin: 8px 0; border-radius: 8px; background: #000; }
.fd-vpick { cursor: pointer; }
.fd-vpick span:first-child { color: var(--brand-deep); }
.fd-vpreview { position: relative; padding: 0 14px 12px; }
.fd-vpreview-sm { padding: 10px 14px 0; }
.fd-vpreview video { width: 100%; max-width: 100%; border-radius: 8px; background: #000; display: block; }
.fd-vrm { display: inline-block; margin-top: 6px; font-size: 12px; color: var(--danger); cursor: pointer; }
.fd-reply-tools { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.fd-vpick-mini { font-size: 13px; color: var(--brand-deep); cursor: pointer; padding: 6px 0; }

/* ================= v1.41.0：论坛扩展 ================= */
.fd-img { display: block; width: 100%; max-width: 100%; margin: 8px 0; border-radius: 8px; cursor: zoom-in; }
.fd-img-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 8px 14px; }
.fd-img-cell { position: relative; }
.fd-img-cell img { width: 100%; height: 80px; object-fit: cover; border-radius: 6px; display: block; }
.fd-img-cell span { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; line-height: 18px; text-align: center; border-radius: 50%; background: var(--danger); color: #fff; font-size: 14px; cursor: pointer; }
.fd-badge { display: inline-block; font-size: 11px; padding: 1px 5px; border-radius: 3px; margin-right: 4px; vertical-align: middle; }
.fd-badge.top { background: #FCEBEB; color: #A32D2D; }
.fd-badge.best { background: #FAEEDA; color: #854F0B; }
.fd-fav, .fd-mgr { cursor: pointer; }
.fd-fav { margin-left: 12px; }
.fd-fav.on { color: #BA7517; }
.fd-mgr { margin-left: 12px; color: var(--brand-deep); }
.fd-search-btn { flex: none !important; padding: 6px 14px; margin-left: 6px; }
.fd-follow span:first-child { color: var(--brand-deep); }
.fd-unread { display: inline-block; min-width: 18px; height: 18px; line-height: 18px; text-align: center; border-radius: 9px; background: var(--danger); color: #fff; font-size: 11px; }
.fr-mentions { font-size: 12px; color: var(--dim); padding: 4px 2px; }
.fd-summary { margin: 0 14px 10px; padding: 12px; border-radius: 8px; background: var(--panel-2); font-size: 13px; color: var(--txt); }
.fd-summary-t { font-weight: 500; color: var(--brand-deep); margin-bottom: 6px; }

/* ================= v1.42.0：超管站点总览 ================= */
.sa-tabs { display: flex; overflow-x: auto; gap: 4px; padding: 8px 10px; background: var(--panel); border-bottom: 1px solid var(--line); }
.sa-tab { flex: none; padding: 6px 12px; font-size: 13px; color: var(--dim); border-radius: 14px; cursor: pointer; white-space: nowrap; }
.sa-tab.on { background: var(--brand-soft); color: var(--brand-deep); font-weight: 500; }
.sa-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 12px 14px; }
.sa-cell { background: var(--panel); border-radius: 8px; padding: 10px 4px; text-align: center; }
.sa-cell b { display: block; font-size: 17px; color: var(--txt); }
.sa-cell span { display: block; font-size: 11px; color: var(--dim); margin-top: 3px; }
.sa-bars { padding: 10px 14px; }
.sa-bar-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.sa-bar-day { width: 40px; font-size: 11px; color: var(--dim); }
.sa-bar-track { flex: 1; height: 12px; background: var(--panel-3); border-radius: 6px; overflow: hidden; }
.sa-bar-fill { height: 100%; background: var(--brand); border-radius: 6px; }
.sa-bar-num { width: 30px; text-align: right; font-size: 12px; color: var(--txt); }
.sa-log .w { font-size: 12px; color: var(--dim); margin-top: 3px; word-break: break-all; }
.sa-ck { flex: none; width: 20px; height: 20px; }
.sa-announce { margin: 8px 12px; padding: 10px 12px; border-radius: 8px; background: #FAEEDA; color: #633806; font-size: 13px; line-height: 1.5; word-break: break-word; }

/* ================= v1.43.0：消息首页签到横幅 + 签到导航入口 ================= */
.ci-banner { display: flex; align-items: center; gap: 12px; margin: 10px 12px 4px; padding: 12px 14px; border-radius: 12px; background: linear-gradient(100deg, #07C160, #06AD56); color: #fff; cursor: pointer; }
.ci-banner-ico { flex: none; width: 40px; height: 40px; line-height: 40px; text-align: center; border-radius: 10px; background: rgba(255,255,255,.22); font-size: 18px; font-weight: 500; }
.ci-banner-main { flex: 1; min-width: 0; }
.ci-banner-t { font-size: 15px; font-weight: 500; }
.ci-banner-sub { font-size: 12px; font-weight: 400; opacity: .9; }
.ci-banner-d { font-size: 12px; opacity: .92; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ci-banner-btn { flex: none; padding: 6px 14px; border-radius: 16px; background: #fff; color: #06AD56; font-size: 13px; font-weight: 500; }
.ci-banner-btn.done { background: rgba(255,255,255,.22); color: #fff; }
.ci-nav-link span:first-child { color: var(--brand-deep); }

/* ================= v1.43.2：签到页三步模块按钮（方案 C · 纯数字） =================
   把原来的三行列表换成 01/02/03 三个模块卡：
   01 签到领积分 → 02 积分换卡密 → 03 卡密兑换游戏元宝。
   只用数字不做图标，避免和站内其他图标风格打架；第 3 张是终点，用浅绿底收尾。 */
.vc-cards { padding: 10px 14px 0; }
.vc-card { display: flex; align-items: center; gap: 13px; padding: 14px; margin-top: 10px;
           border-radius: 14px; background: var(--panel); border: 1px solid rgba(17,17,17,.055);
           box-shadow: 0 1px 2px rgba(17,17,17,.04); cursor: pointer; }
.vc-cards .vc-card:first-child { margin-top: 0; }
.vc-card:active { background: #FAFAFA; }
.vc-no { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 12px; background: var(--brand-soft);
         color: var(--brand-deep); font-size: 15px; font-weight: 800; letter-spacing: -.02em;
         display: flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.vc-bd { flex: 1; min-width: 0; }
.vc-t { font-size: 15.5px; font-weight: 600; color: var(--txt); }
.vc-s { font-size: 12.5px; color: var(--dim); margin-top: 4px; line-height: 1.4; }
.vc-card .chev { margin-left: 0; flex: 0 0 auto; color: #C6C6C6; }
.vc-card.final { background: #F6FCF9; border-color: rgba(7,193,96,.24); }
.vc-card.final:active { background: #EFFAF4; }
.vc-card.final .vc-no { background: linear-gradient(135deg, #07C160, #06AD56); color: #fff;
                        box-shadow: 0 4px 10px -4px rgba(7,193,96,.6); }
.vc-go { flex: 0 0 auto; font-size: 12.5px; font-weight: 600; color: var(--brand-deep); }
.vc-mine { text-align: center; font-size: 12.5px; color: var(--brand-deep); padding: 14px 0; cursor: pointer; }
.vc-mine:active { opacity: .6; }

/* ================= v1.43.3：签到页重排（绿卡合一 + 桌面左右分栏） =================
   上一版（v1.43.2）在桌面宽屏下：绿色余额块被拉成一条长带、三列统计被拉得很散、
   签到按钮变成整条绿杠、底下留一大片空白。这一版把余额 / 签到按钮 / 统计
   收进同一张绿卡，三步流程卡单独成列；≥900px 左右并排，窄屏自动上下堆叠。 */
.ck-wrap { padding: 12px 14px 4px; }
.ck-hero { border-radius: 16px; padding: 20px; color: #fff;
           background: linear-gradient(150deg, #0BD06C 0%, #06AD56 58%, #059B4C 100%);
           box-shadow: 0 12px 26px -16px rgba(6,173,86,.55); }
.ck-coin { font-size: 13px; opacity: .88; letter-spacing: .04em; }
.ck-num { font-size: 42px; font-weight: 700; line-height: 1.1; margin: 6px 0 2px; letter-spacing: -.02em; }
.ck-sub { font-size: 12px; opacity: .8; }
.ck-btn { margin-top: 16px; width: 100%; height: 44px; border: 0; border-radius: 12px;
          font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
          background: #fff; color: #06AD56; }
.ck-btn:active { opacity: .86; }
.ck-btn.done, .ck-btn:disabled { background: rgba(255,255,255,.20); color: #fff; cursor: default; }
.ck-btn.ghost { margin-top: 8px; background: rgba(255,255,255,.14); color: #fff; font-weight: 500; }
.ck-stats { display: flex; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.22); }
.ck-stats > div { flex: 1; text-align: center; }
.ck-stats > div + div { border-left: 1px solid rgba(255,255,255,.16); }
.ck-stats b { display: block; font-size: 19px; font-weight: 700; }
.ck-stats span { display: block; font-size: 11px; opacity: .82; margin-top: 2px; }
.ck-flow { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.ck-flow .vc-mine { padding: 6px 0 10px; }

@media (min-width: 900px) {
  .ck-wrap { display: flex; gap: 18px; align-items: stretch; padding: 18px 22px 24px;
             max-width: 1000px; margin: 0 auto; }
  .ck-hero { flex: 0 0 336px; display: flex; flex-direction: column; border-radius: 18px; padding: 22px 20px; }
  .ck-num { font-size: 46px; }
  .ck-stats { margin-top: auto; }
  .ck-flow { flex: 1; min-width: 0; margin-top: 0; }
  .ck-flow .vc-mine { margin-top: auto; }
  .ck-flow .vc-card { padding: 15px 16px; }
}

/* ================= v1.43.4：消息首页三段按钮 + 导航栏站名框 =================
   1) .nb-tbox：消息页导航栏里的「天罗地网」加浅绿描边框，居中显示在三段按钮上方。
      导航栏只有 46px 高，框必须压在 26px 以内，所以字号从 17px 降到 15px。
      其他 tab（频道/论坛/通讯/设置）不加框，直接走原来的纯文字标题。
   2) .ci-tb：把原来的绿色单条横幅换成三段按钮，每段两行字。
      .ci-tb-s 是深绿胶囊小字，白字在深绿底上比白底 20% 透明清楚得多。 */
.nb-tbox { display: inline-block; padding: 4px 12px; border: 1px solid rgba(7,193,96,.45);
           border-radius: 6px; background: #F1FCF6; color: #05A250;
           font-size: 15px; font-weight: 700; line-height: 1; letter-spacing: .14em;
           text-indent: .14em; vertical-align: middle;
           transition: color .2s ease, border-color .2s ease, background .2s ease; }
/* 网络状态：默认（无 data-state / data-state=ok）为绿色；warn 黄、off 红。
   只改框的字色/边框/底色，不改布局尺寸，状态切换不抖动。 */
.nb-tbox[data-state="warn"] { border-color: #E8B400; background: #FFF9E6; color: #9A6B00; }
.nb-tbox[data-state="off"]  { border-color: #E57373; background: #FDEDEC; color: #C0392B; }

/* v1.72.0：消息页顶部只显示「我的昵称」，状态靠整框颜色区分（不显示状态文字）。
   六种状态各一套边框/底色/字色，切换时平滑过渡；昵称过长省略号。 */
.nb-tbox.nb-me { display: inline-flex; align-items: center; justify-content: center;
                 padding: 4px 12px; letter-spacing: 0; text-indent: 0; }
.nb-me .nb-nick { font-size: 14px; font-weight: 700; max-width: 130px;
                  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 六态配色：在线绿 / 隐身橙 / 离开灰 / 请勿打扰红 / 忙碌深红 / 离线浅灰 */
.nb-tbox.nb-me[data-pres="online"]  { border-color: #07C160; background:#F1FCF6; color:#05A250; }
.nb-tbox.nb-me[data-pres="hidden"]  { border-color: #F5A623; background:#FFF6EA; color:#B97900; }
.nb-tbox.nb-me[data-pres="away"]    { border-color: #9CA3AF; background:#F4F5F7; color:#6B7280; }
.nb-tbox.nb-me[data-pres="dnd"]     { border-color: #FA5151; background:#FDEDEC; color:#C0392B; }
.nb-tbox.nb-me[data-pres="busy"]    { border-color: #D93025; background:#FCEAEA; color:#A5271E; }
.nb-tbox.nb-me[data-pres="offline"] { border-color: #C8C8C8; background:#F5F5F5; color:#9A9A9A; }

.ci-tb { display: flex; gap: 7px; margin: 10px 12px 4px; padding: 8px;
         border-radius: 12px; background: var(--panel);
         box-shadow: 0 1px 2px rgba(17,17,17,.05); }
/* v1.44.3：三段按钮统一纯品牌绿 #07C160（回到用户选的 B 方案）。
   原来三段是三个不同渐变绿（#0FD573/#0CC46B/#09B762），并排看有的偏白、不统一。
   立体感由 3px 实边 box-shadow 承担，不再靠明暗渐变。 */
.ci-tb-a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
           gap: 3px; padding: 9px 4px 10px; border-radius: 11px; cursor: pointer; text-align: center;
           color: #fff; text-decoration: none; -webkit-tap-highlight-color: transparent;
           background: #07C160;
           box-shadow: 0 3px 0 #04813F; transition: transform .06s ease; }
.ci-tb-a:active { transform: translateY(2px); box-shadow: 0 1px 0 #04813F; }
.ci-tb-t { font-size: 13.5px; font-weight: 600; line-height: 1.2; white-space: nowrap; }
.ci-tb-s { font-size: 10.5px; font-weight: 600; line-height: 1.2; white-space: nowrap;
           padding: 1.5px 8px; border-radius: 20px; background: rgba(0,0,0,.17);
           box-shadow: inset 0 0 0 1px rgba(255,255,255,.30); }

/* 桌面 / 平板：三段按钮与列表卡同宽同边距（列表在这个断点是 margin:10px 10px 0、圆角 16px） */
@media (min-width: 768px) {
  .ci-tb { margin: 10px 10px 4px; border-radius: 16px; justify-content: center; }
  /* 平板/桌面全宽时如果不限宽，三段会被拉成 230px 的扁长条，文字四周全是空的 */
  .ci-tb-a { flex: 0 1 200px; }
}

/* ================= v2.7.0 扩展套件 ================= */
/* 管理员标识 / 用户列表按钮：字号、字重、内边距、圆角与等级徽章完全一致 */
.tag-off, .adm-tag, .ap-tag { font-size: 11px; font-weight: 600; padding: 2px 6px;
  border-radius: 6px; line-height: 1; letter-spacing: .5px; }
.ap-ops .nb-btn { font-size: 11px; font-weight: 600; padding: 2px 6px; border-radius: 6px;
  line-height: 1; letter-spacing: .5px; border: 1px solid transparent; }
.lv-badge, .ri-row .realm { cursor: default; }

/* 称号档位：尺寸与 .lv-badge 相同，只换颜色 */
.ut-title.ut-rare    { color:#8E44AD; background:linear-gradient(135deg,#F7E9FF,#EDE4FF); border-color:#C9A7E8; }
.ut-title.ut-limited { color:#B8860B; background:linear-gradient(135deg,#FFF6D8,#F9E7B0); border-color:#D9B44A; }

.ft-sec { margin: 12px 12px 4px; background: var(--panel); border-radius: 14px;
  padding: 12px; box-shadow: 0 1px 2px rgba(17,17,17,.05); }
.ft-h { font-size: 15px; font-weight: 700; color: var(--txt); margin-bottom: 10px; }
.ft-h small { font-size: 11px; font-weight: 400; color: var(--dim); margin-left: 6px; }
.ft-row { display: flex; align-items: center; gap: 8px; padding: 9px 0;
  border-bottom: 1px solid var(--line); }
.ft-row:last-child { border-bottom: none; }
.ft-rn { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ft-rn b { font-size: 14px; font-weight: 600; }
.ft-rn span { font-size: 11px; color: var(--dim); }
.ft-bar { width: 58px; height: 5px; border-radius: 5px; background: var(--line); overflow: hidden; }
.ft-bar i { display: block; height: 100%; background: #07C160; border-radius: 5px; }
.ft-pg { font-size: 11px; color: var(--dim); min-width: 34px; text-align: right; }
.ft-claim { border: 1px solid #07C160; color: #07C160; background: transparent;
  font-size: 11px; font-weight: 600; padding: 4px 8px; border-radius: 6px; cursor: pointer; white-space: nowrap; }
.ft-claim.done, .ft-claim:disabled { border-color: var(--line); color: var(--dim); cursor: default; }
.ft-perk { margin: 12px; padding: 12px; border-radius: 14px; background: #EEF6FF;
  color: #335577; font-size: 12.5px; line-height: 1.9; }
.ft-page, .fa-page { padding: 12px; }
.ft-head { display:flex; align-items:center; justify-content:space-between;
  padding: 12px 14px; background: var(--panel); border-radius: 14px; margin-bottom: 12px; }
.ft-head b { font-size: 17px; }
.ft-head span { font-size: 12px; color: var(--dim); }
.ft-grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(148px,1fr)); gap: 10px; }
.ft-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 10px; text-align: center; opacity: .62; }
.ft-card.on { opacity: 1; border-color: #07C160; background: #F2FBF5; }
.ft-ic { width: 34px; height: 34px; margin: 0 auto 7px; border-radius: 50%;
  background: var(--line); color: var(--dim); font-size: 12px; line-height: 34px; }
.ft-card.on .ft-ic { background: #07C160; color: #fff; font-size: 17px; }
.ft-cn { font-size: 14px; font-weight: 700; }
.ft-cd { font-size: 11px; color: var(--dim); margin-top: 3px; min-height: 28px; }
.ft-mask { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.55);
  display: flex; align-items: center; justify-content: center; padding: 16px; }
.ft-dialog { width: 100%; max-width: 340px; background: var(--panel); border-radius: 18px;
  padding: 20px; text-align: center; max-height: 92vh; overflow: auto; }
.ft-up-icon { width: 54px; height: 54px; margin: 0 auto 10px; border-radius: 50%;
  background: linear-gradient(135deg,#FFD871,#F5A623); color: #fff;
  font-size: 30px; line-height: 54px; }
.ft-up-t { font-size: 18px; font-weight: 700; }
.ft-up-lv { font-size: 26px; font-weight: 800; color: #F5A623; margin: 10px 0 4px; }
.ft-up-n { font-size: 14px; color: var(--dim); margin-bottom: 16px; }
.card-dialog { max-width: 330px; }
.card-dialog canvas { display:block; margin: 10px auto; }
.ft-card-btns { display: flex; gap: 8px; }
.ft-card-btns .b { flex: 1; }
.ft-tip { margin-top: 8px; font-size: 11px; color: var(--dim); }
.fa-h { font-size: 14px; font-weight: 700; margin: 16px 0 6px; color: var(--txt); }
.fa-tip { font-size: 11px; color: var(--dim); line-height: 1.6; }
.fa-ta { width: 100%; box-sizing: border-box; margin-top: 6px; padding: 9px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--panel);
  color: var(--txt); font-family: monospace; font-size: 12px; line-height: 1.6; resize: vertical; }
.fa-row { display: flex; gap: 8px; align-items: center; margin: 7px 0; font-size: 13px; }
.fa-row input, .fa-row select { flex: 1; min-width: 0; padding: 8px; border: 1px solid var(--line);
  border-radius: 8px; background: var(--panel); color: var(--txt); font-size: 13px; }
.fa-btns { display: flex; gap: 8px; }
.fa-btns .b { flex: 1; }

/* ==================== v2.8.0 在线状态 ==================== */
/* 头像状态点：外层 wrapper 避开 .av 的 overflow:hidden */
.av-wrap { display:inline-block; position:relative; flex:0 0 auto; vertical-align:middle; line-height:0; }
.av-wrap > .av { display:flex; }
.pres-dot { position:absolute; right:-1px; bottom:-1px; border-radius:50%;
  border:2px solid var(--panel,#fff); z-index:3; pointer-events:none; }
.pres-mini { display:inline-block; width:8px; height:8px; border-radius:50%; vertical-align:1px; margin-left:5px; }
.pres-online, .pres-mini.pres-online { background:#07C160; }
.pres-hidden, .pres-mini.pres-hidden { background:#F5A623; }
.pres-away,   .pres-mini.pres-away   { background:#9CA3AF; }
.pres-dnd,    .pres-mini.pres-dnd    { background:#FA5151; }
.pres-busy,   .pres-mini.pres-busy   { background:#D93025; }
.pres-offline,.pres-mini.pres-offline{ background:#C8C8C8; }
.pres-txt { font-size:11px; font-weight:600; }
/* dnd 加一道横杠，busy 加叉（视觉区分） */
.pres-dot.pres-dnd::after, .pres-big.pres-dnd::after { content:''; position:absolute; left:22%; right:22%; top:46%; height:12%; background:#fff; border-radius:2px; }
.pres-dot.pres-busy::after, .pres-big.pres-busy::after { content:'×'; position:absolute; inset:0; color:#fff; font-size:9px; font-style:normal; line-height:1; text-align:center; }

/* ---------- 状态面板（四款风格共用结构，父级 class 切换皮肤） ---------- */
.pres-mask { z-index:1200; }
.pres-panel { width:min(430px, 92vw); max-height:88vh; overflow-y:auto; border-radius:18px; padding:20px;
  box-sizing:border-box; color:var(--txt,#222); background:var(--panel,#fff); box-shadow:0 18px 60px rgba(0,0,0,.28); }
.pres-top { display:flex; align-items:center; justify-content:space-between; }
.pres-title { font-size:19px; font-weight:700; letter-spacing:.5px; }
.pres-close { border:none; background:transparent; font-size:26px; line-height:1; color:var(--dim,#999); cursor:pointer; padding:0 4px; }
.pres-sub { font-size:12px; color:var(--dim,#888); margin:6px 0 16px; }
.pres-sub b { color:var(--txt,#333); font-weight:600; }
.pres-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(112px,1fr)); gap:9px; }
.pres-item { position:relative; display:flex; flex-direction:column; align-items:center; gap:5px;
  padding:14px 8px 12px; border-radius:13px; border:1px solid var(--line,#e5e5e5);
  background:var(--panel,#fff); color:var(--txt,#333); cursor:pointer; transition:transform .14s, box-shadow .14s; }
.pres-item:active { transform:scale(.96); }
.pres-item.sel { border-color:#07C160; box-shadow:0 0 0 2px rgba(7,193,96,.18); }
.pres-big { position:relative; display:block; width:20px; height:20px; border-radius:50%; }
.pres-big.pres-online { background:#07C160; }
.pres-big.pres-hidden { background:#F5A623; }
.pres-big.pres-away   { background:#9CA3AF; }
.pres-big.pres-dnd    { background:#FA5151; }
.pres-big.pres-busy   { background:#D93025; }
.pres-lb { font-size:13px; font-weight:600; }
.pres-ds { font-size:10px; line-height:1.35; color:var(--dim,#999); text-align:center; min-height:26px; }
.pres-sec { margin:18px 0 9px; font-size:13px; font-weight:700; }
.pres-sec small { font-weight:400; font-size:11px; color:var(--dim,#999); margin-left:5px; }
.pres-opts { border:1px solid var(--line,#e5e5e5); border-radius:12px; overflow:hidden; }
.pres-toggle { display:flex; align-items:center; justify-content:space-between; padding:11px 13px; font-size:13px; border-bottom:1px solid var(--line,#eee); }
.pres-toggle:last-child { border-bottom:none; }
.pres-sw { width:40px; height:23px; border-radius:12px; border:none; background:#C9CDD2; position:relative; cursor:pointer; transition:background .18s; padding:0; }
.pres-sw i { position:absolute; left:3px; top:3px; width:17px; height:17px; border-radius:50%; background:#fff; transition:transform .18s; box-shadow:0 1px 3px rgba(0,0,0,.2); }
.pres-sw.on { background:#07C160; }
.pres-sw.on i { transform:translateX(17px); }
/* v2.9.0：私聊自动回复设置（新拟态） */
.pres-ar-box { margin-top:10px; }
.pres-ar-text { width:100%; box-sizing:border-box; min-height:86px; resize:vertical; border:none; outline:none;
  border-radius:12px; padding:12px 13px; font-size:13px; line-height:1.5; color:#3A4654;
  background:#E8EDF2; box-shadow:inset 4px 4px 9px #C9D0D8, inset -4px -4px 9px #FFFFFF; }
.pres-ar-text::placeholder { color:#9AA4B0; }
.pres-ar-bar { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:9px; }
.pres-ar-bar span { font-size:11px; color:#8B95A2; }
.pres-ar-bar button { flex:0 0 auto; padding:7px 14px; font-size:12px; font-weight:600; border:none; border-radius:9px;
  cursor:pointer; color:#2E9E63; background:#E8EDF2; box-shadow:4px 4px 9px #C9D0D8, -4px -4px 9px #FFFFFF; }
.pres-ar-bar button:active { box-shadow:inset 3px 3px 7px #C9D0D8, inset -3px -3px 7px #FFFFFF; }
/* v2.9.1：非「离开/请勿打扰/忙碌」时的锁定提示 */
.pres-ar-lock { margin-top:14px; border-radius:12px; padding:13px 14px; background:#E8EDF2;
  box-shadow:inset 4px 4px 9px #C9D0D8, inset -4px -4px 9px #FFFFFF; }
.pres-ar-lock-t { font-size:13px; font-weight:700; color:#5A6674; margin-bottom:6px; }
.pres-ar-lock-d { font-size:11px; line-height:1.6; color:#8B95A2; }
.pres-foot { text-align:center; font-size:11px; color:var(--dim2,#aaa); margin-top:16px; }

/* ---------- 面板风格：新拟态（v2.8.2 起唯一风格） ---------- */
.pres-panel.pres-style-c { background:#E8EDF2; color:#3A4654; border:1px solid #F2F5F8;
  box-shadow:8px 8px 20px #C9D0D8, -8px -8px 20px #FFFFFF; }
.pres-style-c .pres-item { background:#E8EDF2; border-color:transparent;
  box-shadow:5px 5px 11px #C9D0D8, -5px -5px 11px #FFFFFF; border-radius:15px; }
.pres-style-c .pres-item.sel { box-shadow:inset 4px 4px 9px #C9D0D8, inset -4px -4px 9px #FFFFFF; }
.pres-style-c .pres-opts { background:#E8EDF2; border:none; box-shadow:inset 4px 4px 9px #C9D0D8, inset -4px -4px 9px #FFFFFF; }
.pres-style-c .pres-toggle { border-color:rgba(0,0,0,.05); }
.pres-style-c .pres-sw { background:#C9D0D8; box-shadow:inset 2px 2px 4px #AEB6BF; }
.pres-style-c .pres-sw.on { background:#9AD9B4; }
.pres-style-c .pres-sec { color:#2E9E63; }

/* v2.8.0 状态面板补充：设备切换 */
.pres-dev-switch { margin-left:8px; padding:2px 9px; font-size:11px; border-radius:6px; cursor:pointer;
  border:1px solid var(--line,#ccc); background:transparent; color:var(--dim,#888); }
.pres-dev-switch:hover { color:var(--brand,#07C160); border-color:var(--brand,#07C160); }

/* ==================== v2.8.1 头像整框发光 / 变暗 ==================== */
/* 在线：整框火光呼吸；离线：整体压暗。--pglow 由 JS 按状态注入颜色 */
/* v2.9.6：外层也必须是正圆，否则内层圆头像 + 外层方光晕会「又圆又方」 */
.av-wrap { border-radius:50%; transition:filter .45s ease, box-shadow .45s ease; }
.av-wrap.av-lit {
  box-shadow:0 0 0 2px var(--pglow,#07C160),
             0 0 10px 2px var(--pglow,#07C160),
             0 0 22px 4px var(--pglow,#07C160);
  animation:avFire 2.1s ease-in-out infinite;
}
.av-wrap.av-dim > .av { filter:grayscale(.85) brightness(.62) contrast(.92); opacity:.78; }
.av-wrap.av-dim { box-shadow:0 0 0 1px rgba(120,126,134,.28); }
@keyframes avFire {
  0%,100% { box-shadow:0 0 0 2px var(--pglow,#07C160),
                        0 0 7px 1px var(--pglow,#07C160),
                        0 0 14px 2px var(--pglow,#07C160); }
  50%     { box-shadow:0 0 0 2px var(--pglow,#07C160),
                        0 0 15px 3px var(--pglow,#07C160),
                        0 0 32px 6px var(--pglow,#07C160); }
}
/* 大头像（资料卡 72px / 我的 64px）光晕更强一点 */
.av-wrap.av-lit[style*="64px"], .av-wrap.av-lit[style*="72px"] {
  box-shadow:0 0 0 2px var(--pglow,#07C160),0 0 15px 3px var(--pglow,#07C160),0 0 32px 6px var(--pglow,#07C160);
}
/* 尊重系统「减少动态效果」设置 */
@media (prefers-reduced-motion: reduce){
  .av-wrap.av-lit { animation:none; }
}

/* ==================================================================
 * v2.9.1 社交扩展：装扮商城 / 投票接龙 / 定时发送 / AI 群聊总结
 * ================================================================== */
/* ---------- 装扮商城页 ---------- */
.ds-wrap { padding:12px 12px 24px; }
.ds-hero { background:linear-gradient(135deg,#F2F8FF,#F7F3FF); border:1px solid #E6ECF5; border-radius:14px; padding:14px; margin-bottom:14px; }
.ds-hero-l { display:flex; align-items:center; gap:12px; }
.ds-av { flex:0 0 auto; }
.ds-nick { font-size:16px; font-weight:700; color:#232B36; display:flex; align-items:center; }
.ds-sub { font-size:12px; color:#7A8699; margin-top:4px; }
.ds-sub b { color:#07C160; font-size:15px; }
.ds-hint { font-size:11px; color:#99A4B3; margin-top:10px; }
.ds-tabs { display:flex; gap:8px; margin-bottom:12px; }
.ds-tab { flex:1; padding:8px 0; border:1px solid #E3E8EF; border-radius:9px; background:#fff; color:#5A6675; font-size:13px; font-weight:600; }
.ds-tab.on { background:var(--acc,#07C160); border-color:var(--acc,#07C160); color:#fff; }
.ds-list { display:flex; flex-direction:column; gap:9px; }
.ds-item { display:flex; align-items:center; gap:11px; background:#fff; border:1px solid #EBEFF4; border-radius:12px; padding:10px; }
.ds-item.on { border-color:var(--acc,#07C160); background:#FAFFFC; }
/* v2.9.6：生肖头/挂件都在框外，预览格加高并放开溢出，避免被裁 */
.ds-prev { flex:0 0 auto; width:56px; height:68px; border-radius:12px; display:flex; align-items:flex-end; justify-content:center; padding-bottom:8px; box-sizing:border-box; overflow:visible; }
.ds-prev-frame { background:#F5F7FA; border:2px solid #E3E8EF; }
.ds-prev-pendant { background:#F5F7FA; }
.ds-face { width:32px; height:32px; border-radius:50%; background:#8AB4F8; color:#fff; display:flex; align-items:center; justify-content:center; font-size:14px; font-weight:700; }
/* v2.9.5 商城预览：统一圆形小脸 + SVG 角耳/挂件叠加 */
.ds-prev .ds-mini { position:relative; width:34px; height:34px; border-radius:50%; background:#8AB4F8;
  display:flex; align-items:center; justify-content:center; }
.ds-prev .ds-face { background:transparent; width:auto; height:auto; font-size:13px; color:#fff; }
.ds-prev .av-deco { position:absolute; inset:0; width:100%; height:100%; overflow:visible; }
.ds-prev.ds-none .ds-face { opacity:.75; }
.ds-info { flex:1; min-width:0; }
.ds-name { font-size:14px; font-weight:700; color:#232B36; display:flex; align-items:center; gap:6px; }
.ds-on { font-size:10px; font-weight:500; color:#07C160; background:#E8F8EE; border-radius:5px; padding:1px 5px; }
.ds-desc { font-size:11px; color:#98A2B0; margin-top:3px; }
.ds-price { font-size:12px; color:#E8A400; margin-top:4px; font-weight:600; }
.ds-act { flex:0 0 auto; }
.ds-btn { border:none; border-radius:8px; padding:7px 11px; font-size:12px; font-weight:600; color:#fff; }
.ds-btn.buy,.ds-btn.wear { background:#07C160; }
.ds-btn.gray { background:#C7CDD6; }
.ds-btn.off { background:#EDF0F4; color:#6B7684; }

/* ========== v2.9.5 十二生肖框 + QQ式挂件（内联SVG） ==========
   v2.9.6：凡带在线状态的头像全部走正圆（内圆 + 外框圆 + 光晕圆），
   SVG 覆盖层 pointer-events:none，不挡点击头像；overflow 放开让角耳/小物件伸出。
   与在线状态火光彻底分开：火光在 av-wrap 的 box-shadow，装饰是实的 SVG 造型。 */
.av-wrap > .av { border-radius:50% !important; }
.av-deco { position:absolute; inset:0; width:100%; height:100%; overflow:visible; pointer-events:none; z-index:4; }
.av-fr { z-index:3; }
.av-pd { z-index:5; }
.av-wrap.av-dim .av-deco { filter:grayscale(.85) brightness(.7); opacity:.7; }

/* QQ式小物件动画：轻微、不喧宾夺主 */
@keyframes qqFloat { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-3px); } }
@keyframes qqBlink { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:.55; transform:scale(.82); } }
@keyframes qqBeat  { 0%,100% { transform:scale(1); } 30% { transform:scale(1.18); } 60% { transform:scale(.95); } }
@keyframes qqSwing { 0%,100% { transform:rotate(-8deg); } 50% { transform:rotate(8deg); } }
@keyframes qqTail  { 0%,100% { transform:rotate(0deg); } 50% { transform:rotate(-18deg); } }
@keyframes qqWingL { 0%,100% { transform:rotate(0deg); } 50% { transform:rotate(-16deg); } }
@keyframes qqWingR { 0%,100% { transform:rotate(0deg); } 50% { transform:rotate(16deg); } }
.pd-crown   { animation:qqFloat 3s ease-in-out infinite; }
.pd-cloud   { animation:qqFloat 4s ease-in-out infinite; }
.pd-star    { animation:qqBlink 1.8s ease-in-out infinite; transform-origin:110px 0px; }
.pd-heart   { animation:qqBeat 1.5s ease-in-out infinite; transform-origin:101px 100px; }
.pd-bell    { animation:qqSwing 2.2s ease-in-out infinite; transform-origin:108px 90px; }
.pd-tail    { animation:qqTail 2s ease-in-out infinite; transform-origin:8px 108px; }
.pd-wing-l  { animation:qqWingL 1.2s ease-in-out infinite; transform-origin:-2px 40px; }
.pd-wing-r  { animation:qqWingR 1.2s ease-in-out infinite; transform-origin:102px 40px; }
@media (prefers-reduced-motion: reduce) { .pd-crown,.pd-cloud,.pd-star,.pd-heart,.pd-bell,.pd-tail,.pd-wing-l,.pd-wing-r { animation:none; } }

/* ========== v2.10.0 生肖走路小宠物：头像下缘左右溜达 + 迈步 + 颠簸 ==========
   仅大头像/商城预览加 .av-pet-walk 才播放；列表小头像静态显示。
   SVG 内 g 分层：.pet-walk(往返+转身) > .pet-bob(颠簸) > 静态缩放定位 > .pet-leg-a/b(迈步)。 */
.av-pet .pet-walk { transform-box:fill-box; transform-origin:center; }
.av-pet-walk .pet-walk { transform-box:fill-box; transform-origin:center; animation:petWalk 7s ease-in-out infinite; }
.av-pet-walk .pet-bob  { animation:petBob .46s ease-in-out infinite; }
.av-pet-walk .pet-leg-a { transform-box:fill-box; transform-origin:top center; animation:petStepA .46s ease-in-out infinite; }
.av-pet-walk .pet-leg-b { transform-box:fill-box; transform-origin:top center; animation:petStepB .46s ease-in-out infinite; }
@keyframes petWalk {
  0%   { transform:translateX(-15px) scaleX(1); }
  45%  { transform:translateX(15px)  scaleX(1); }
  50%  { transform:translateX(15px)  scaleX(-1); }
  95%  { transform:translateX(-15px) scaleX(-1); }
  100% { transform:translateX(-15px) scaleX(1); }
}
@keyframes petBob  { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-2px); } }
@keyframes petStepA { 0%,100% { transform:rotate(0); } 50% { transform:rotate(20deg); } }
@keyframes petStepB { 0%,100% { transform:rotate(0); } 50% { transform:rotate(-20deg); } }
@media (prefers-reduced-motion: reduce) {
  .av-pet-walk .pet-walk,.av-pet-walk .pet-bob,.av-pet-walk .pet-leg-a,.av-pet-walk .pet-leg-b { animation:none; }
}

/* ---------- 投票接龙 ---------- */
.vt-wrap { padding:14px 12px 26px; }
.vt-tip { font-size:12px; color:#8A96A6; line-height:1.6; margin-bottom:12px; }
.vt-card { background:#fff; border:1px solid #EBEFF4; border-radius:13px; padding:14px; margin-bottom:12px; }
.vt-head { display:flex; align-items:center; gap:8px; margin-bottom:8px; }
.vt-type { font-size:10px; padding:2px 7px; border-radius:5px; background:#E8F0FF; color:#3D7BFF; font-weight:700; }
.vt-type.chain { background:#FFF2E4; color:#E8892B; }
.vt-closed { font-size:10px; color:#98A2B0; }
.vt-q { font-size:15px; font-weight:700; color:#232B36; margin-bottom:11px; line-height:1.5; }
.vt-opts { display:flex; flex-direction:column; gap:7px; }
.vt-opt { position:relative; overflow:hidden; text-align:left; border:1px solid #E5EAF1; border-radius:9px; padding:9px 11px; background:#FAFBFD; min-height:38px; display:flex; align-items:center; justify-content:space-between; gap:8px; }
.vt-opt.on { border-color:var(--acc,#07C160); background:#F4FBF7; }
.vt-fill { position:absolute; inset:0 auto 0 0; background:rgba(7,193,96,.13); transition:width .3s; }
.vt-ot { position:relative; font-size:13px; color:#394352; font-weight:600; }
.vt-num { position:relative; font-size:11px; color:#8A96A6; white-space:nowrap; }
.vt-foot { display:flex; align-items:center; justify-content:space-between; margin-top:10px; font-size:11px; color:#98A2B0; }
.vt-end { border:none; background:none; color:#E35B5B; font-size:12px; font-weight:600; }
.vote-new-sheet { padding:14px; }
.vn-row { display:flex; align-items:center; gap:10px; margin-bottom:11px; }
.vn-row label { width:44px; flex:0 0 auto; font-size:13px; color:#5A6675; font-weight:600; }
.vn-seg { display:flex; gap:6px; }
.vn-seg-b { border:1px solid #E3E8EF; border-radius:7px; padding:6px 13px; background:#fff; color:#687483; font-size:12px; }
.vn-seg-b.on { background:var(--acc,#07C160); color:#fff; border-color:var(--acc,#07C160); }
.vn-input,.vn-ta { flex:1; border:1px solid #E3E8EF; border-radius:8px; padding:9px; font-size:13px; color:#232B36; background:#fff; width:100%; }
.vn-ta { resize:vertical; line-height:1.6; }

/* ---------- 定时发送条 / 任务列表 ---------- */
.sched-bar { display:flex; align-items:center; justify-content:space-between; padding:6px 10px; margin:0 8px 4px; background:#FFF7E8; border:1px solid #F5DFAF; border-radius:8px; font-size:12px; color:#9A6B00; }
.sched-bar button { border:none; background:none; color:#C0392B; font-size:12px; font-weight:600; }
.sl-wrap { padding:14px 12px 26px; }
.sl-item { display:flex; align-items:center; gap:10px; background:#fff; border:1px solid #EBEFF4; border-radius:11px; padding:11px; margin-bottom:9px; }
.sl-main { flex:1; min-width:0; }
.sl-to { font-size:13px; font-weight:700; color:#232B36; }
.sl-text { font-size:12px; color:#6B7684; margin-top:3px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.sl-time { font-size:11px; color:#A0AAB8; margin-top:3px; }
.sl-del { border:none; background:#FDEDEC; color:#C0392B; border-radius:7px; padding:6px 10px; font-size:12px; }

/* ---------- AI 群聊总结 ---------- */
.cs-wrap { padding:16px 14px 26px; }
.cs-head { display:flex; align-items:center; gap:12px; background:linear-gradient(135deg,#F3EEFF,#EEF5FF); border:1px solid #E7E1F6; border-radius:14px; padding:15px; margin-bottom:14px; }
.cs-ico { width:42px; height:42px; flex:0 0 auto; border-radius:12px; background:linear-gradient(135deg,#8A6BFF,#6C4DF6); color:#fff; display:flex; align-items:center; justify-content:center; font-size:22px; }
.cs-title { font-size:15px; font-weight:700; color:#2B2A3A; }
.cs-sub { font-size:11px; color:#8A87A3; margin-top:4px; }
.cs-btn { width:100%; border:none; border-radius:10px; padding:12px; background:linear-gradient(90deg,#7C5CFC,#5B8FF9); color:#fff; font-size:14px; font-weight:700; }
.cs-btn:disabled { opacity:.6; }
.cs-result { display:block; margin-top:12px; }


/* ==================== v2.10.0 零数据库增强套件样式 ==================== */
/* 快捷短语面板 */
.phrase-panel { position:fixed; z-index:9200; width:206px; background:var(--bg-card,#fff); border:1px solid var(--line,#E6E9EF); border-radius:12px; box-shadow:0 8px 28px rgba(0,0,0,.12); padding:10px; display:none; }
.phrase-panel.show { display:block; }
.ph-h { font-size:12px; color:var(--dim,#8A94A6); margin-bottom:8px; display:flex; justify-content:space-between; align-items:center; }
.ph-add { color:#6C5CE7; cursor:pointer; }
.ph-list { max-height:240px; overflow:auto; }
.ph-it { padding:8px 9px; border-radius:8px; font-size:13px; color:var(--fg,#2C3440); display:flex; justify-content:space-between; align-items:center; cursor:pointer; }
.ph-it:hover { background:var(--bg-hover,#F4F6FB); }
.ph-x { color:#B9C0CC; font-size:15px; padding:0 3px; }
/* @ 补全 */
.mention-box { position:fixed; z-index:9200; min-width:180px; background:var(--bg-card,#fff); border:1px solid var(--line,#E6E9EF); border-radius:11px; box-shadow:0 8px 24px rgba(0,0,0,.12); padding:6px; display:none; }
.mention-box.show { display:block; }
.mn-it { padding:8px 10px; font-size:13px; color:var(--fg,#2C3440); border-radius:7px; cursor:pointer; }
.mn-it:hover { background:var(--bg-hover,#F4F6FB); }
/* 气泡皮肤：只改外观变量，不动消息数据 */
.theme-dots .bub-dot { display:inline-block; width:18px; height:16px; border-radius:5px; margin-left:6px; border:1px solid #DDE3EC; cursor:pointer; vertical-align:middle; background:#fff; }
.theme-dots .bub-dot.on { border:2px solid #6C5CE7; }
.theme-dots .bub-dot.b-classic { background:linear-gradient(135deg,#fff 50%,#07C160 50%); }
.theme-dots .bub-dot.b-round { background:#95EC69; border-radius:9px; }
.theme-dots .bub-dot.b-glass { background:rgba(108,92,231,.3); }
.theme-dots .bub-dot.b-paper { background:#F3ECD8; border-color:#E0D4B8; }
.bubble { transition:border-radius .2s ease, box-shadow .2s ease, background .2s ease; }
body[data-bubble="round"] .bubble { border-radius:20px !important; }
body[data-bubble="round"] .bubble.imgbub { border-radius:18px !important; }
body[data-bubble="glass"] .bubble { background:rgba(255,255,255,.72) !important; backdrop-filter:blur(6px); border:1px solid rgba(255,255,255,.7); }
body[data-bubble="glass"] .msg.me .bubble { background:rgba(108,92,231,.16) !important; }
body[data-bubble="paper"] .bubble { background:#FBF8F1 !important; border:1px solid #EDE4D2; box-shadow:none; }
body[data-bubble="paper"] .msg.me .bubble { background:#F3ECD8 !important; }
/* 弱网降级：隐藏重动效，图片降透明度提示 */
body.weak-net .av-deco { animation:none !important; }
body.weak-net .msg-img { opacity:.92; }
/* 后台省电：暂停所有装饰动画 */
body.idle-pause .av-deco, body.idle-pause .pd-crown, body.idle-pause .pd-cloud,
body.idle-pause .pd-star, body.idle-pause .pd-heart, body.idle-pause .pd-bell,
body.idle-pause .pd-tail, body.idle-pause .pd-wing-l, body.idle-pause .pd-wing-r { animation-play-state:paused !important; }


/* ================= v2.11.0 输入栏双层布局（后写覆盖，便于回滚） =================
   上层 .ib-row 输入框整行、随内容长高 1–4 行；下层 .ib-tools 左常用右发送。
   按钮 id / 顺序 / 绑定函数完全不变；旧规则保留在上方，删除本段即可回退。 */
.inputbar { flex-wrap:nowrap; flex-direction:column; align-items:stretch; gap:8px; padding:9px 10px calc(9px + env(safe-area-inset-bottom,0px)); }
.inputbar .ib-row { width:100%; display:flex; }
.inputbar textarea { flex:1; width:100%; min-height:38px; max-height:96px; line-height:20px; padding:8px 12px; border-radius:16px; border:1px solid #DDE1E7; background:#fff; box-shadow:0 1px 3px rgba(16,24,40,.055); font-size:15px; font-family:inherit; color:var(--txt,#2C3440); outline:none; resize:none; overflow-y:hidden; }
.inputbar textarea:focus { border-color:rgba(7,193,96,.5); box-shadow:0 0 0 2.5px rgba(7,193,96,.10); }
.inputbar textarea::placeholder { color:var(--dim2,#AAB2C0); }
.inputbar textarea:disabled { background:#F2F3F6; color:var(--dim2,#AAB2C0); }
.inputbar .ib-tools { width:100%; display:flex; align-items:center; gap:6px; }
.inputbar .tools-left, .inputbar .tools-right { display:flex; align-items:center; gap:6px; }
.inputbar .tools-right { margin-left:auto; }
.inputbar .ib { width:32px; height:32px; flex:0 0 32px; margin:0; }
.inputbar .send { height:34px; padding:0 15px; border-radius:17px; }
.inputbar.searching .ib-tools { display:none; }
.inputbar.searching textarea { border-radius:16px; border-color:#DCE0E5; box-shadow:0 0 0 2px rgba(0,0,0,.055); }
.inputbar .quote-bar, .inputbar .sched-bar { width:100%; }
@media (prefers-reduced-motion: reduce) { .inputbar textarea { transition:none; } }

/* ================= v2.12.0 网页版消息提示音设置（后写覆盖） ================= */
.snd-cell { display:block; padding-top:12px; padding-bottom:12px; }
.snd-opts { display:flex; gap:8px; flex-wrap:wrap; }
.snd-opt { flex:1; min-width:88px; padding:9px 6px; border-radius:16px; border:1px solid #DDE1E7; background:#fff; color:var(--txt,#2C3440); font-size:13px; font-family:inherit; cursor:pointer; transition:all .15s ease; }
.snd-opt.on { background:rgba(7,193,96,.12); border-color:#07C160; color:#06A857; font-weight:600; }
.snd-vol-row { display:flex; align-items:center; gap:10px; }
.snd-vol { flex:1; accent-color:#07C160; height:4px; cursor:pointer; }
.snd-vol-row > span { min-width:28px; text-align:right; font-size:12px; color:var(--dim,#8A93A2); }
.snd-try { margin-top:12px; }
.snd-try .b { width:100%; }
@media (prefers-reduced-motion: reduce) { .snd-opt { transition:none; } }

/* v2.12.1 提示音分类标签（复用 snd-cell，6 种音效分合成音/真实音频两组） */
.snd-cat { font-size:12px; color:var(--dim,#8A93A2); margin-bottom:8px; }
.snd-cat-gap { margin-top:14px; }

/* v2.13.0 火红金线品牌图标：登录页 logo 由 CSS 文字改为图片 */
.auth .logo-img { display:block; width:64px; height:64px; object-fit:contain; background:transparent; box-shadow:0 10px 24px -10px rgba(200,45,30,.55); border-radius:14px; }
