/* ============================================================
   小聊 XiaoChat · 统一设计系统
   设计语言：克制、留白、单一强调色、8pt 间距、统一圆角与阴影层级
   ============================================================ */
:root {
  --bg: #f5f6f8; --panel: #ffffff; --panel2: #eef0f4; --panel3: #e4e7ee;
  --text: #191c22; --text2: #4b5162; --muted: #8b91a1;
  --border: #e6e8ee; --border2: #d9dce4;
  --accent: #0071e3; --accent-press: #0060c9; --accent-soft: #e9f2fd;
  --brand: #0071e3;
  --bubble-me: #95ec69; --bubble-me-text: #1a2b12; --bubble-other: #ffffff;
  --badge: #fa5151; --link: #0071e3;
  --r-s: 8px; --r-m: 12px; --r-l: 16px; --r-xl: 20px;
  --sh-1: 0 1px 2px rgba(16,24,40,.05), 0 1px 3px rgba(16,24,40,.06);
  --sh-2: 0 8px 24px rgba(16,24,40,.10), 0 2px 6px rgba(16,24,40,.06);
  --sh-3: 0 24px 64px rgba(16,24,40,.18);
  --header-h: 57px;
  --gold: #d4af37;
  --fs-xl: 20px; --fs-lg: 17px; --fs-md: 14px; --fs-sm: 12.5px;
  --spring: cubic-bezier(.34, 1.4, .64, 1);
}
html[data-theme="dark"] {
  --bg: #111214; --panel: #1c1d20; --panel2: #26272b; --panel3: #303136;
  --text: #eceef2; --text2: #b9bdc9; --muted: #82868f;
  --border: #2c2d31; --border2: #3a3b40;
  --accent-soft: #12283d; --bubble-me: #0a84ff; --bubble-me-text: #ffffff; --bubble-other: #262628;
  --sh-1: 0 1px 2px rgba(0,0,0,.4); --sh-2: 0 8px 24px rgba(0,0,0,.5); --sh-3: 0 24px 64px rgba(0,0,0,.6);
}
html[data-theme="pink"] {
  --bg: #fdf3f7; --panel: #fffafc; --panel2: #ffe9f2; --panel3: #ffd9e8;
  --text: #472233; --text2: #7c4a5e; --muted: #bb8299;
  --border: #fbdcea; --border2: #f6c3d9;
  --accent: #ff5c9e; --accent-press: #f0448a; --accent-soft: #ffe9f2;
  --bubble-me: #ffb9d4; --bubble-me-text: #571f38; --bubble-other: #ffffff;
}
html[data-theme="kitty"] {
  --bg: #fff7f9; --panel: #ffffff; --panel2: #ffecf3; --panel3: #ffdce9;
  --text: #4a2436; --text2: #7d4459; --muted: #c08aa2;
  --border: #ffd3e4; --border2: #ffb9d4;
  --accent: #e91e63; --accent-press: #d81557; --accent-soft: #ffecf3;
  --brand: #e91e63;
  --bubble-me: #ffc2da; --bubble-me-text: #5c1a36; --bubble-other: #ffffff;
  --badge: #e91e63;
}
* { margin:0; padding:0; box-sizing:border-box; }
html,body { height:100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg); color: var(--text);
  font-size: 14px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
.hidden { display:none !important; }
::selection { background: var(--accent); color:#fff; }
::-webkit-scrollbar { width:8px; height:8px; }
::-webkit-scrollbar-thumb { background: var(--panel3); border-radius:4px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }
::-webkit-scrollbar-track { background: transparent; }

button { font-family:inherit; cursor:pointer; font-size:14px; transition: transform .1s ease, background .18s, box-shadow .18s, color .18s; }
button:active { transform: scale(.97); }
input, textarea, select {
  font-family:inherit; font-size:14px; color:var(--text);
  background: var(--panel); border:1px solid var(--border); border-radius: var(--r-m);
  padding: 9px 12px; outline:none; transition: border-color .18s, box-shadow .18s;
}
input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input::placeholder, textarea::placeholder { color: var(--muted); }
a { color: var(--link); }
.primary {
  background: var(--accent); color:#fff; border:1px solid transparent;
  border-radius: var(--r-m); padding: 9px 18px; font-weight:600; letter-spacing:.2px;
}
.primary:hover { background: var(--accent-press); }
.primary.small { padding: 6px 13px; font-size:13px; border-radius: var(--r-s); }
.primary:disabled { opacity:.5; cursor:not-allowed; }
.ghost {
  background: var(--panel); color: var(--text2); border:1px solid var(--border);
  border-radius: var(--r-m); padding: 9px 14px;
}
.ghost:hover { border-color: var(--border2); background: var(--panel2); }
.ghost.small { padding: 6px 12px; font-size:13px; border-radius: var(--r-s); }
.icon-btn { background:none; border:none; font-size:17px; padding:6px; border-radius: var(--r-s); }
.icon-btn:hover { background: var(--panel2); }
.badge {
  background: var(--badge); color:#fff; font-size:11px; font-weight:600;
  min-width:18px; height:18px; line-height:18px; text-align:center;
  border-radius:9px; padding:0 5px; display:inline-block;
}
.msg { font-size:13px; min-height:18px; margin-top:8px; color: var(--badge); }
.avatar { width:40px; height:40px; border-radius: var(--r-m); object-fit:cover; background: var(--panel2); flex:none; }
.avatar.big { width:64px; height:64px; border-radius: var(--r-l); }
html[data-theme="kitty"] .avatar { border: 2px solid var(--border); }

/* ---------- 登录 ---------- */
.auth-wrap {
  min-height:100vh; display:flex; align-items:center; justify-content:center; padding:20px;
  background:
    radial-gradient(720px 480px at 12% -8%, var(--accent-soft), transparent 60%),
    radial-gradient(640px 420px at 105% 110%, var(--panel2), transparent 55%),
    var(--bg);
}
.auth-card {
  background: var(--panel); border:1px solid var(--border); border-radius: 24px;
  padding: 40px 36px 32px; width: min(92vw, 384px); box-shadow: var(--sh-3); text-align:center;
  animation: popIn .35s cubic-bezier(.22,1,.36,1) both;
}
.auth-card .logo { font-size:46px; line-height:1; }
.auth-card h1 { font-size:24px; font-weight:700; letter-spacing:2px; margin:10px 0 4px; }
.tagline { color: var(--muted); font-size:13px; margin-bottom:24px; }
.tabs { display:flex; background: var(--panel2); border-radius: var(--r-m); padding:3px; margin-bottom:18px; }
.tab { flex:1; padding:8px; border:none; border-radius: 9px; background:transparent; color: var(--text2); font-weight:600; }
.tab.active { background: var(--panel); color: var(--text); box-shadow: var(--sh-1); }
.auth-card input { width:100%; margin-bottom:11px; padding:11px 13px; }
.auth-card .primary { width:100%; padding:12px; font-size:15px; margin-top:4px; }

/* ---------- 主框架 ---------- */
.app { display:flex; height:100vh; height:100dvh; }
.sidebar {
  width: 296px; flex:none; background: var(--panel); border-right:1px solid var(--border);
  display:flex; flex-direction:column; min-height:0;
}
.me-bar { display:flex; align-items:center; gap:11px; padding: 13px 14px; border-bottom:1px solid var(--border); min-height: var(--header-h); }
.me-bar .avatar { width:38px; height:38px; }
.me-info { flex:1; min-width:0; }
.me-name { font-weight:600; font-size:14.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.me-presence { font-size:12px; color: var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.main-nav { display:flex; flex-wrap:wrap; gap:6px; padding:10px 12px 4px; }
.nav-btn {
  border:1px solid transparent; background:transparent; border-radius: 999px;
  padding: 6px 12px; font-size:13px; color: var(--text2); font-weight:500;
}
.nav-btn:hover { background: var(--panel2); }
.nav-btn.active { background: var(--text); color: var(--panel); }
.nav-btn .badge { margin-left:2px; }
.side-tools { padding: 8px 12px 10px; border-bottom:1px solid var(--border); }
.side-tools input { width:100%; border-radius: 999px; padding: 8px 14px; background: var(--panel2); border-color: transparent; }
.side-tools input:focus { background: var(--panel); }
.tool-row { display:flex; gap:8px; margin-top:9px; }
.tool-row .ghost { flex:1; border-radius: 999px; }
.side-list { flex:1; overflow-y:auto; padding: 6px 8px; }
.logout { margin: 10px 12px 12px; border-radius: 999px; }
.main { flex:1; display:flex; flex-direction:column; min-width:0; min-height:0; background: var(--bg); }
.profile-card {
  width: 284px; flex:none; background: var(--panel); border-left:1px solid var(--border);
  overflow-y:auto; padding: 20px 18px;
}

/* ---------- 列表 ---------- */
.list-item {
  display:flex; gap:11px; align-items:center; padding: 9px 10px;
  border-radius: var(--r-l); cursor:pointer; position:relative;
  transition: background .15s;
}
.list-item:hover { background: var(--panel2); }
.list-item.active { background: var(--panel2); }
.list-item .grow { flex:1; min-width:0; }
.list-item .name { font-weight:600; font-size:14px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.list-item .preview { font-size:12px; color: var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.preview { color: var(--muted); font-size:12.5px; }
.list-item .time { font-size:11px; color: var(--muted); align-self:flex-start; padding-top:2px; }
.list-item > .badge { position:absolute; right:10px; bottom:10px; }
.dot { width:8px; height:8px; border-radius:50%; background: var(--panel3); flex:none; }
.dot.on { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.group-head {
  font-size:12px; font-weight:600; color: var(--muted); letter-spacing:.4px;
  padding: 14px 10px 5px; display:flex; justify-content:space-between; align-items:center;
}
.pin-mark { color: var(--accent); font-size:11px; font-weight:500; }

/* ---------- 聊天 ---------- */
.page { flex:1; display:flex; flex-direction:column; min-height:0; animation: fadeSlide .22s ease both; }
.scroll-page { overflow-y:auto; padding: 22px; display:block; }
.empty-tip { margin:auto; color: var(--muted); font-size:14px; text-align:center; padding: 30px; }
.chat-head {
  display:flex; justify-content:space-between; align-items:center; gap:10px;
  padding: 0 16px; min-height: var(--header-h);
  border-bottom:1px solid var(--border); background: var(--panel);
}
.chat-title { font-weight:600; font-size:15.5px; }
.chat-sub { font-size:12px; color: var(--accent); min-height:15px; }
.chat-head-btns { display:flex; gap:7px; }
.msg-list {
  flex:1; overflow-y:auto; padding: 18px 20px 8px;
  display:flex; flex-direction:column; gap:14px;
  background-size: cover; background-position: center;
}
.msg-row { display:flex; gap:9px; max-width: min(76%, 640px); animation: bubbleIn .26s cubic-bezier(.22,1,.36,1) both; }
.msg-row.me { align-self:flex-end; flex-direction:row-reverse; }
.msg-row .avatar { width:34px; height:34px; border-radius: 10px; }
.bubble-wrap { display:flex; flex-direction:column; min-width:0; }
.msg-row.me .bubble-wrap { align-items:flex-end; }
.sender-name { font-size:11.5px; color: var(--muted); margin-bottom:3px; }
.bubble {
  background: var(--bubble-other); border:1px solid var(--border);
  padding: 8px 13px; border-radius: 4px 16px 16px 16px;
  font-size:14.5px; line-height:1.6; word-break:break-word; box-shadow: var(--sh-1);
}
.msg-row.me .bubble { background: var(--bubble-me); color: var(--bubble-me-text); border-color: transparent; border-radius: 16px 4px 16px 16px; }
.bubble img.chat-img { max-width:240px; max-height:240px; border-radius: 10px; display:block; cursor:zoom-in; }
.bubble video { max-width:260px; border-radius:10px; display:block; }
.bubble .file-link { color: var(--link); text-decoration:none; font-weight:600; }
.quote-box {
  font-size:12px; color: var(--muted); background: rgba(127,127,127,.10);
  border-left:3px solid var(--accent); padding:5px 8px; border-radius:6px; margin-bottom:6px;
}
.msg-meta { font-size:11px; color: var(--muted); margin-top:3px; display:flex; gap:8px; }
.msg-actions { display:none; gap:5px; margin-top:3px; }
.msg-row:hover .msg-actions { display:flex; }
.msg-actions button {
  font-size:11px; border:1px solid var(--border); background: var(--panel);
  border-radius:7px; padding:2px 8px; color: var(--muted);
}
.msg-actions button:hover { color: var(--text); border-color: var(--border2); }
.system-line {
  align-self:center; font-size:12px; color: var(--muted);
  background: var(--panel2); padding:3px 12px; border-radius:999px;
  animation: bubbleIn .26s ease both;
}
.mention-me .bubble { outline:2px solid var(--accent); outline-offset:1px; }
.typing-tip { padding:4px 20px; font-size:12px; color: var(--muted); }
.quote-bar {
  display:flex; justify-content:space-between; align-items:center;
  padding:7px 16px; background: var(--panel2); font-size:12.5px; color: var(--text2);
}
.quote-bar button { background:none; border:none; color: var(--muted); }
.composer {
  border-top:1px solid var(--border); background: var(--panel);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  display:flex; gap:10px; align-items:flex-end; position:relative;
}
.composer-tools { display:flex; gap:1px; padding-bottom:2px; }
.composer-tools button, .composer-tools label {
  background:none; border:none; font-size:19px; cursor:pointer;
  padding:5px; border-radius: var(--r-s); line-height:1;
}
.composer-tools button:hover, .composer-tools label:hover { background: var(--panel2); }
.composer textarea { flex:1; resize:none; border-radius: var(--r-l); background: var(--panel2); border-color: transparent; padding: 10px 14px; max-height: 110px; }
.composer textarea:focus { background: var(--panel); }
.send { padding: 10px 22px; border-radius: var(--r-l); }
.emoji-panel {
  position:absolute; bottom:76px; left:10px; right:10px; z-index:6;
  max-width:520px; max-height:46vh; display:flex; flex-direction:column;
  background: var(--glass-bg); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border:1px solid var(--border); border-radius:20px; box-shadow: var(--sh-2);
  overflow:hidden; animation: stkUp .28s cubic-bezier(.22,.9,.3,1) both;
}
@keyframes stkUp { from { transform: translateY(26px); opacity:0; } to { transform:none; opacity:1; } }
.stk-search { padding:10px 12px 4px; }
.stk-search input { border-radius:999px; background: var(--panel2); }
.stk-body { overflow-y:auto; padding:8px 12px 12px; scroll-behavior:smooth; }
.stk-grid-emoji { display:grid; grid-template-columns:repeat(8, 1fr); gap:2px; }
.stk-grid-emoji button { font-size:23px; background:none; border:none; padding:5px 0; border-radius:10px; transition:transform .12s, background .12s; }
.stk-grid-emoji button:hover { background: var(--panel2); transform:scale(1.18); }
.stk-grid-pack { display:grid; grid-template-columns:repeat(4, 1fr); gap:8px; }
.stk-tile {
  aspect-ratio:1; border-radius:14px; background: var(--panel2); overflow:hidden; cursor:pointer;
  display:flex; align-items:center; justify-content:center; transition:transform .15s;
}
.stk-tile:hover { transform:scale(1.05); }
.stk-tile img { width:100%; height:100%; object-fit:cover; }
.stk-tile.add { border:1.6px dashed var(--muted); background:none; font-size:30px; color:var(--muted); }
.stk-tabs { display:flex; gap:4px; padding:8px 12px; border-top:1px solid var(--border); background: var(--panel); }
.stk-tabs button { font-size:19px; padding:6px 11px; border-radius:11px; background:none; border:none; }
.stk-tabs button.active { background: var(--panel2); box-shadow: inset 0 0 0 1px var(--border); }
.stk-kao button { font-size:14.5px; padding:8px 4px; }

/* ---------- 动态 ---------- */
.publish-box { background: var(--panel); border:1px solid var(--border); border-radius: var(--r-xl); padding:16px; margin-bottom:16px; box-shadow: var(--sh-1); }
.publish-box textarea { width:100%; resize:vertical; border:none; background: var(--panel2); border-radius: var(--r-l); }
.publish-box textarea:focus { box-shadow:none; border:none; }
.publish-row { display:flex; gap:8px; margin-top:11px; align-items:center; }
.publish-row .primary { margin-left:auto; }
.media-preview { display:flex; gap:8px; margin-top:9px; flex-wrap:wrap; }
.media-preview img { width:74px; height:74px; object-fit:cover; border-radius: var(--r-m); }
.moment { background: var(--panel); border:1px solid var(--border); border-radius: var(--r-xl); padding:17px; margin-bottom:14px; box-shadow: var(--sh-1); }
.moment-head { display:flex; gap:10px; align-items:center; }
.moment-body { margin:9px 0; font-size:14.5px; line-height:1.7; white-space:pre-wrap; word-break:break-word; }
.moment-imgs { display:flex; gap:6px; flex-wrap:wrap; }
.moment-imgs img { width:31%; aspect-ratio:1; object-fit:cover; border-radius: var(--r-m); cursor:zoom-in; }
.moment video { max-width:100%; border-radius: var(--r-m); }
.moment-actions { display:flex; gap:16px; margin-top:11px; font-size:13px; border-top:1px solid var(--border); padding-top:10px; }
.moment-actions button { background:none; border:none; color: var(--muted); font-size:13px; }
.moment-actions button:hover { color: var(--accent); }
.comment-line { font-size:13.5px; padding:6px 0; border-top:1px dashed var(--border); }
.comment-input-row { display:flex; gap:8px; margin-top:9px; }
.comment-input-row input { flex:1; border-radius: 999px; }

/* ---------- 发现 ---------- */
.disc-head { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:16px; flex-wrap:wrap; }
/* (22) 分类条防竖字：旧版 6 个 tab 挤在一个胶囊里、按钮无 nowrap，窄屏被压成逐字竖排。
   改横向可滚 + 按钮 flex:none + nowrap，永远横排。 */
.disc-tabs { display:flex; gap:4px; background: var(--panel2); padding:3px; border-radius:999px; flex:1 1 auto; min-width:0; overflow-x:auto; scrollbar-width:none; -webkit-overflow-scrolling:touch; }
.disc-tabs::-webkit-scrollbar { display:none; }
.tab-btn { border:none; background:transparent; padding:7px 16px; border-radius:999px; font-size:14px; font-weight:600; color: var(--text2); flex:0 0 auto; white-space:nowrap; }
.tab-btn.active { background: var(--panel); color: var(--text); box-shadow: var(--sh-1); }
.disc-search input { border-radius:999px; min-width:220px; background: var(--panel2); border-color: transparent; }
.note-grid { columns:2; column-gap:14px; }
@media (min-width: 1150px) { .note-grid { columns:3; } }
.note-card {
  break-inside:avoid; background: var(--panel); border:1px solid var(--border);
  border-radius: var(--r-xl); overflow:hidden; margin-bottom:14px; cursor:pointer;
  box-shadow: var(--sh-1); transition: transform .18s ease, box-shadow .18s ease;
}
.note-card:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.note-card .cover { width:100%; display:block; background: var(--panel2); }
.note-card .n-body { padding:11px 13px 13px; }
.note-card .n-title { font-weight:600; font-size:14.5px; line-height:1.5; }
.note-card .n-text { font-size:13px; color: var(--muted); line-height:1.55; margin-top:3px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.note-card .n-tags { margin-top:7px; display:flex; gap:5px; flex-wrap:wrap; }
.note-card .n-tags span { font-size:11.5px; color: var(--link); background: var(--panel2); padding:2px 8px; border-radius:999px; }
/* (22) 卡片计数对齐：整行 nowrap，作者名可省略、计数永不换行掉到第二行 */
.note-card .n-foot { display:flex; align-items:center; gap:7px; margin-top:10px; font-size:12.5px; color: var(--muted); flex-wrap:nowrap; min-width:0; }
.note-card .n-foot img { width:22px; height:22px; border-radius:50%; object-fit:cover; flex:none; }
.note-card .n-foot > span:first-of-type { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width:0; }
.note-card .n-foot .like { margin-left:auto; display:inline-flex; align-items:center; gap:3px; white-space:nowrap; flex:none; }
.note-detail-imgs img { width:100%; border-radius: var(--r-l); margin-bottom:8px; display:block; }

/* ---------- 相册 ---------- */
.page-head { display:flex; align-items:center; gap:12px; margin-bottom:14px; }
.page-head h2 { font-size:19px; font-weight:700; }
.sec-title { margin:18px 0 10px; font-size:14px; font-weight:600; color: var(--text2); }
.album-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(132px, 1fr)); gap:12px; }
.album-card {
  background: var(--panel); border:1px solid var(--border); border-radius: var(--r-l);
  overflow:hidden; cursor:pointer; box-shadow: var(--sh-1); transition: transform .18s, box-shadow .18s;
}
.album-card:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.album-card img { width:100%; height:96px; object-fit:cover; background: var(--panel2); display:block; }
.album-card .a-info { padding:9px 11px; font-size:13px; }
.photo-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(140px, 1fr)); gap:10px; }
.photo-card img { width:100%; aspect-ratio:1; object-fit:cover; border-radius: var(--r-m); cursor:zoom-in; display:block; }
.photo-card .p-bar { display:flex; justify-content:space-between; font-size:12px; color: var(--muted); padding:4px 2px; }
.photo-card button { background:none; border:none; color: var(--muted); }

/* ---------- 打卡 ---------- */
.checkin-card { background: var(--panel); border:1px solid var(--border); border-radius: var(--r-xl); padding:24px; text-align:center; box-shadow: var(--sh-1); }
.checkin-big { font-size:19px; font-weight:700; margin-bottom:8px; }
#checkinStats { color: var(--muted); font-size:14px; margin-bottom:13px; }
.checkin-card input { width:min(100%, 340px); margin-bottom:11px; }
.calendar { display:grid; grid-template-columns:repeat(7, 1fr); gap:6px; }
.calendar .day { background: var(--panel); border:1px solid var(--border); border-radius: var(--r-m); padding:9px 0; text-align:center; font-size:13px; color: var(--text2); }
.calendar .day.done { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight:700; }
.rank-row { display:flex; align-items:center; gap:10px; background: var(--panel); border:1px solid var(--border); border-radius: var(--r-l); padding:9px 13px; margin-bottom:8px; font-size:14px; }

/* ---------- 收藏 / 设置 / 资料卡 ---------- */
.fav-card { background: var(--panel); border:1px solid var(--border); border-radius: var(--r-l); padding:13px 15px; margin-bottom:10px; box-shadow: var(--sh-1); }
.form { max-width:520px; }
.form label { display:block; font-size:13px; font-weight:500; color: var(--text2); margin:15px 0 6px; }
.form input, .form select { width:100%; }
.form .row { display:flex; gap:10px; align-items:center; }
.form .row input, .form .row select { flex:1; }
.form .primary, .form > .ghost { margin-top:16px; }
.form hr { border:none; border-top:1px solid var(--border); margin:22px 0 4px; }
.avatar-row { display:flex; align-items:center; gap:14px; }
.profile-card .p-head { text-align:center; padding-bottom:16px; border-bottom:1px solid var(--border); }
.profile-card .p-head img { width:76px; height:76px; border-radius: var(--r-xl); }
.profile-card .p-name { font-size:17px; font-weight:700; margin-top:9px; }
.profile-card .p-line { font-size:13px; color: var(--muted); margin-top:5px; word-break:break-word; line-height:1.6; }
.profile-card .p-btns { display:flex; flex-direction:column; gap:8px; margin-top:15px; }
.board-item { border-top:1px dashed var(--border); padding:9px 0; font-size:13.5px; }
.board-item .b-meta { color: var(--muted); font-size:12px; margin-top:2px; }
/* 留言板 Hello Kitty 风（全部样式挂在 .hk-board 前缀下隔离，不污染全站主题变量） */
.hk-board { background:linear-gradient(180deg,#fff5f8,#fffdfd); border:1.5px solid #ffd3e2; border-radius:18px; padding:12px 14px; margin-top:14px; color:#5b4350; }
.hk-board .hk-board-title { color:#e75480; margin-top:2px; }
.hk-board .hk-board-title::before { content:"🎀 "; }
.hk-board .hk-board-title::after { content:" 🎀"; font-size:12px; }
.hk-board .hk-item { background:#fff; border:1.5px solid #ffe0ec; border-radius:14px; padding:9px 11px; margin:8px 0; box-shadow:0 2px 6px rgba(255,105,160,.08); }
.hk-board .hk-item b { color:#d6336c; }
.hk-board .hk-item .b-meta { color:#c08ba4; }
.hk-board .hk-item .b-meta a { color:#e75480; }
.hk-board .hk-board-input input { border:1.5px solid #ffc2d6; border-radius:999px; background:#fff8fb; color:#5b4350; }
.hk-board .hk-board-input input:focus { border-color:#ff8fb8; outline:none; box-shadow:0 0 0 3px rgba(255,143,184,.25); }
.hk-board .hk-board-count { text-align:right; font-size:11.5px; color:#e79bbb; margin-top:2px; }
.hk-board .hk-empty { text-align:center; color:#e79bbb; padding:16px 0 10px; font-size:13.5px; }
.hk-board .hk-like { text-decoration:none; }
.hk-board .hk-heart { display:inline-block; }
.hk-board .hk-like.liked .hk-heart { animation:hkPop .38s ease; }
@keyframes hkPop { 0% { transform:scale(1); } 40% { transform:scale(1.45) rotate(-8deg); } 100% { transform:scale(1); } }

/* ---------- 弹窗 / Toast ---------- */
.modal-mask { position:fixed; inset:0; background: rgba(10,12,18,.48); backdrop-filter: blur(3px); display:flex; align-items:center; justify-content:center; z-index:50; padding:16px; }
.modal {
  background: var(--panel); color: var(--text); border-radius: 22px;
  width: min(94vw, 560px); max-height: 86vh; overflow-y:auto; padding: 24px;
  box-shadow: var(--sh-3); animation: popIn .24s cubic-bezier(.22,1,.36,1) both;
}
.modal h3 { font-size:16.5px; font-weight:700; margin-bottom:14px; }
.modal .m-row { display:flex; gap:10px; justify-content:flex-end; margin-top:18px; }
.toast {
  position:fixed; left:50%; bottom:36px; transform:translateX(-50%);
  background: #191c22; color:#fff; padding: 10px 20px; border-radius: 999px;
  font-size:13.5px; z-index:99; box-shadow: var(--sh-2); animation: popIn .2s ease both;
}
.search-result { max-height:300px; overflow-y:auto; }
.check-row { display:flex; align-items:center; gap:9px; padding:7px 0; font-size:14px; cursor:pointer; }
.check-row input { width:auto; }

/* ---------- 液态玻璃 ---------- */
html.glass .sidebar, html.glass .profile-card, html.glass .chat-head, html.glass .composer,
html.glass .publish-box, html.glass .moment, html.glass .album-card, html.glass .note-card,
html.glass .checkin-card, html.glass .fav-card, html.glass .modal, html.glass .auth-card {
  background: color-mix(in srgb, var(--panel) 66%, transparent);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
}
html.glass .app { background: linear-gradient(140deg, var(--bg), var(--panel2)); }
html.glass .bubble { backdrop-filter: blur(4px); }

/* ---------- Hello Kitty 主题点缀 ---------- */
html[data-theme="kitty"] .auth-card h1::after { content: " 🎀"; }
html[data-theme="kitty"] .me-name::after { content: " 🎀"; font-size:12px; }
html[data-theme="kitty"] .nav-btn.active { background: var(--accent); color:#fff; }
html[data-theme="kitty"] .tab-btn.active { color: var(--accent); }
html[data-theme="kitty"] .bubble { border-color: var(--border); }
html[data-theme="kitty"] .send, html[data-theme="kitty"] .checkin-card .primary { box-shadow: 0 6px 16px rgba(233,30,99,.30); }

/* ---------- 动效 ---------- */
@keyframes bubbleIn { from { opacity:0; transform: translateY(7px) scale(.98); } to { opacity:1; transform:none; } }
@keyframes popIn { from { opacity:0; transform: scale(.95) translateY(10px); } to { opacity:1; transform:none; } }
@keyframes fadeSlide { from { opacity:0; transform: translateY(5px); } to { opacity:1; transform:none; } }
@media (prefers-reduced-motion: reduce) { * { animation-duration:.01s !important; transition-duration:.01s !important; } }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) { .profile-card { display:none; } .sidebar { width:252px; } }
@media (max-width: 640px) {
  .app { flex-direction:column; }
  .sidebar { width:100%; height:44dvh; border-right:none; border-bottom:1px solid var(--border); }
  .main { height:56dvh; }
  .msg-row { max-width:88%; }
  .note-grid { columns:2; }
}

/* ---------- 本轮扩展样式 ---------- */
.pin-bar {
  display:flex; align-items:center; gap:6px; flex-wrap:wrap;
  padding:7px 16px; font-size:12.5px; color: var(--text2);
  background: var(--accent-soft); border-bottom:1px solid var(--border);
}
.pin-bar button { background:none; border:none; color: var(--accent); font-size:12px; }
.announce-banner {
  display:flex; align-items:center; gap:10px; padding:9px 16px;
  background: linear-gradient(90deg, var(--accent-soft), var(--panel2));
  border-bottom:1px solid var(--border); font-size:13.5px;
}
.announce-banner span { flex:1; }
.announce-banner button { background:none; border:none; color: var(--muted); }
.vip-badge {
  font-size:10.5px; font-weight:800; letter-spacing:.6px; color:#7a4d00;
  background: #f5d67b; padding:2px 7px; border-radius:6px; vertical-align:2px;
}
.level-badge {
  font-size:10.5px; font-weight:700; color: var(--link);
  background: var(--panel2); padding:2px 7px; border-radius:6px; vertical-align:2px;
}
.pattern-pad {
  display:grid; grid-template-columns:repeat(3, 56px); gap:20px;
  justify-content:center; padding:12px 0 4px; touch-action:none; user-select:none;
}
.p-dot {
  width:56px; height:56px; border-radius:50%;
  border:2px solid var(--border2); background: var(--panel);
  position:relative; transition: all .15s;
}
.p-dot::after {
  content:''; position:absolute; inset:20px; border-radius:50%; background: var(--panel3);
}
.p-dot.on { border-color: var(--accent); background: var(--accent-soft); }
.p-dot.on::after { background: var(--accent); }
.poll-opt {
  display:flex; justify-content:space-between; gap:8px;
  border:1px solid var(--border); border-radius: var(--r-m);
  padding:8px 12px; margin:7px 0; cursor:pointer; font-size:13.5px;
  transition: border-color .15s, background .15s;
}
.poll-opt:hover { border-color: var(--accent); }
.poll-opt.mine { border-color: var(--accent); background: var(--accent-soft); font-weight:600; }
body.bubbles-square .bubble { border-radius: 6px !important; }
body.bubbles-soft .bubble { border: none !important; box-shadow: none !important; background: var(--panel2); }
body.bubbles-soft .msg-row.me .bubble { background: var(--bubble-me); }

/* ---------- 本轮扩展二样式 ---------- */
.quick-bar {
  display:flex; gap:6px; flex-wrap:wrap; align-items:center;
  padding:7px 14px; background: var(--panel); border-top:1px solid var(--border);
  font-size:12.5px; color: var(--text2);
}
.tag-strip { display:flex; gap:6px; flex-wrap:wrap; margin-bottom:14px; }
.accent-dot { width:26px; height:26px; border-radius:50%; border:2px solid var(--border); padding:0; }
body.density-compact .list-item { padding:5px 10px; }
body.density-compact .msg-list { gap:8px; }
body.density-compact .bubble { padding:6px 11px; }
.svip-badge {
  font-size:10.5px; font-weight:800; letter-spacing:.6px; color:#fff;
  background: linear-gradient(135deg, #eed688, #d4af37); color:#5a4303; padding:2px 8px; border-radius:6px; vertical-align:2px;
}

/* ---------- 模拟红包/转账卡片 + 钱包 ---------- */
.rp-card {
  display:flex; align-items:center; gap:11px; cursor:pointer; min-width:210px;
  background: linear-gradient(135deg, #f2541b, #e33e12); color:#fff;
  padding:13px 15px; border-radius:14px; box-shadow: 0 4px 14px rgba(227,62,18,.3);
}
.rp-card.transfer { background: linear-gradient(135deg, #f6a609, #ee7d06); box-shadow: 0 4px 14px rgba(238,125,6,.3); }
.rp-card.contact { background: var(--panel2); color: var(--text); box-shadow: var(--sh-1); }
.rp-coin { font-size:30px; }
.rp-bless { font-weight:700; font-size:15.5px; }
.rp-sub { font-size:12px; opacity:.85; margin-top:2px; }
.paypad { display:flex; gap:9px; justify-content:center; margin:16px 0; }
.paypad input {
  width:42px; height:52px; text-align:center; font-size:22px; border-radius:12px;
  border:1.6px solid var(--border); background: var(--panel2); color: var(--text);
}
.wallet-hero { text-align:center; padding:30px 16px 22px; }
.wallet-hero .coin { width:64px; height:64px; margin:0 auto 10px; border-radius:50%; background:#f7b731; color:#fff; font-size:34px; display:flex; align-items:center; justify-content:center; }
.wallet-hero .bal { font-size:42px; font-weight:800; letter-spacing:.5px; }
.preset-grid { display:grid; grid-template-columns:repeat(4, 1fr); gap:9px; margin:12px 0; }
.preset-grid button { padding:12px 0; font-size:16px; }
body.diy-square .avatar, body.diy-square .msg-av { border-radius:10px !important; }
body.diy-notime .msg-meta { display:none; }
body.diy-font-rounded .bubble, body.diy-font-rounded #msgInput { font-family:"Yuanti SC","PingFang SC Rounded",ui-rounded,system-ui,sans-serif; }
body.diy-font-mono .bubble { font-family:ui-monospace,Menlo,Consolas,monospace; }

/* ---------- 微信式底部 Tab + 发现页 ---------- */
.wx-tabs {
  position:fixed; left:0; right:0; bottom:0; z-index:60; display:flex;
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5);
  border-top:1px solid var(--border); padding:6px 8px calc(6px + env(safe-area-inset-bottom));
}
.wx-tabs button {
  flex:1; background:none; border:none; color:var(--muted); font-size:11px;
  display:flex; flex-direction:column; align-items:center; gap:2px; padding:5px 0; position:relative;
}
.wx-tabs button span { font-size:21px; line-height:1.1; }
.wx-tabs button.active { color: var(--accent); }
.wx-badge {
  position:absolute; top:0; left:calc(50% + 2px); min-width:17px; height:17px; padding:0 4px;
  border-radius:9px; background: var(--badge); color:#fff; font-size:10.5px; font-style:normal;
  display:flex; align-items:center; justify-content:center;
}
body.has-wx-tabs { padding-bottom:64px; }
body.has-wx-tabs .wx-tabs { display:flex; }
.wx-entries { display:flex; flex-direction:column; gap:10px; }
.wx-entry {
  display:flex; align-items:center; gap:13px; background:var(--panel); border:1px solid var(--border);
  border-radius:16px; padding:16px; font-size:15.5px; cursor:pointer; box-shadow: var(--sh-1);
  transition: transform .15s, box-shadow .15s;
}
.wx-entry:hover { transform: translateY(-1px); }
.wx-entry span { font-size:21px; }
.wx-entry i { margin-left:auto; color:var(--muted); font-style:normal; font-size:19px; }
.az-head { position:sticky; top:0; background:var(--panel2); padding:4px 12px; font-size:12px; color:var(--muted); font-weight:700; z-index:2; }
.az-rail { position:absolute; right:4px; top:120px; display:flex; flex-direction:column; gap:1px; z-index:5; }
.az-rail button { background:none; border:none; font-size:10.5px; color:var(--muted); padding:1.5px 4px; }
/* ---------- 动画风格（旧规则已废弃：模式定义残缺是「切换没反应」的根因之一，新系统在文件末尾） ---------- */
@media (max-width: 700px) {
  .wx-tabs { display:flex; }
  body { padding-bottom:64px; }
}

.rp-card.gift { background: linear-gradient(135deg, #2e3238, #191b1f); border: 1px solid rgba(212,175,55,.4); box-shadow: 0 4px 14px rgba(20,22,28,.3); }
/* 成长等级图标 */
.g-ico { display:inline-flex; align-items:center; justify-content:center; width:19px; height:19px; border-radius:6px; font-size:12.5px; margin-right:2.5px; vertical-align:-4px; }
.g-star { color:#b8860b; }
.g-moon { color:#a67c00; }
.g-sun { color:#c2700a; }
.g-crown { color:#b8860b; }
.g-kitty { color:#d6336c; }
/* 商城 */
.shop-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(150px, 1fr)); gap:11px; }
.shop-card { background:var(--panel); border:1px solid var(--border); border-radius:16px; padding:13px; box-shadow:var(--sh-1); }
.shop-card .ic { font-size:30px; }
.shop-card .nm { font-weight:700; font-size:13.5px; margin:5px 0 3px; }
.shop-card .ds { font-size:11.5px; color:var(--muted); min-height:30px; line-height:1.5; }
.shop-card .pr { color:var(--accent); font-weight:800; margin:6px 0; }
.rar-稀有 { color:#38bdf8; } .rar-史诗 { color:#a78bfa; } .rar-传说 { color:#f59e0b; } .rar-典藏 { color:#f43f5e; }
.plan-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(104px, 1fr)); gap:9px; margin:10px 0; }
.plan-cell { border:1.6px solid var(--border); border-radius:14px; padding:11px 8px; text-align:center; cursor:pointer; background:var(--panel2); }
.plan-cell.sel { border-color:var(--accent); background: var(--accent-soft); }
.plan-cell .pm { font-size:12px; color:var(--muted); }
.plan-cell .pp { font-size:17px; font-weight:800; color:var(--accent); }

/* 认证徽章 */
.vbadge { display:inline-flex; align-items:center; justify-content:center; width:16.5px; height:16.5px; border-radius:50%; font-size:10px; color:#fff; margin-left:3.5px; vertical-align:-2.5px; }
.vbadge.blue { background:linear-gradient(135deg,#38bdf8,#2563eb); box-shadow:0 1px 5px rgba(37,99,235,.5); }
.vbadge.gold { background:linear-gradient(135deg,#fbbf24,#d97706); box-shadow:0 1px 5px rgba(217,119,6,.5); }
/* 竖屏视频流 */
.video-feed { display:flex; flex-direction:column; gap:15px; }
.vf-card { position:relative; border-radius:18px; overflow:hidden; background:#000; box-shadow:var(--sh-2); }
.vf-card video { width:100%; max-height:66vh; display:block; }
.vf-meta { position:absolute; left:0; right:0; bottom:0; padding:30px 14px 12px; color:#fff; background:linear-gradient(transparent, rgba(0,0,0,.62)); }
.heart-burst { position:absolute; font-size:52px; pointer-events:none; animation:burst .7s ease-out forwards; z-index:5; }
@keyframes burst { 0% { transform:scale(.3); opacity:0; } 30% { opacity:1; } 100% { transform:scale(1.5) translateY(-32px); opacity:0; } }
/* 双列瀑布流 */
.discover-grid2 { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.discover-grid2 .moment { margin-bottom:0; }
.hot-list { background:var(--panel); border-radius:16px; padding:13px 15px; box-shadow:var(--sh-1); margin-bottom:13px; }
.hot-list .hot-row { display:flex; gap:9px; padding:6.5px 0; cursor:pointer; align-items:center; }
.hot-rank { font-weight:900; color:#f43f5e; width:19px; text-align:center; }

/* 置顶公告：液态玻璃卡 */
.glass-ann { position:fixed; top:16px; left:50%; transform:translateX(-50%); z-index:200; width:min(430px, 92vw);
  background:linear-gradient(150deg, rgba(255,255,255,.66), rgba(255,255,255,.34));
  -webkit-backdrop-filter:blur(var(--glass-blur)) saturate(1.7); backdrop-filter:blur(var(--glass-blur)) saturate(1.7);
  border:1px solid rgba(255,255,255,.75); border-radius:24px; box-shadow:0 18px 50px rgba(31,38,135,.28);
  padding:16px 18px; color:#1c2333; animation:glassIn .45s cubic-bezier(.2,.9,.3,1.2); }
html[data-theme="dark"] .glass-ann { background:linear-gradient(150deg, rgba(40,44,66,.72), rgba(24,26,40,.55)); color:#eef1ff; border-color:rgba(255,255,255,.22); }
@keyframes glassIn { from { opacity:0; transform:translate(-50%,-16px) scale(.96); } to { opacity:1; transform:translate(-50%,0) scale(1); } }
.glass-ann img { width:100%; border-radius:15px; margin-bottom:10px; max-height:210px; object-fit:cover; }
.glass-ann .ga-close { position:absolute; top:9px; right:11px; width:27px; height:27px; border-radius:50%; border:none; cursor:pointer;
  background:rgba(120,130,160,.28); color:inherit; font-size:14px; line-height:1; display:flex; align-items:center; justify-content:center; }
.glass-ann .ga-close:hover { background:rgba(244,63,94,.75); color:#fff; }
.glass-ann .ga-title { font-weight:800; font-size:15.5px; margin-bottom:5px; }
.glass-ann .ga-body { font-size:14px; line-height:1.65; white-space:pre-wrap; }
/* SVIP/VIP 字体 */
body.diy-font-kai { --font: "KaiTi", "STKaiti", serif; font-family:"KaiTi","STKaiti",serif; }
body.diy-font-song { font-family:"Songti SC","SimSun",serif; }
body.diy-font-round2 { font-family:"Yuanti SC","PingFang SC",sans-serif; }
body.diy-font-hand { font-family:"Bradley Hand","Comic Sans MS",cursive; }

/* 微信式语音条 */
.voice-bubble { display:flex; align-items:center; gap:7px; padding:8px 12px; border-radius:13px; background:var(--panel2); cursor:pointer; position:relative; min-width:74px; }
.voice-bubble.mine { background:linear-gradient(135deg, #95ec69, #7ed957); color:#12340a; }
.voice-bubble .v-bars { display:flex; gap:2px; align-items:center; flex:1; }
.voice-bubble .v-bars i { width:3px; border-radius:2px; background:currentColor; opacity:.55; height:8px; }
.voice-bubble .v-bars i:nth-child(3n) { height:14px; } .voice-bubble .v-bars i:nth-child(4n) { height:18px; } .voice-bubble .v-bars i:nth-child(5n) { height:11px; }
.voice-bubble.playing .v-bars i { animation:vwave .7s ease-in-out infinite alternate; }
.voice-bubble.playing .v-bars i:nth-child(2n) { animation-delay:.15s; } .voice-bubble.playing .v-bars i:nth-child(3n) { animation-delay:.3s; }
@keyframes vwave { from { transform:scaleY(.5); } to { transform:scaleY(1.25); } }
.voice-bubble .v-dot { position:absolute; top:-3.5px; right:-3.5px; width:10px; height:10px; border-radius:50%; background:#f43f5e; border:1.6px solid var(--panel); }
.v-text { font-size:12px; color:var(--muted); margin-top:4px; max-width:230px; }
.v-text a { color:var(--accent2); }
/* 按住说话录音条 */
.voice-rec-bar { position:fixed; left:50%; bottom:118px; transform:translateX(-50%); z-index:190; width:min(430px, 92vw);
  background:linear-gradient(150deg, rgba(30,34,52,.88), rgba(16,18,30,.82)); color:#fff; border-radius:22px; padding:16px 18px;
  -webkit-backdrop-filter:blur(16px); backdrop-filter:blur(16px); box-shadow:0 16px 44px rgba(0,0,0,.4); text-align:center; }
.voice-rec-bar.cancel { background:linear-gradient(150deg, rgba(190,30,60,.9), rgba(140,15,45,.88)); }
.voice-rec-bar canvas { width:100%; height:44px; display:block; }

/* ===== 响应式与流畅度（手机 / 百度浏览器轻量模式） ===== */
* { -webkit-tap-highlight-color: transparent; }
button, .list-item, .tab-btn { touch-action: manipulation; }
img { -webkit-user-drag: none; }
@media (max-width: 700px) {
  /* 手机端砍掉重型模糊与大阴影：这是百度浏览器/老内核卡顿的主因 */
  .glass, .modal-card, .glass-ann, .voice-rec-bar, .wx-tabs { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .glass-ann { background: rgba(255,255,255,.96); }
  html[data-theme="dark"] .glass-ann { background: rgba(30,32,48,.97); }
  .moment, .shop-card, .note-card { box-shadow: 0 1px 4px rgba(15,23,42,.08) !important; }
  .shop-grid { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); }
}
/* 轻量模式（百度浏览器/百度App/老内核自动启用）：关动画、关模糊、纯色面 */
/* lite（低端/老内核自动轻量）只压模糊与阴影，不再压扁动画时长——那会把用户手动选的动画模式全部吃掉（根因之二）；
   且用户显式选过动画模式（body.anim-user）时本条整体不生效 */
body.lite:not(.anim-user) *, body.lite:not(.anim-user) *::before, body.lite:not(.anim-user) *::after { animation-duration: .12s !important; transition-duration: .05s !important; }
body.lite .glass, body.lite .modal-card, body.lite .glass-ann, body.lite .voice-rec-bar, body.lite .wx-tabs,
body.lite .sticker-sheet { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
body.lite .moment, body.lite .shop-card, body.lite .note-card, body.lite .hot-list { box-shadow: none !important; border: 1px solid var(--border); }

/* 时光胶囊 / 故事条 */
.bubble.capsule-b { background: linear-gradient(135deg, #ede9fe, #fce7f3); border: 1.5px dashed #a78bfa; }
.stories-bar { gap: 12px; padding: 10px 4px; overflow-x: auto; }
.story-cell { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11.5px; color: var(--muted); flex: none; }
.story-cell img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2.5px solid #f472b6; padding: 2px; background: var(--panel); }

/* ===== 续火花徽章 + 关系标签 + 礼物特效层 ===== */
.spark-badge { display: inline-flex; align-items: center; gap: 4px; margin-left: 10px; padding: 3px 10px; border-radius: 999px;
  background: linear-gradient(135deg, #fff7e6, #ffe9ec); border: 1px solid #ffd9a0; font-size: 12.5px; color: #b45309; font-weight: 600; }
.spark-badge .flame { filter: grayscale(1); opacity: .45; }
.spark-badge .flame.on { filter: none; opacity: 1; animation: flamePulse 1.2s ease-in-out infinite alternate; }
@keyframes flamePulse { from { transform: scale(1); } to { transform: scale(1.25) rotate(-4deg); } }
.rel-tag { background: linear-gradient(135deg, #ff5e8a, #ff8fb2); color: #fff; padding: 1px 8px; border-radius: 999px; font-size: 11px; }
#fxLayer { position: fixed; inset: 0; z-index: 10000; background: rgba(10, 6, 20, .55); backdrop-filter: blur(2px); display: flex; align-items: center; justify-content: center; }
#fxLayer.fx-out { opacity: 0; transition: opacity .5s; }
#fxCanvas { position: absolute; inset: 0; }
.fx-card { position: relative; text-align: center; color: #fff; padding: 26px 34px; border-radius: 22px; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.35); box-shadow: 0 18px 50px rgba(0,0,0,.35); animation: fxPop .45s cubic-bezier(.2, 1.4, .4, 1); max-width: min(86vw, 430px); }
@keyframes fxPop { from { transform: scale(.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.fx-name { font-size: 23px; font-weight: 800; background: linear-gradient(90deg, #ffd93d, #ff5e8a, #c39bff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fx-bless { margin-top: 10px; font-size: 15px; line-height: 1.75; }
.fx-from { margin-top: 8px; font-size: 12.5px; opacity: .85; }
.fx-close { position: absolute; top: 14px; right: 16px; background: rgba(255,255,255,.18); color: #fff; border: none; width: 34px; height: 34px; border-radius: 50%; font-size: 15px; cursor: pointer; }
.fx-scene { font-weight: 700; margin: 14px 0 8px; }
.fx-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fx-item { border: 1px solid var(--border); border-radius: 14px; padding: 10px; background: var(--surface); }
.fx-item-name { font-weight: 700; font-size: 14px; }
.fx-item-bless { font-size: 12px; color: var(--muted); margin: 5px 0 8px; line-height: 1.55; min-height: 36px; }
.giftfx-card { background: linear-gradient(135deg, #fff0f5, #ffe9d6) !important; border: 1px solid #ffb3c9; }
/* 聊天界面流畅度：消息行内容可见性优化 + 滚动平滑 */
.msg-list, #msgList { scroll-behavior: smooth; }
.moment-card { content-visibility: auto; contain-intrinsic-size: auto 220px; }

/* ---------- 登录页·简约高级感改版 ---------- */
.auth-wrap { padding:0; background: var(--bg); }
.auth-shell { display:flex; width:100%; min-height:100vh; min-height:100dvh; }
.auth-photo { flex:1.15; position:relative; overflow:hidden; display:none; }
@media (min-width: 760px) { .auth-photo { display:block; } }
.auth-photo img { width:100%; height:100%; object-fit:cover; display:block; filter:saturate(.82) contrast(1.02); }
.auth-photo-caption {
  position:absolute; left:44px; bottom:44px; color:#fff; font-size:26px; font-weight:300;
  letter-spacing:6px; line-height:1.7; text-shadow:0 2px 24px rgba(0,0,0,.45);
}
.auth-shell .auth-card {
  flex:1; border:none; border-radius:0; box-shadow:none; background: var(--panel);
  display:flex; flex-direction:column; justify-content:center; text-align:left;
  width:auto; max-width:none; padding:48px clamp(28px, 6vw, 84px); animation:none;
}
.auth-brand { font-size:34px; font-weight:200; letter-spacing:14px; color: var(--text); }
.auth-shell .tagline { letter-spacing:2px; font-size:11px; text-transform:uppercase; margin:10px 0 40px; }
.auth-shell .tabs { background:transparent; border-bottom:1px solid var(--border); border-radius:0; padding:0; margin-bottom:30px; }
.auth-shell .tab { border-radius:0; padding:10px 4px; margin-right:26px; flex:none; font-size:15px; color: var(--muted); border-bottom:2px solid transparent; }
.auth-shell .tab.active { background:transparent; box-shadow:none; color: var(--text); border-bottom-color: var(--text); }
.auth-label { font-size:12px; letter-spacing:3px; color: var(--muted); margin:14px 0 6px; }
.auth-shell .auth-card input {
  border:none; border-bottom:1px solid var(--border); border-radius:0; background:transparent;
  padding:10px 2px; font-size:16px; margin-bottom:4px;
}
.auth-shell .auth-card input:focus { border-bottom-color: var(--text); outline:none; }
.pw-strength { font-size:12px; color: var(--muted); min-height:18px; margin-top:6px; letter-spacing:1px; }
.auth-shell .auth-card .primary {
  margin-top:30px; padding:14px; font-size:15px; letter-spacing:6px; border-radius:2px;
}
.auth-foot { margin-top:26px; font-size:12px; color: var(--muted); letter-spacing:1px; line-height:1.8; }
.interest-tag { display:inline-block; padding:2px 10px; border:1px solid var(--border); border-radius:999px; font-size:12px; margin:2px 2px 2px 0; color: var(--text2); }
.onboard-chips { display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 4px; }
.onboard-chips button { border:1px solid var(--border); background:transparent; border-radius:999px; padding:7px 16px; font-size:13px; color: var(--text2); }
.onboard-chips button.on { background: var(--text); color: var(--panel); border-color: var(--text); }

/* ---------- 关怀模式 / 通话层 ---------- */
body.care-mode { font-size: 19px; }
body.care-mode input, body.care-mode button, body.care-mode textarea, body.care-mode select { font-size: 17px; }
body.care-mode .bubble { font-size: 18px; }
#callLayer {
  position:fixed; inset:0; z-index:200; display:none; align-items:center; justify-content:center;
  background:rgba(10,10,12,.82); backdrop-filter: blur(6px);
}
.call-box { width:min(92vw, 420px); background:var(--panel); border-radius:20px; padding:22px; text-align:center; box-shadow:var(--sh-3); }
.call-name { font-size:17px; font-weight:600; margin-bottom:14px; }
.call-btns { display:flex; gap:12px; justify-content:center; margin-top:16px; }
.call-accept { background:#07c160; color:#fff; border:none; padding:12px 26px; border-radius:999px; font-size:15px; }
.call-hang { background:#e60012; color:#fff; border:none; padding:12px 26px; border-radius:999px; font-size:15px; }

/* ---------- 登录页 v3（圆润·白天·企鹅） ---------- */
#authView.auth-wrap {
  background: linear-gradient(180deg, #eaf6ff 0%, #f7fbff 55%, #ffffff 100%);
  display:flex; align-items:center; justify-content:center; padding:24px 16px; position:relative;
}
.auth-shell2 {
  width:min(92vw, 400px); background:#fff; border-radius:28px; padding:30px 28px 24px;
  box-shadow:0 18px 50px rgba(31, 96, 163, .14), 0 2px 8px rgba(31, 96, 163, .06); text-align:center;
  animation: authIn .45s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes authIn { from { opacity:0; transform: translateY(16px) scale(.98); } to { opacity:1; transform:none; } }
.auth-penguin { width:118px; height:118px; object-fit:cover; border-radius:50%; box-shadow:0 10px 24px rgba(0,0,0,.12); margin-top:-64px; border:5px solid #fff; background:#fff; }
.auth-title2 { font-size:25px; font-weight:700; color:#1a1a1a; margin-top:12px; letter-spacing:1px; }
.tabs-pill { display:flex; background:#f0f4f8; border-radius:999px; padding:4px; margin:16px 0 18px; }
.tabs-pill .tab { flex:1; border-radius:999px !important; padding:9px 0 !important; font-size:15px; }
.tabs-pill .tab.active { background:#fff; box-shadow:0 2px 8px rgba(0,0,0,.10); color:#0f7fd4; font-weight:600; }
.auth-field2 {
  display:flex; align-items:center; gap:10px; background:#f4f7fa; border:1.5px solid transparent;
  border-radius:16px; padding:0 16px; margin-bottom:12px; transition: all .18s;
}
.auth-field2:focus-within { background:#fff; border-color:#12a5f5; box-shadow:0 0 0 4px rgba(18,165,245,.12); }
.auth-field2 .auth-ico { font-size:16px; opacity:.55; }
.auth-field2 input { flex:1; border:none !important; background:transparent !important; padding:15px 0 !important; font-size:15.5px; outline:none; box-shadow:none !important; }
.auth-btn2 {
  width:100%; border:none; border-radius:16px !important; padding:15px 0 !important; font-size:17px !important; letter-spacing:6px;
  background:linear-gradient(180deg, #2db4f8, #0f8fe0) !important; color:#fff !important; font-weight:600;
  box-shadow:0 10px 22px rgba(15,143,224,.35); transition: transform .12s, box-shadow .12s;
}
.auth-btn2:active { transform: scale(.98); box-shadow:0 4px 12px rgba(15,143,224,.3); }
.lan-entry {
  position:absolute; top:16px; right:16px; border:none; cursor:pointer;
  background:linear-gradient(135deg, #12a5f5, #7b5cff); color:#fff; font-size:13.5px; font-weight:600;
  padding:9px 16px; border-radius:999px; box-shadow:0 8px 20px rgba(90,110,255,.35);
  animation: lanPulse 2.2s infinite;
}
@keyframes lanPulse { 0%,100% { box-shadow:0 8px 20px rgba(90,110,255,.35), 0 0 0 0 rgba(18,165,245,.45); } 50% { box-shadow:0 8px 20px rgba(90,110,255,.35), 0 0 0 9px rgba(18,165,245,0); } }
/* 局域网聊天层 */
#lanLayer { position:fixed; inset:0; z-index:180; display:none; flex-direction:column; background:linear-gradient(180deg,#eef7ff,#ffffff); }
#lanLayer.open { display:flex; }
.lan-head { display:flex; align-items:center; gap:10px; padding:14px 16px; background:#fff; box-shadow:0 2px 10px rgba(0,0,0,.06); }
.lan-msgs { flex:1; overflow-y:auto; padding:16px; display:flex; flex-direction:column; gap:10px; }
.lan-msg { max-width:76%; padding:10px 14px; border-radius:18px; background:#fff; box-shadow:0 2px 8px rgba(0,0,0,.06); align-self:flex-start; animation: authIn .25s; }
.lan-msg.mine { align-self:flex-end; background:linear-gradient(180deg,#2db4f8,#0f8fe0); color:#fff; }
.lan-msg .lan-name { font-size:11px; opacity:.65; margin-bottom:3px; }
.lan-bar { display:flex; gap:8px; padding:12px; background:#fff; box-shadow:0 -2px 10px rgba(0,0,0,.05); }
.lan-bar input { flex:1; border:1.5px solid #e3ebf2; border-radius:999px; padding:11px 16px; font-size:15px; outline:none; }
.lan-bar button { border:none; border-radius:999px; padding:0 18px; background:linear-gradient(180deg,#2db4f8,#0f8fe0); color:#fff; font-weight:600; }

/* ===== f22：向手机 QQ 靠拢的细节打磨 ===== */
.bubble { border-radius: 18px; }
.msg-row .bubble { border-radius: 18px 18px 18px 6px; }
.msg-row.me .bubble { border-radius: 18px 18px 6px 18px; }
.bubble img.chat-img { border-radius: 14px; }
.bubble video { border-radius: 14px; }
.msg-meta span:last-child { color: var(--accent); }
.chat-head { backdrop-filter: blur(10px); background: color-mix(in srgb, var(--panel) 88%, transparent); }
.msg-row .avatar { border-radius: 12px; }
.composer-tools button, .composer-tools label { transition: transform .12s ease, background .12s ease; border-radius: 10px; }
.composer-tools button:active, .composer-tools label:active { transform: scale(.9); }

/* ============================================================
   wx-clean：微信式干净简约改版层
   原则：浅灰底 + 白色分组块 + 发丝分割线 + 几乎无阴影/渐变；
   颜色全部走现有 CSS 变量，44 套主题仍可通过变量换色。
   ============================================================ */
:root { --header-bg: var(--panel2); --brand-blue: #0071e3; }

/* ---------- 通用 ---------- */
.avatar { border-radius: 9px; }
.avatar.big { border-radius: 12px; }
.wx-flex { flex: 1; }
.wx-arr { color: var(--muted); font-style: normal; font-size: 19px; line-height: 1; flex: none; }
.wx-ico {
  width: 30px; height: 30px; border-radius: 7px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px; background: color-mix(in srgb, var(--accent) 9%, var(--panel2)); color: var(--accent);
}
.mute-ico { position: absolute; right: 12px; bottom: 10px; font-size: 12px; color: var(--muted); filter: grayscale(1); opacity: .75; }

/* ---------- 顶栏 ---------- */
.wx-topbar {
  position: sticky; top: 0; z-index: 8;
  margin: -22px -22px 16px; padding: 12px 16px;
  background: var(--header-bg); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; min-height: 48px;
}
.wx-topbar-title {
  position: absolute; left: 0; right: 0; text-align: center;
  font-size: 17px; font-weight: 600; color: var(--text); pointer-events: none;
}
.wx-topbar-actions { margin-left: auto; display: flex; gap: 4px; position: relative; z-index: 1; }
.wx-topbar-actions button {
  background: none; border: none; font-size: 19px; line-height: 1;
  width: 34px; height: 34px; border-radius: 8px; color: var(--text);
  display: flex; align-items: center; justify-content: center;
}
.wx-topbar-actions button:hover { background: var(--panel3); }
.scroll-page > .page-head {
  position: sticky; top: 0; z-index: 8;
  margin: -22px -22px 16px; padding: 12px 16px;
  background: var(--header-bg); border-bottom: 1px solid var(--border); min-height: 48px;
}
.scroll-page > .page-head h2 { flex: 1; text-align: center; font-size: 17px; font-weight: 600; }

/* ---------- 侧栏 / 顶栏区 ---------- */
.me-bar { background: var(--header-bg); border-bottom: 1px solid var(--border); }
.nav-btn.active { background: color-mix(in srgb, var(--brand-blue) 12%, transparent); color: var(--brand-blue); }
.chat-head { background: var(--header-bg); -webkit-backdrop-filter: none; backdrop-filter: none; }

/* ---------- 列表（会话 / 好友）：微信式白底行 ---------- */
.side-list { padding: 0; }
.list-item { border-radius: 0; padding: 12px 14px; min-height: 68px; }
.list-item::after {
  content: ''; position: absolute; left: 65px; right: 0; bottom: 0;
  height: 1px; background: var(--border);
}
.list-item .name { font-size: 16.5px; font-weight: 500; }
.list-item .preview { font-size: 13px; }
.list-item .time { font-size: 12px; padding-top: 3px; }
.side-list .group-head {
  background: var(--bg); color: var(--muted); font-weight: 400; letter-spacing: 0;
  font-size: 13px; padding: 7px 14px; margin: 0;
}
.az-head { background: var(--bg); font-weight: 400; padding: 5px 14px; }
.az-rail button { color: var(--muted); font-weight: 500; }
.az-rail button:active { color: var(--brand-blue); }

/* ---------- 通讯录顶部入口行 ---------- */
.side-list .addfriend-big24 {
  background: var(--panel); color: var(--text); box-shadow: none;
  border-radius: 0; margin: 0; padding: 13px 14px; letter-spacing: 0;
  font-size: 15.5px; font-weight: 400; text-align: left;
  display: flex; align-items: center; gap: 12px; width: 100%;
}
.side-list .addfriend-big24::before {
  content: '＋'; width: 30px; height: 30px; border-radius: 7px; flex: none;
  background: #fa9d3b; color: #fff; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
}
.wx-centry-list { background: var(--panel); margin-bottom: 10px; }
.wx-centry {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px;
  font-size: 15.5px; cursor: pointer; position: relative; background: var(--panel);
}
.wx-centry::after { content: ''; position: absolute; left: 56px; right: 0; bottom: 0; height: 1px; background: var(--border); }
.wx-centry:last-child::after { display: none; }
.wx-centry i { margin-left: auto; color: var(--muted); font-style: normal; font-size: 19px; }
.wx-cico {
  width: 30px; height: 30px; border-radius: 7px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px; background: color-mix(in srgb, var(--accent) 9%, var(--panel2)); color: var(--accent);
}
.side-list .recent-chip24 img { border-radius: 9px; }

/* ---------- 底部 Tab ---------- */
.wx-tabs {
  background: var(--panel); -webkit-backdrop-filter: none; backdrop-filter: none;
  border-top: 1px solid var(--border); padding-top: 4px;
}
.wx-tabs button.active { color: var(--brand-blue); }

/* ---------- 发现页：微信式分组白行 ---------- */
.wx-group { background: var(--panel); margin: 0 -22px 12px; padding: 0 16px; }
.wx-group .wx-entry {
  border: none; border-radius: 0; box-shadow: none; background: transparent;
  padding: 13px 0; font-size: 15.5px; position: relative;
}
.wx-group .wx-entry::after { content: ''; position: absolute; left: 42px; right: 0; bottom: 0; height: 1px; background: var(--border); }
.wx-group .wx-entry:last-child::after { display: none; }
.wx-group .wx-entry:hover { transform: none; }
.wx-group .wx-entry span { font-size: 16px; }
#featureHub { background: var(--panel); margin: 0 -22px 12px; padding: 8px 16px 14px; }
#featureHub .page-head { margin-bottom: 6px; }
#featureHub button.ghost {
  border-radius: 12px !important; box-shadow: none !important;
  background: var(--panel) !important; border: 1px solid var(--border) !important;
}

/* ---------- 我的卡 ---------- */
.me-card {
  background: var(--panel); margin: 0 -22px 12px; padding: 20px 16px;
  display: flex; align-items: center; gap: 14px; cursor: pointer;
}
.me-card-avatar { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: var(--panel2); flex: none; }
.me-card-info { flex: 1; min-width: 0; }
.me-card-name { font-size: 20px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-card-id { font-size: 13px; color: var(--muted); margin-top: 3px; }
.me-capsules { display: flex; gap: 8px; margin-top: 9px; flex-wrap: wrap; }
.me-capsule {
  background: var(--panel2); color: var(--text2); border-radius: 999px;
  padding: 3px 11px; font-size: 12px; line-height: 1.5;
}
.me-card-qr { background: none; border: none; font-size: 20px; color: var(--text2); padding: 6px; flex: none; }

/* ---------- 设置页：微信式分组 ---------- */
.set-search { margin: 0 -22px 12px; padding: 0 16px; }
.set-search input {
  width: 100%; background: var(--panel2); border: none; border-radius: 10px;
  text-align: center; padding: 9px 12px; box-shadow: none;
}
.set-search input:focus { text-align: left; border: none; box-shadow: none; background: var(--panel2); }
.set-section { margin: 0 -22px 14px; }
.set-group-title { padding: 0 16px 7px; font-size: 13px; color: var(--muted); }
.set-group { background: var(--panel); padding: 2px 16px 8px; }
.set-sub { font-size: 13px; color: var(--muted); padding: 14px 0 2px; }
.wx-row {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 0; min-height: 48px; position: relative;
}
.wx-row::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--border); }
.set-group .wx-row:last-child::after, .set-group .set-line:last-child > .wx-row::after { display: none; }
.wx-row.col { flex-direction: column; align-items: stretch; gap: 8px; }
.wx-row-label { width: 96px; flex: none; font-size: 15px; color: var(--text); }
.wx-row.col .wx-row-label { width: auto; }
.wx-row-ctl {
  flex: 1; border: none !important; background: transparent !important;
  text-align: right; padding: 6px 0 !important; box-shadow: none !important; min-width: 0;
}
.wx-row-flex { display: flex; gap: 8px; width: 100%; }
.wx-row-flex input, .wx-row-flex select { flex: 1; min-width: 0; }
.wx-row-hint { font-size: 12px; color: var(--muted); }
.wx-row-hint-inline { font-size: 12.5px; color: var(--muted); }
.wx-qr-ico { font-size: 19px; color: var(--text2); }
button.wx-entry2 {
  width: 100%; background: none; border: none; text-align: left; font-family: inherit;
}
.wx-entry2 {
  display: flex; align-items: center; gap: 12px; padding: 13px 0;
  font-size: 15.5px; color: var(--text); cursor: pointer; position: relative;
}
.wx-entry2::after { content: ''; position: absolute; left: 42px; right: 0; bottom: 0; height: 1px; background: var(--border); }
.set-group .wx-entry2:last-child::after { display: none; }
.wx-entry2 .wx-arr { margin-left: auto; }
.wx-entry2:active { background: var(--panel2); }
.wx-center-row {
  display: block; width: auto; margin: 0 -22px 10px; padding: 14px 16px;
  background: var(--panel); border: none; text-align: center;
  font-size: 15.5px; color: var(--text); cursor: pointer; font-family: inherit;
}
.wx-center-row:active { background: var(--panel2); }
.set-foot-links { text-align: center; padding: 8px 0 30px; font-size: 12.5px; color: var(--link); }
.set-foot-links span { cursor: pointer; }
.set-foot-links i { font-style: normal; color: var(--muted); margin: 0 8px; }
#svipZone { background: var(--panel2); border-radius: 12px; padding: 6px 12px 10px; margin: 8px 0; }

/* ---------- 卡片扁平化 ---------- */
.publish-box, .moment, .note-card, .album-card, .fav-card, .checkin-card, .hot-list, .shop-card {
  box-shadow: none; border-radius: 12px;
}
.note-card:hover, .album-card:hover { transform: none; box-shadow: none; }

/* ---------- 钱包（支付）扁平化 ---------- */
.wallet-hero { background: var(--panel2); border-radius: 16px; padding: 26px 16px 20px; }
.wallet-hero .coin { background: var(--brand-blue); box-shadow: none; }
.wallet-hero .bal { font-size: 38px; }
.preset-grid button { box-shadow: none; border: 1px solid var(--border); background: var(--panel); border-radius: 12px; }

/* ---------- 登录页扁平化 ---------- */
.auth-btn2 { background: var(--brand-blue) !important; box-shadow: 0 6px 16px rgba(15,143,224,.25); }
.lan-entry { background: var(--brand-blue); }

/* ---------- 资料卡（右侧栏）微信化 ---------- */
.profile-card .p-head { text-align: left; }
.profile-card .p-head img { border-radius: 10px; }

/* ============================================================
   wx-mobile-first：微信式移动优先单列布局（最终覆盖层，2026-12-04）
   结构：底部 4 Tab（消息/通讯录/发现/我）+ 单列页面 + 全屏聊天窗。
   桌面打开时内容居中限宽 560px。颜色仍走主题变量，44 套主题不受影响。
   ============================================================ */

/* ---------- 外壳：单列居中 ---------- */
.app { flex-direction: row; justify-content: center; }
.sidebar { display: none !important; }
.app .main {
  flex: 0 1 560px; width: 100%; max-width: 560px; margin: 0 auto; height: auto;
  border-left: 1px solid var(--border); border-right: 1px solid var(--border);
  position: relative;
}
@media (max-width: 700px) { .app .main { border: none; } }

/* ---------- 资料卡：改为右侧浮层（原右栏） ---------- */
.profile-card {
  display: block; position: fixed; top: 0; right: 0; z-index: 90;
  width: min(360px, 92vw); height: 100dvh; max-height: none; flex: none;
  background: var(--panel); border-left: 1px solid var(--border);
  box-shadow: var(--sh-3); overflow-y: auto; padding: 22px 18px 44px;
}
.pc-close {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 32px; height: 32px; border-radius: 50%; border: none;
  background: var(--panel2); color: var(--text2); font-size: 14px; line-height: 1;
}

/* ---------- 滚动页：统一内边距与通栏分组 ---------- */
.scroll-page { padding: 0 16px 88px; }
.wx-topbar { margin: 0 -16px 14px; }
.scroll-page > .page-head { margin: 0 -16px 14px; }
.wx-group, #featureHub, .set-section, .set-search, .wx-center-row { margin-left: -16px; margin-right: -16px; }
.me-card { margin: 0 -16px 12px; }
.pg-back {
  background: none; border: none; font-size: 26px; line-height: 1;
  width: 44px; height: 44px; color: var(--text); position: relative; z-index: 1; flex: none;
  display: flex; align-items: center; justify-content: center; padding: 0;
}
/* round15：全站返回/关闭热区统一 ≥40px（视觉大小不变，只放大可点区域，防误触） */
.lz-back { min-width: 40px; min-height: 40px; }
.danger-row { color: var(--badge); }

/* ---------- 消息/通讯录：列表视图 ---------- */
#pageChats { padding: 0; }
#chatListView { display: flex; flex-direction: column; flex: 1; min-height: 0; }
#chatListView .wx-topbar { margin: 0; flex: none; }
#chatListView .side-tools { flex: none; background: var(--panel); }
#chatListView .side-list { flex: 1; overflow-y: auto; background: var(--panel); padding: 0; }
#chatEmpty { display: none !important; }
#pageChats:has(#chatPanel:not(.hidden)) #chatListView { display: none; }

/* ---------- 聊天窗：全屏页 ---------- */
#chatPanel { flex: 1; display: flex; flex-direction: column; min-height: 0; }
#chatPanel.hidden { display: none !important; }
.chat-head { justify-content: flex-start; padding: 0 12px; flex: none; }
.chat-back {
  background: none; border: none; font-size: 28px; line-height: 1;
  color: var(--text); padding: 6px 10px 6px 2px; flex: none;
}
.chat-head-main { flex: 1; min-width: 0; }
.chat-head-btns { flex: none; flex-wrap: wrap; justify-content: flex-end; }
.msg-list { padding: 14px 14px 8px; }
.msg-row { max-width: 82%; }

/* ---------- 输入栏：输入行 + ＋展开附件面板 ---------- */
.composer { display: block; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); }
.composer-main { display: flex; align-items: flex-end; gap: 6px; }
.composer-main #btnEmoji { background: none; border: none; font-size: 24px; padding: 7px 5px; line-height: 1; flex: none; }
.composer-main textarea { flex: 1; min-width: 0; }
#btnAttachToggle {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  border: 1.5px solid var(--border2); background: none; padding: 0;
  font-size: 20px; line-height: 1; color: var(--text2);
}
.composer-main .send { flex: none; padding: 9px 18px; }
.attach-panel { padding-top: 10px; }
.attach-panel .composer-tools {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; padding: 0;
}
.attach-panel .composer-tools button, .attach-panel .composer-tools label {
  display: flex; align-items: center; justify-content: center;
  font-size: 23px; padding: 12px 0; background: var(--panel2);
  border: none; border-radius: 12px; line-height: 1.2;
}

/* ---------- 底部 Tab：居中限宽，进聊天时收起 ---------- */
.wx-tabs {
  left: 50%; right: auto; transform: translateX(-50%);
  width: min(100%, 560px); transition: transform .25s ease;
}
body:has(#chatPanel:not(.hidden)) .wx-tabs { transform: translate(-50%, 115%); }
.wx-tabs button span { font-size: 22px; }

/* ---------- 内容防溢出 ---------- */
.scroll-page img, .scroll-page video { max-width: 100%; }
#pageStock #stockMain, #pageStock .board-item { overflow-x: auto; }
#pageStock table { display: block; overflow-x: auto; max-width: 100%; }
.disc-search { flex: 1; min-width: 150px; }
.disc-search input { min-width: 0; width: 100%; }
.note-grid { column-gap: 10px; }
.moment { padding: 14px; }
.publish-box { padding: 13px; }

/* ---------- 弹窗：手机端底部抽屉 ---------- */
@media (max-width: 700px) {
  .modal-mask { align-items: flex-end; padding: 0; }
  .modal {
    width: 100%; max-height: 88dvh; border-radius: 20px 20px 0 0;
    padding: 20px 18px calc(18px + env(safe-area-inset-bottom));
  }
  .msg-row { max-width: 86%; }
  .bubble img.chat-img { max-width: 200px; max-height: 200px; }
  .bubble video { max-width: 220px; }
}

/* ============================================================
   qq-style：QQ 风格再打磨（最终覆盖层，2026-12-04）
   语言：浅灰蓝底 + 白卡片圆角 + QQ 蓝点缀 + 黑粗标题，克制不花哨。
   默认主题变量在此改走 QQ 风；html[data-theme=...] 主题块特异性更高，
   44 套主题机制不受影响（用户切到其他主题时仍按主题自己的配色走）。
   ============================================================ */
:root {
  --bg: #f2f3f5; --panel2: #eef0f3; --panel3: #e1e5ea;
  --accent: #12b7f5; --accent-press: #0aa5e8; --accent-soft: #e8f7fe;
  --brand-blue: #12b7f5; --header-bg: #f5f6f7;
  /* 正式版：默认气泡按 iMessage 规范（自己 #0a84ff 白字 / 对方 #e9e9eb 深字）。
     优先级：已装备的气泡皮肤（行内变量 --bubble-me/--bubble-other + body[data-bf] 工艺层）> 主题变量 > 这里的默认值 */
  --bubble-me: #0a84ff; --bubble-me-text: #ffffff; --bubble-other: #e9e9eb;
}

/* ---------- 顶栏：浅灰蓝底 + 黑粗标题（QQ 式） ---------- */
.wx-topbar { background: var(--header-bg); }
.wx-topbar-title { font-weight: 700; }
.chat-head { background: var(--header-bg); }
.chat-title { font-weight: 700; }
.scroll-page > .page-head { background: var(--header-bg); }

/* ---------- 消息/通讯录：只留一条搜索框，圆形工具按钮行下线 ---------- */
#chatListView .side-tools { background: var(--header-bg); border-bottom: none; padding: 6px 12px 10px; }
#chatListView .side-tools input { background: #ffffff; border-radius: 10px; text-align: center; padding: 9px 14px; }
#chatListView .side-tools input:focus { text-align: left; }
#chatListView .tool-row { display: none !important; }

/* ---------- 列表行 / 头像：QQ 式行高与圆角 ---------- */
.avatar { border-radius: 11px; }
.avatar.big { border-radius: 14px; }
.list-item { min-height: 72px; padding: 12px 16px; }
.list-item::after { left: 72px; }
.list-item .name { font-weight: 600; }

/* ---------- 通讯录：分组可折叠（QQ 联系人式） ---------- */
.side-list .group-head { cursor: pointer; user-select: none; -webkit-user-select: none; }
.side-list .group-head > span:first-child::before {
  content: '▾'; display: inline-block; margin-right: 5px; font-size: 11px;
  color: var(--muted); transition: transform .18s ease;
}
.side-list .group-head.qq-collapsed > span:first-child::before { transform: rotate(-90deg); }
/* 「添加好友」大按钮与重复的搜好友行下线：入口走右上角＋菜单与顶部搜索框，功能不丢 */
.side-list .addfriend-big24 { display: none !important; }
.side-list .row:has(> #frSearch24) { display: none !important; }

/* ---------- 发现 / 我的：白卡片圆角浮在灰底上 ---------- */
.wx-group { border-radius: 14px; margin: 0 0 12px; overflow: hidden; }
#featureHub { border-radius: 14px; margin: 0 0 12px; overflow: hidden; }
.me-card { border-radius: 14px; margin: 0 0 12px; }
.set-section { margin: 0 0 14px; }
.set-group { border-radius: 14px; overflow: hidden; }
.set-search { margin: 0 0 12px; }
.wx-center-row { border-radius: 12px; margin: 0 0 10px; }

/* ---------- 动态页：发布器折叠成一行入口（QQ 空间式） ---------- */
.qq-pub-entry {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  background: var(--panel); border: 1px solid var(--border); border-radius: 12px;
  padding: 11px 13px; margin-bottom: 14px;
}
.qq-pub-ico {
  width: 30px; height: 30px; border-radius: 8px; flex: none;
  background: var(--accent-soft); display: inline-flex; align-items: center; justify-content: center; font-size: 15px;
}
.qq-pub-ph { flex: 1; color: var(--muted); font-size: 14.5px; }
.qq-pub-cam { font-size: 19px; flex: none; }
.publish-box.qq-pub-collapsed { display: none !important; }

/* ---------- 底部 Tab：QQ 蓝选中态 ---------- */
.wx-tabs button.active { color: var(--brand-blue); font-weight: 600; }

/* ================= 微信支付风钱包 + 微信式 PIN 盘（本轮） ================= */
/* 余额卡：浅色白卡、大字余额、微信绿主按钮，全部跟随主题变量（默认主题=干净浅色） */
.wallet-hero { background: var(--panel); border: 1px solid var(--border); box-shadow: var(--sh-1); border-radius: 16px; padding: 22px 16px 8px; }
.wallet-hero .coin { width: 46px; height: 46px; font-size: 23px; background: #e7f8ef; color: #07c160; box-shadow: none; margin-bottom: 6px; }
.wallet-hero .bal { font-size: 40px; font-weight: 800; color: var(--text); letter-spacing: .3px; margin: 2px 0 4px; }
.wp-label { color: var(--muted); font-size: 13.5px; }
.wp-demo { font-size: 11px; color: #07c160; background: #e7f8ef; border-radius: 8px; padding: 1px 7px; margin-left: 4px; }
.wp-actions { display: flex; gap: 10px; justify-content: center; margin: 14px 0 6px; }
.wp-btn { flex: 1; max-width: 130px; padding: 10px 0; border-radius: 9px; border: 1px solid var(--border); background: var(--panel); color: var(--text); font-size: 15px; }
.wp-btn-main { background: #07c160; border-color: #07c160; color: #fff; font-weight: 600; }
.wp-setrow { display: flex; align-items: center; gap: 9px; width: 100%; margin-top: 12px; padding: 13px 2px 13px; background: none; border: none; border-top: 1px solid var(--border); color: var(--text); font-size: 15px; text-align: left; }
.wp-setrow-ic { font-size: 17px; }
.wp-setrow-tx { font-weight: 600; }
.wp-setrow-sub { margin-left: auto; color: var(--muted); font-size: 13px; }
.wp-arr { font-style: normal; color: var(--muted); font-size: 17px; margin-left: 5px; }
.wp-sec { font-size: 13px; color: var(--muted); margin: 18px 2px 8px; font-weight: 600; }
.wp-txns { max-height: 38vh; overflow-y: auto; background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 2px 13px; }
.wp-txn { padding: 10px 0; border-bottom: 1px solid var(--border); }
.wp-txn:last-child { border-bottom: none; }
.wp-txn-main { display: flex; justify-content: space-between; align-items: center; }
.wp-txn-name { font-size: 14.5px; }
.wp-txn-amt { font-size: 15px; }
.wp-alert { background: #fff7e6; border: 1px solid #f5c86e; color: #7c4a03; border-radius: 12px; padding: 10px 12px; font-size: 13px; margin-top: 12px; }
.wp-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 8px 4px; }
.wp-cell { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 10px 2px; background: none; border: none; border-radius: 10px; color: var(--text); font-size: 12.5px; }
.wp-cell:active { background: var(--panel2); }
.wp-cell-ic { font-size: 24px; line-height: 1.1; }
.wp-meta { font-size: 12px; color: var(--muted); padding: 8px 4px 0; line-height: 1.6; }
.wp-credit { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 12px 13px; font-size: 13.5px; margin-top: 10px; }
/* PIN 盘：底部弹层 + 6 格圆点 + 数字键盘（仿微信支付） */
.pin-mask { position: fixed; inset: 0; background: rgba(10,12,18,.48); z-index: 90; display: flex; align-items: flex-end; justify-content: center; }
.pin-mask.hidden { display: none; }
.pin-sheet { background: var(--panel); color: var(--text); width: 100%; max-width: 560px; border-radius: 18px 18px 0 0; padding: 14px 18px calc(16px + env(safe-area-inset-bottom)); animation: pinUp .22s ease; box-shadow: 0 -6px 30px rgba(0,0,0,.18); }
@keyframes pinUp { from { transform: translateY(36px); opacity: .5; } to { transform: none; opacity: 1; } }
.pin-head { position: relative; text-align: center; padding: 2px 34px 0; }
.pin-x { position: absolute; left: -6px; top: -2px; width: 34px; height: 34px; border: none; background: none; color: var(--muted); font-size: 17px; }
.pin-title { font-size: 16.5px; font-weight: 700; }
.pin-sub { font-size: 12px; color: var(--muted); margin-top: 5px; }
.pin-boxes { display: flex; gap: 9px; justify-content: center; margin: 20px 0 4px; }
.pin-boxes span { width: 44px; height: 52px; border: 1.4px solid var(--border); border-radius: 10px; background: var(--panel2); display: flex; align-items: center; justify-content: center; }
.pin-boxes span.on::after { content: ''; width: 13px; height: 13px; border-radius: 50%; background: var(--text); }
.pin-boxes.pin-shake { animation: pinShake .3s; }
@keyframes pinShake { 0%,100% { transform: none; } 25% { transform: translateX(-7px); } 75% { transform: translateX(7px); } }
.pin-msg { text-align: center; color: #e64340; min-height: 20px; font-size: 13px; }
.pin-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 6px; }
.pin-pad button { padding: 13px 0; font-size: 21px; font-weight: 500; background: var(--panel2); border: none; border-radius: 10px; color: var(--text); }
.pin-pad button:active { background: var(--panel3); }
.pin-pad button:disabled { opacity: .45; }
.pin-key-empty { display: block; }

/* ============================================================
   修复（2026-12-04）：弹窗操作按钮被底部 Tab 栏遮挡
   根因：.modal-mask 的 z-index 是 50，低于底部 4 标签 .wx-tabs 的 60；
   移动端 .modal 又是贴视口底的抽屉，底部内边距仅 18px+safe-area，
   而标签栏实高约 64px——弹窗最后一行操作按钮（.m-row）恒落在被标签栏
   覆盖的底部条带里，滚动也升不出来（抽屉底边=视口底边）。
   设置支付密码的登录验证弹窗内容短、按钮行正好整行被压死，流程卡死。
   PIN 盘 z-index 90 高于标签栏，所以只有走 openModal 的弹窗中招。
   修法：① 遮罩层级提到 80（标签 60 < 弹窗 80 < PIN 盘 90 < toast 99）；
   ② 任一弹层打开时把底部 Tab 收起（复用进聊天时同款 :has 规则）；
   ③ 弹窗末行操作区 sticky 置底，长弹窗滚动时按钮常驻可见可点。
   ============================================================ */
.modal-mask { z-index: 80; }
body:has(#modalMask:not(.hidden)) .wx-tabs,
body:has(#pinPadMask:not(.hidden)) .wx-tabs {
  transform: translate(-50%, 115%); pointer-events: none;
}
.modal .m-row:last-child {
  position: sticky; bottom: 0; z-index: 3;
  background: var(--panel); padding-top: 10px;
}

/* ===== 站长/管理员身份徽章（全站统一，roleBadge 渲染） ===== */
.role-badge { display:inline-block; font-size:10.5px; font-weight:700; line-height:1.5; padding:0 6px; border-radius:99px; vertical-align:1px; letter-spacing:.3px; }
.role-badge.rb-owner { background:linear-gradient(135deg,#f6c453,#f59e0b); color:#5b3a00; }
.role-badge.rb-admin { background:#e3f0ff; color:#0b5ed7; }

/* ============================================================
   本轮（2026-12-04）：应用内统一弹窗 + 兑换邀请码页 + 添加朋友/新的朋友页
   ============================================================ */
/* ---------- 统一弹窗层（替代原生输入/确认/提示框） ---------- */
.ui-mask { position: fixed; inset: 0; z-index: 96; background: rgba(10,12,18,.48); display: flex; align-items: flex-end; justify-content: center; }
.ui-mask.hidden { display: none; }
.ui-sheet { background: var(--panel); color: var(--text); width: 100%; max-width: 560px; border-radius: 18px 18px 0 0; padding: 20px 18px calc(16px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 30px rgba(0,0,0,.18); animation: pinUp .22s ease; }
@media (min-width: 701px) { .ui-mask { align-items: center; padding: 20px; } .ui-sheet { border-radius: 18px; } }
.ui-title { font-size: 17px; font-weight: 700; text-align: center; }
.ui-msg { font-size: 14px; color: var(--text2); line-height: 1.65; margin-top: 8px; white-space: pre-line; word-break: break-word; }
.ui-input { width: 100%; margin-top: 14px; padding: 12px 13px; font-size: 16px; border: 1.4px solid var(--border); border-radius: 11px; background: var(--panel2); color: var(--text); }
.ui-input:focus { outline: none; border-color: var(--accent); background: var(--panel); }
.ui-btns { display: flex; gap: 10px; margin-top: 18px; }
.ui-btn { flex: 1; padding: 12px 0; font-size: 15.5px; border-radius: 11px; }
.ui-btn.danger-btn { background: #e64340; border-color: #e64340; color: #fff; }
body:has(#uiMask:not(.hidden)) .wx-tabs { transform: translate(-50%, 115%); pointer-events: none; }

/* ---------- 兑换邀请码页 ---------- */
.redeem-card { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--sh-1); margin-top: 14px; padding: 26px 18px 20px; text-align: center; }
.redeem-ico { font-size: 44px; }
.redeem-title { font-size: 18px; font-weight: 700; margin-top: 8px; }
.redeem-sub { font-size: 13px; color: var(--muted); line-height: 1.7; margin: 8px 4px 16px; }
.redeem-input { width: 100%; text-align: center; font-size: 18px; letter-spacing: 1.5px; padding: 13px 10px; border: 1.4px solid var(--border); border-radius: 12px; background: var(--panel2); color: var(--text); }
.redeem-input:focus { outline: none; border-color: var(--accent); background: var(--panel); }
.redeem-btn { width: 100%; margin-top: 14px; padding: 13px 0; font-size: 16px; border-radius: 12px; }
.redeem-result { margin-top: 14px; padding: 12px; border-radius: 11px; font-size: 14.5px; line-height: 1.6; text-align: left; }
.redeem-result.ok { background: #e7f8ef; color: #0a6e3c; border: 1px solid #a9e5c3; }
.redeem-result.err { background: #fdecec; color: #b3261e; border: 1px solid #f3b8b3; }
.redeem-tips { margin-top: 16px; font-size: 12.5px; color: var(--muted); line-height: 1.7; }

/* ---------- 添加朋友 / 新的朋友页 ---------- */
.af-search { display: flex; gap: 8px; margin: 12px 0; }
.af-search input { flex: 1; padding: 12px 13px; font-size: 15px; border: 1px solid var(--border); border-radius: 11px; background: var(--panel); color: var(--text); }
.af-search input:focus { outline: none; border-color: var(--accent); }
.af-search button { padding: 0 20px; border-radius: 11px; }
.af-entries { margin-bottom: 12px; }
.af-req-hint { margin-left: auto; font-size: 12.5px; color: var(--badge); }
.af-result .group-head, .nf-list .group-head { padding: 10px 2px 4px; }
.af-row .grow { min-width: 0; }
.af-state { border: none; background: none; font-size: 13.5px; padding: 7px 10px; white-space: nowrap; }
.af-state.done { color: var(--accent-press); }
.af-state.wait { color: var(--muted); }
.af-self { background: var(--accent-soft); color: var(--text); border-radius: 12px; padding: 14px; font-size: 14.5px; margin-bottom: 8px; }
.nf-btns { display: inline-flex; gap: 7px; }

/* =====================================================================
   本轮三件套（最终覆盖层）：微信式发动态整页 / 通讯录 QQ 重排 / 气泡工艺
   ===================================================================== */

/* ---------- 发动态整页（微信式） ---------- */
.mc-page { background: var(--panel); }
.mc-top { display: flex; align-items: center; justify-content: space-between; padding: calc(10px + env(safe-area-inset-top)) 16px 10px; max-width: 640px; margin: 0 auto; width: 100%; box-sizing: border-box; }
.mc-cancel { background: none; border: none; font-size: 16px; color: var(--text); padding: 6px 4px; cursor: pointer; font-family: inherit; }
.mc-title { font-size: 16px; font-weight: 600; color: var(--text); }
.mc-publish { background: #07c160; color: #fff; border: none; font-size: 15px; font-weight: 600; padding: 7px 18px; border-radius: 7px; cursor: pointer; font-family: inherit; }
.mc-publish:active { background: #06ad56; }
.mc-body { padding: 4px 16px calc(22px + env(safe-area-inset-bottom)); max-width: 640px; margin: 0 auto; }
.mc-body > textarea { width: 100%; border: none; background: transparent; resize: none; font-size: 17px; line-height: 1.55; color: var(--text); padding: 4px 0; font-family: inherit; box-sizing: border-box; }
.mc-body > textarea:focus { outline: none; box-shadow: none; border: none; }
.mc-media { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 2px; }
.mc-media:empty { display: none; }
.mc-tile { width: 76px; height: 76px; border-radius: 8px; overflow: hidden; background: var(--panel2); display: flex; align-items: center; justify-content: center; flex: none; }
.mc-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mc-tile-video { flex-direction: column; gap: 1px; font-size: 21px; color: var(--text2); }
.mc-tile-video em { font-style: normal; font-size: 11px; color: var(--muted); }
.mc-add { font-size: 30px; font-weight: 300; color: var(--muted); cursor: pointer; }
.mc-add-video { font-size: 20px; }
.mc-media > .preview { flex: 1 1 100%; font-size: 12.5px; }
.mc-tools { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 0; }
.mc-tools:empty { display: none; }
.mc-tools button { border-radius: 99px !important; margin: 0 !important; }
.mc-rows { margin-top: 16px; border-top: 1px solid var(--border); }
.mc-row { display: flex; align-items: center; gap: 11px; padding: 14px 2px; border-bottom: 1px solid var(--border); font-size: 15.5px; color: var(--text); cursor: pointer; }
.mc-ico { font-size: 17px; width: 22px; text-align: center; flex: none; }
.mc-label { flex: none; }
.mc-val { margin-left: auto; color: var(--muted); font-size: 14px; max-width: 44%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-val.has { color: var(--text2); }
.mc-arrow { margin-left: 7px; color: var(--muted); font-style: normal; font-size: 18px; flex: none; line-height: 1; }
.mc-select { margin-left: auto; border: none; background: transparent; font-size: 14.5px; color: var(--muted); text-align: right; appearance: none; -webkit-appearance: none; font-family: inherit; cursor: pointer; padding: 2px 0; }
.mc-select:focus { outline: none; box-shadow: none; }
.mc-sub { padding: 0 2px 12px 35px; border-bottom: 1px solid var(--border); }
.mc-sub input { width: 100%; border: none; background: transparent; font-size: 15px; color: var(--text); padding: 7px 0; font-family: inherit; box-sizing: border-box; }
.mc-sub input:focus { outline: none; box-shadow: none; border: none; }
.mc-switch { margin-left: auto; appearance: none; -webkit-appearance: none; width: 48px; height: 28px; border-radius: 99px; background: #d9dce1; position: relative; cursor: pointer; transition: background .18s; flex: none; border: none; padding: 0; }
.mc-switch:checked { background: #07c160; }
.mc-switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: left .18s; }
.mc-switch:checked::after { left: 22px; }

/* ---------- 通讯录（QQ 联系人风） ---------- */
.side-list .cq-gh { display: flex; align-items: center; background: var(--bg); padding: 9px 14px 5px; margin: 0; cursor: pointer; }
.cq-gh-name { font-size: 13.5px; font-weight: 500; color: var(--text2); }
.cq-gh-count { font-size: 12.5px; color: var(--muted); margin-left: 5px; }
.cq-gh-ops { margin-left: auto; display: inline-flex; gap: 15px; }
.cq-op { background: none; border: none; color: #576b95; font-size: 12.5px; padding: 2px 0; cursor: pointer; font-family: inherit; }
.cq-gh-arrow { margin-left: 12px; font-size: 15px; color: var(--muted); font-style: normal; line-height: 1; display: inline-block; transform: rotate(90deg); transition: transform .18s; }
.cq-gh-ops + .cq-gh-arrow { margin-left: 10px; }
.group-head.qq-collapsed .cq-gh-arrow { transform: none; }
.cq-newgroup { padding: 12px 14px; font-size: 14px; color: #576b95; cursor: pointer; background: var(--panel); }
.cq-mode-row { display: flex; justify-content: flex-end; padding: 8px 14px 2px; background: var(--panel); }
.cq-mode-link { font-size: 13px; color: #576b95; cursor: pointer; }
.cq-rail { position: fixed; right: 3px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; z-index: 30; }
.cq-rail button { background: none; border: none; font-size: 10.5px; font-weight: 600; color: var(--muted); padding: 2px 4px; cursor: pointer; font-family: inherit; }
.cq-rail button:active { color: var(--brand-blue); }
.cq-searchrow { display: flex; align-items: center; gap: 8px; background: var(--panel); padding: 4px 14px 12px; }
.cq-searchrow input { flex: 1; background: var(--panel2); border: none; border-radius: 9px; padding: 9px 12px; font-size: 14px; box-shadow: none; color: var(--text); font-family: inherit; min-width: 0; }
.cq-searchrow input:focus { background: var(--panel2); border: none; box-shadow: none; outline: none; }
.cq-searchbtn { background: none; border: none; color: #576b95; font-size: 14.5px; padding: 6px 2px; cursor: pointer; flex: none; font-family: inherit; }
.side-list .list-item .avatar { border-radius: 10px; }
.wx-centry { padding: 12px 14px; }
.wx-cico { width: 36px; height: 36px; border-radius: 9px; font-size: 18px; }
.wx-centry::after { left: 62px; }

/* ---------- 聊天气泡工艺（与装扮中心 .bub-fin-* 预览同一套参数） ---------- */
body[data-bf="soft"] .msg-row.me .bubble { box-shadow: 0 3px 10px rgba(0,0,0,.13); }
body[data-bf="jelly"] .msg-row.me .bubble { background: linear-gradient(180deg, color-mix(in srgb, var(--bubble-me) 45%, #fff), var(--bubble-me) 62%); box-shadow: inset 0 1.5px 0 rgba(255,255,255,.75), inset 0 -7px 12px rgba(0,0,0,.07), 0 3px 9px rgba(0,0,0,.10); }
body[data-bf="irid"] .msg-row.me .bubble { background: linear-gradient(120deg, var(--bubble-me) 15%, color-mix(in srgb, var(--bubble-me) 55%, #c4b5fd) 52%, color-mix(in srgb, var(--bubble-me) 60%, #f9a8d4) 88%); box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 3px 10px rgba(0,0,0,.12); }
body[data-bf="cole"] .msg-row.me .bubble { background: linear-gradient(180deg, color-mix(in srgb, var(--bubble-me) 82%, #fff), var(--bubble-me)); box-shadow: 0 0 0 1.6px color-mix(in srgb, var(--bubble-me) 55%, #8a6d1f), 0 0 0 3.4px color-mix(in srgb, var(--bubble-me) 30%, #f6d67c), 0 4px 12px rgba(0,0,0,.14); }
body[data-bf="legend"] .msg-row.me .bubble { background: linear-gradient(115deg, var(--bubble-me) 20%, color-mix(in srgb, var(--bubble-me) 62%, #fff) 50%, var(--bubble-me) 80%); box-shadow: 0 0 0 1.6px color-mix(in srgb, var(--bubble-me) 50%, #b8860b), 0 5px 16px rgba(0,0,0,.18); }

/* ---------- 动画系统 v2（2026-12-04 夜间轮：变量驱动，模式切换即时生效） ----------
   根因修复：旧版 soft 无定义、bouncy 只覆盖弹窗少数元素，页面/标签/消息动画各模式共用同一套时长与缓动，
   切换自然「没反应」。新系统把核心动效（页面进入/弹窗/消息气泡/底部弹层/面板）统一走 --ad/--ae 变量，
   四种模式各有明确时长与手感；anim-none 真关、anim-fast 真快，且优先级压过 lite 的自动轻量化。 */
body { --ad: .22s; --ae: cubic-bezier(.22,1,.36,1); }
body.anim-bouncy { --ad: .45s; --ae: cubic-bezier(.34,1.45,.5,1); }
body.anim-fast { --ad: .07s; --ae: ease-out; }
.page { animation: fadeSlide var(--ad) var(--ae) both; }
.modal { animation: popIn var(--ad) var(--ae) both; }
.msg-row { animation: bubbleIn var(--ad) var(--ae) both; }
.pin-sheet { animation: pinUp var(--ad) var(--ae) both; }
.ui-sheet { animation: pinUp var(--ad) var(--ae) both; }
.emoji-panel { animation: stkUp var(--ad) var(--ae) both; }
.modal-mask { animation: maskFade var(--ad) ease both; }
@keyframes maskFade { from { opacity: 0; } to { opacity: 1; } }
.wx-tabs button { transition: transform .18s var(--ae), color .18s ease, opacity .18s ease; }
.wx-tabs button:active { transform: scale(.9); }
.list-item, .wx-entry, .wx-entry2 { transition: background .18s ease, transform var(--ad) var(--ae); }
.list-item:active, .wx-entry:active, .wx-entry2:active { transform: scale(.985); }
body.anim-bouncy button:active { transform: scale(.93); }
body.anim-bouncy .wx-tabs button:active { transform: scale(.86); }
body.anim-fast *, body.anim-fast *::before, body.anim-fast *::after { animation-duration: .08s !important; transition-duration: .08s !important; }
body.anim-none *, body.anim-none *::before, body.anim-none *::after { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) { * { animation-duration: .01s !important; transition-duration: .01s !important; } }

/* ---------- 夜间轮（2026-12-04）：我的页状态卡 / 设置详情 / 资料行 / 统一 ✕ / HK 蝴蝶结 ---------- */
.me-avatar-wrap { position: relative; flex: none; display: inline-flex; }
.hk-bow { position: absolute; right: -7px; top: -8px; width: 26px; height: 18px; pointer-events: none; transform: rotate(14deg); }
.hk-bow i { position: absolute; top: 1px; width: 11px; height: 15px; background: #ff5c9e radial-gradient(circle at 35% 35%, #fff 1.4px, transparent 1.8px); border: 1.2px solid #e75480; }
.hk-bow .hk-bow-l { left: 0; border-radius: 70% 30% 55% 45% / 60% 40% 60% 40%; transform: rotate(-24deg); }
.hk-bow .hk-bow-r { right: 0; border-radius: 30% 70% 45% 55% / 40% 60% 40% 60%; transform: rotate(24deg); }
.hk-bow .hk-bow-c { left: 50%; top: 5px; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: #e75480; border: 1.2px solid #d6336c; z-index: 1; }
.me-status-card { display: flex; align-items: stretch; background: var(--panel); border-radius: 14px; margin: 0 0 12px; padding: 14px 6px; box-shadow: 0 1px 4px rgba(20,30,60,.05); }
.me-status-cell { flex: 1; background: none; border: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 2px 4px; font-family: inherit; color: var(--text); }
.me-status-num { font-size: 16.5px; font-weight: 700; white-space: nowrap; }
.me-status-label { font-size: 12px; color: var(--muted); }
.me-status-div { width: 1px; background: var(--border); margin: 4px 0; }
.me-set-hint { margin-left: auto; font-size: 12px; color: var(--muted); }
.me-set-hint + .wx-arr { margin-left: 6px; }
.pg-x { width: 40px; height: 40px; border-radius: 50%; border: none; background: transparent; color: var(--muted); font-size: 15px; cursor: pointer; flex: none; display: flex; align-items: center; justify-content: center; font-family: inherit; }
.pg-x:active { background: var(--panel2); color: var(--text); }
.prof-avatar-row { cursor: pointer; }
.prof-avatar-row .avatar.big { width: 52px; height: 52px; border-radius: 10px; }
#liveAvatarRow .ghost.small { white-space: nowrap; }
/* 弹窗统一 ✕（openModal 注入为首个子元素：sticky+float 让它在弹窗滚动时始终钉在右上角，热区 40px） */
.modal-x { position: sticky; top: 0; float: right; width: 40px; height: 40px; margin: -12px -12px -28px 8px; border-radius: 50%; border: none; background: transparent; color: var(--muted); font-size: 15px; cursor: pointer; z-index: 5; display: flex; align-items: center; justify-content: center; font-family: inherit; }
.modal-x:active { background: var(--panel2); color: var(--text); }
#modalBox > h3 { padding-right: 30px; }
/* 子页面顶栏 ✕ 与返回并存时的间距 */
.wx-topbar .pg-x { margin-left: 2px; }
/* HK 小蝴蝶结（纯 CSS 渐变绘制，克制点缀）：兑换卡右上角 */
.redeem-card { position: relative; }
.redeem-card::after { content: ''; position: absolute; right: 14px; top: 12px; width: 30px; height: 20px; pointer-events: none; transform: rotate(12deg);
  background:
    radial-gradient(circle at 50% 55%, #d6336c 3.2px, rgba(214,51,108,.0) 4px),
    radial-gradient(ellipse 10px 13px at 20% 50%, #ff5c9e 62%, rgba(255,92,158,0) 64%),
    radial-gradient(ellipse 10px 13px at 80% 50%, #ff5c9e 62%, rgba(255,92,158,0) 64%); }

/* ============================================================
   设计系统统一（2026-12-04 晚）：与后台同一套 token
   开关：全站唯一 iOS 开关 .ios-sw（.mc-switch 为同规格别名）——47×28 轨道、24 圆钮、
   关 #e9e9ea / 开 #34c759、滑程 21px、.3s 弹性 cubic-bezier(.34,1.3,.44,1)；
   玻璃：顶栏/底部标签 半透 + blur(18px) saturate(1.5)；弹窗圆角 22、卡片圆角 18；
   lite 模式照旧全局关模糊，不受本层影响。
   ============================================================ */
.ios-sw, .mc-switch { -webkit-appearance: none; appearance: none; width: 47px; height: 28px; border-radius: 99px; background: #e9e9ea; border: none; padding: 0; position: relative; cursor: pointer; transition: background .3s; flex: none; vertical-align: middle; }
.mc-switch { margin-left: auto; }
.ios-sw::after, .mc-switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.28); transition: left .3s cubic-bezier(.34,1.3,.44,1); }
.ios-sw:checked, .mc-switch:checked { background: #34c759; }
.ios-sw:checked::after, .mc-switch:checked::after { left: 21px; }
.ios-sw:disabled, .mc-switch:disabled { opacity: .45; cursor: default; }
/* 顶栏玻璃对齐（主体仍是浅色 QQ 风，只做半透+模糊，不整页玻璃化） */
.wx-topbar, .scroll-page > .page-head {
  background: color-mix(in srgb, var(--panel) 84%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
}
body.lite .wx-topbar, body.lite .scroll-page > .page-head { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
/* 底部标签：补玻璃高光线 */
.wx-tabs { box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 -2px 14px rgba(0,0,0,.04); }
/* 弹窗/弹层：圆角与高光边对齐 token */
.modal { border: 1px solid var(--border); box-shadow: var(--sh-3), inset 0 1px 0 rgba(255,255,255,.25); }
.ui-sheet { border-radius: 22px 22px 0 0; box-shadow: 0 -6px 30px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.25); }
@media (min-width: 701px) { .ui-sheet { border-radius: 22px; } }
.pin-sheet { border-radius: 22px 22px 0 0; box-shadow: 0 -6px 30px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.25); }
/* 卡片圆角对齐 18 */
.wx-entry, .redeem-card { border-radius: 18px; }

/* =====================================================================
   本轮最终层：液态玻璃默认主题 / 沉浸式外壳 / 微信朋友圈 / 新组件
   玻璃口径：只用在结构层（顶栏/底栏/聊天头尾/弹窗/卡片），长列表行不逐行 blur；
   用 color-mix 让 44 套主题自适应；lite 模式与「关闭玻璃」时自动降级为实色。
   ===================================================================== */
:root { --glass-blur: 18px; --glass-sat: 1.5; }
html.glass body {
  background:
    radial-gradient(560px 380px at 12% -6%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 65%),
    radial-gradient(640px 460px at 96% 16%, color-mix(in srgb, #ff9d5c 17%, transparent), transparent 65%),
    radial-gradient(700px 520px at 50% 108%, color-mix(in srgb, #7c6cf0 16%, transparent), transparent 65%),
    var(--bg);
  background-attachment: fixed;
}
html.glass .wx-head, html.glass .chat-head, html.glass .composer, html.glass .pg-head {
  background: color-mix(in srgb, var(--panel) 62%, transparent);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  border-color: color-mix(in srgb, #fff 45%, var(--border));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 6px 24px rgba(30,35,60,.07);
}
html.glass .wx-tabs {
  background: color-mix(in srgb, var(--panel) 58%, transparent);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  border: 1px solid color-mix(in srgb, #fff 50%, var(--border));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 14px 34px rgba(30,35,60,.16);
}
html.glass .modal {
  background: color-mix(in srgb, var(--panel) 74%, transparent);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  border: 1px solid color-mix(in srgb, #fff 55%, var(--border));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 24px 60px rgba(20,24,48,.28);
}
html.glass .board-item, html.glass .moment, html.glass .card {
  background: color-mix(in srgb, var(--panel) 78%, transparent);
  border-color: color-mix(in srgb, #fff 40%, var(--border));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 4px 16px rgba(30,35,60,.05);
}
html.glass .msg-list { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 5%, transparent), transparent 240px); }
html.glass .pin-sheet, html.glass .sheet, html.glass .kq-sheet, html.glass .adlg-card {
  background: color-mix(in srgb, var(--panel) 76%, transparent);
  -webkit-backdrop-filter: blur(24px) saturate(var(--glass-sat));
  backdrop-filter: blur(24px) saturate(var(--glass-sat));
}
/* 拟物触感：按压回弹 + 高光变化 */
button { transition: transform .12s cubic-bezier(.34,1.56,.64,1), filter .15s ease, background .15s ease; }
button:active { transform: scale(.965); filter: brightness(1.07); }
.wx-tabs button:active { transform: scale(.92); }
/* lite / 低性能：关玻璃 */
html.lite { --glass-blur: 0px; }
html.lite body { background: var(--bg); }
html.lite .wx-head, html.lite .wx-tabs, html.lite .modal, html.lite .chat-head, html.lite .composer { -webkit-backdrop-filter: none; backdrop-filter: none; }

/* ---------- A1 底部标签硬规则：子页/聊天/键盘时一律隐藏 ---------- */
body.tabs-off .wx-tabs, body.kb-open .wx-tabs {
  transform: translate(-50%, 140%) !important; opacity: 0 !important; pointer-events: none !important;
}
.wx-tabs { transition: transform .26s cubic-bezier(.22,1,.36,1), opacity .2s ease; }
body:not(.tabs-off):not(.kb-open) .wx-scroll { padding-bottom: 96px; }
body:not(.tabs-off):not(.kb-open) #momentFeed { padding-bottom: 84px; }

/* ---------- A3 弹窗结构：独立标题栏 + 玻璃圆 ✕（热区 40px，永不压内容） ---------- */
.modal { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.modal-xbar { flex: none; display: flex; justify-content: flex-end; padding: 10px 10px 2px; }
.modal-x {
  position: static; float: none; margin: 0; width: 40px; height: 40px; flex: none;
  border-radius: 50%; border: 1px solid color-mix(in srgb, #fff 55%, var(--border));
  background: color-mix(in srgb, var(--panel) 55%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: 15px; line-height: 1; color: var(--text); cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 3px 10px rgba(30,35,60,.12);
}
.modal-body { overflow-y: auto; padding: 2px 22px 22px; flex: 1; min-height: 0; -webkit-overflow-scrolling: touch; }
.modal .m-row { position: sticky; bottom: -22px; background: color-mix(in srgb, var(--panel) 82%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); padding: 10px 0 2px; }

/* ---------- H 朋友圈微信式 ---------- */
.wx-cover { position: relative; height: 240px; margin: -14px -14px 8px; overflow: visible; border-radius: 0 0 18px 18px; background: linear-gradient(135deg, #7f9fd4, #b7c9e8 55%, #e8d9c0); }
.wx-cover img#wxCoverImg { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0 0 18px 18px; }
.wx-cover img#wxCoverImg:not([src]) { display: none; }
.wx-cover-me { position: absolute; right: 16px; bottom: -22px; display: flex; align-items: flex-end; gap: 10px; z-index: 2; }
.wx-cover-name { color: #fff; font-weight: 700; font-size: 16.5px; text-shadow: 0 1px 6px rgba(0,0,0,.45); padding-bottom: 26px; }
.wx-cover-me img { width: 64px; height: 64px; border-radius: 12px; border: 2px solid rgba(255,255,255,.85); object-fit: cover; background: #dfe5ee; box-shadow: 0 6px 18px rgba(20,30,60,.25); }
.moment-wx { display: flex; gap: 10px; padding: 14px 2px 12px; border-bottom: .5px solid var(--border); background: transparent !important; border: none; box-shadow: none !important; }
.mwx-avatar { width: 42px; height: 42px; border-radius: 8px; flex: none; }
.mwx-main { flex: 1; min-width: 0; }
.mwx-name { color: #576b95; font-weight: 600; font-size: 15px; cursor: pointer; }
.mwx-title { font-weight: 700; margin-top: 2px; }
.mwx-body { margin-top: 3px; font-size: 14.5px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.mwx-tags span { color: #576b95; font-size: 13.5px; margin-right: 6px; }
.mwx-imgs { display: grid; gap: 4px; margin-top: 8px; max-width: 340px; }
.mwx-imgs img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; aspect-ratio: 1; cursor: pointer; }
.mwx-imgs.n1 { grid-template-columns: minmax(0, 200px); } .mwx-imgs.n1 img { aspect-ratio: auto; max-height: 240px; }
.mwx-imgs.n3 { grid-template-columns: repeat(3, 1fr); }
.mwx-imgs.n4 { grid-template-columns: repeat(2, 1fr); max-width: 226px; }
.mwx-video { width: min(320px, 100%); border-radius: 6px; margin-top: 8px; }
.mwx-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; position: relative; }
.mwx-time { color: var(--muted); font-size: 12.5px; }
.mwx-actwrap { position: relative; display: inline-flex; align-items: center; }
.mwx-dots { width: 34px; height: 22px; border-radius: 5px; background: color-mix(in srgb, var(--muted) 14%, transparent); color: #576b95; font-weight: 900; letter-spacing: 1px; border: none; cursor: pointer; }
.mwx-pop { position: absolute; right: 42px; top: 50%; transform: translateY(-50%); display: flex; background: #4c5157; border-radius: 7px; overflow: hidden; animation: popIn .16s ease both; z-index: 5; box-shadow: 0 8px 22px rgba(0,0,0,.28); }
.mwx-pop.hidden { display: none; }
.mwx-pop button { background: none; border: none; color: #fff; padding: 8px 14px; font-size: 13.5px; cursor: pointer; white-space: nowrap; }
.mwx-pop button + button { border-left: .5px solid rgba(255,255,255,.25); }
.mwx-social { background: color-mix(in srgb, var(--muted) 9%, var(--panel)); border-radius: 5px; padding: 6px 9px; margin-top: 8px; }
.mwx-likes { color: #576b95; font-size: 13.5px; padding-bottom: 4px; border-bottom: .5px solid color-mix(in srgb, var(--border) 70%, transparent); margin-bottom: 4px; }
.mwx-comment { font-size: 13.5px; line-height: 1.5; }
.mwx-cname { color: #576b95; }
.mwx-ctime { color: var(--muted); font-size: 11.5px; }
.mwx-extra { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 7px; }
.mwx-extra button { background: none; border: none; color: var(--muted); font-size: 12.5px; padding: 3px 7px; cursor: pointer; border-radius: 6px; }
.mwx-extra button:hover { background: color-mix(in srgb, var(--muted) 10%, transparent); }
.wx-cover-img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0 0 18px 18px; }
.wx-cover-img:not([src]), .wx-cover-img[src=""] { display: none; }
.wx-cover-avatar { width: 64px; height: 64px; border-radius: 12px; border: 2px solid rgba(255,255,255,.85); object-fit: cover; background: #dfe5ee; box-shadow: 0 6px 18px rgba(20,30,60,.25); }

/* ---------- C 炒股 ---------- */
.pool-banner { display: flex; align-items: center; gap: 8px; background: color-mix(in srgb, var(--accent) 10%, var(--panel)); border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--border)); border-radius: 12px; padding: 8px 10px; font-size: 12.5px; margin-bottom: 10px; }
.pool-x { margin-left: auto; width: 30px; height: 30px; flex: none; border-radius: 50%; border: 1px solid var(--border); background: color-mix(in srgb, var(--panel) 70%, transparent); cursor: pointer; }
.stk-sec { margin-bottom: 14px; }
.stk-sec-t { font-weight: 700; font-size: 15px; margin: 8px 0 6px; }
.stk-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; cursor: pointer; }
.stk-acct { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.stk-d-head { display: flex; align-items: center; gap: 8px; }
.stk-d-name { font-size: 17px; margin-top: 8px; }
.stk-d-price { margin: 4px 0; display: flex; align-items: baseline; gap: 10px; }
.stk-d-stats { display: flex; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 12.5px; margin-bottom: 8px; }
.stk-d-stats b { color: var(--text); }
.tf-tabs { display: flex; gap: 6px; margin: 6px 0; }
.tf-tabs button { border: 1px solid var(--border); background: var(--panel); border-radius: 999px; padding: 5px 14px; cursor: pointer; font-size: 13px; }
.tf-tabs button.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.k-wrap { background: color-mix(in srgb, var(--panel) 85%, transparent); border: 1px solid var(--border); border-radius: 14px; padding: 8px 6px 4px; margin-bottom: 12px; }
.k-wrap canvas { width: 100%; display: block; }
.k-legend { display: flex; gap: 12px; font-size: 11.5px; padding: 2px 4px 4px; flex-wrap: wrap; }
.active-chip { background: var(--accent) !important; color: #fff !important; border-color: var(--accent) !important; }

/* ---------- D 音乐播放器 ---------- */
.player-layer { position: fixed; inset: 0; z-index: 95; display: flex; flex-direction: column; padding: 18px 20px calc(18px + env(safe-area-inset-bottom)); color: var(--text);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 14%, var(--bg)), var(--bg) 55%); animation: fadeSlide .25s ease both; }
.player-layer.hidden { display: none; }
.pl-top { display: flex; align-items: center; gap: 10px; }
.pl-x { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 1px solid color-mix(in srgb, #fff 55%, var(--border)); background: color-mix(in srgb, var(--panel) 55%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: 16px; cursor: pointer; color: var(--text); }
.pl-title { flex: 1; text-align: center; min-width: 0; }
.pl-disc-wrap { display: flex; justify-content: center; padding: 26px 0 8px; }
.pl-disc { width: 210px; height: 210px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 64px;
  background: radial-gradient(circle at 50% 50%, #3a3f4a 0 26%, #22252d 27% 62%, #14161c 63% 100%); border: 3px solid rgba(255,255,255,.14);
  box-shadow: 0 22px 48px rgba(10,12,24,.4), inset 0 0 0 6px rgba(255,255,255,.05); color: #fff; }
.pl-disc.spin { animation: discSpin 14s linear infinite; }
@keyframes discSpin { to { transform: rotate(360deg); } }
.pl-lrc { flex: 1; overflow-y: auto; text-align: center; padding: 10px 0; mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent); -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent); }
.lrc-line { padding: 5px 8px; font-size: 14.5px; color: var(--muted); transition: all .25s ease; }
.lrc-line.active { color: var(--text); font-size: 16.5px; font-weight: 700; transform: scale(1.04); }
.lrc-none { color: var(--muted); padding-top: 30px; }
.pl-prog { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.pl-prog input[type=range] { flex: 1; accent-color: #e60012; }
.pl-ctrl { display: flex; align-items: center; justify-content: center; gap: 20px; padding: 10px 0 4px; }
.pl-ctrl button { background: none; border: none; font-size: 24px; cursor: pointer; color: var(--text); }
.pl-ctrl .pl-play { width: 62px; height: 62px; border-radius: 50%; background: #e60012; color: #fff; font-size: 26px; box-shadow: 0 10px 26px rgba(230,0,18,.35); }
.pl-ctrl .pl-mode { font-size: 19px; }
.pl-actions { display: flex; justify-content: center; gap: 10px; padding-top: 8px; }
.song-row { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.song-row .grow { flex: 1; min-width: 0; }
.song-idx { color: var(--muted); width: 22px; text-align: center; font-weight: 700; }
.song-row.playing { border-color: #e60012; }
.mini-player { position: fixed; left: 12px; right: 12px; bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 65; display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 66%, transparent); -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
  border: 1px solid color-mix(in srgb, #fff 50%, var(--border)); box-shadow: 0 12px 30px rgba(20,24,48,.22); }
.mini-player .grow { flex: 1; min-width: 0; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-player button { background: none; border: none; font-size: 17px; cursor: pointer; color: var(--text); }
.mp-disc { display: inline-flex; width: 32px; height: 32px; border-radius: 50%; background: #22252d; align-items: center; justify-content: center; font-size: 15px; }
.mp-disc.spin { animation: discSpin 10s linear infinite; }
body.tabs-off .mini-player, body.kb-open .mini-player { bottom: calc(14px + env(safe-area-inset-bottom)); }

/* ---------- E 商家 ---------- */
.food-top { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.shop-card { cursor: pointer; }
.shop-card-t { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.shop-kind { font-size: 11px; padding: 2px 8px; border-radius: 999px; font-weight: 700; }
.shop-kind.plat { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.shop-kind.merc { background: color-mix(in srgb, #f59e0b 16%, transparent); color: #b45309; }
.shop-closed { font-size: 11px; color: #e60012; font-weight: 700; }
.shop-promos { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 5px; }
.shop-promos span { font-size: 11px; color: #e60012; border: 1px solid color-mix(in srgb, #e60012 40%, transparent); padding: 1px 7px; border-radius: 6px; }
.cert-badge { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; border: 1px solid color-mix(in srgb, #fff 50%, var(--border));
  background: color-mix(in srgb, var(--panel) 55%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.cert-badge.verified { color: #0a7d43; }
.cert-badge.official { color: #0a84ff; }
.cert-badge.deposit { color: #b45309; }
.cert-badge.sm { font-size: 10px; padding: 1px 6px; }
.dish-row { display: flex; align-items: center; gap: 10px; padding: 10px 2px; border-bottom: .5px solid var(--border); }
.dish-row .grow { flex: 1; min-width: 0; cursor: pointer; }
.dish-price { font-weight: 700; white-space: nowrap; }
.dish-price s, .kq-product-price s { color: var(--muted); font-weight: 400; font-size: 12px; }
.dish-sig { font-size: 10.5px; background: #e60012; color: #fff; padding: 1px 6px; border-radius: 5px; font-weight: 700; }
.dish-flash { font-size: 10.5px; background: #f59e0b; color: #fff; padding: 1px 6px; border-radius: 5px; font-weight: 700; }
.dish-tools { display: flex; gap: 8px; margin: 10px 0 6px; }
.dish-tools input { flex: 1; }
.cat-chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 4px; }
.cat-chips button { border: 1px solid var(--border); background: var(--panel); border-radius: 999px; padding: 5px 13px; font-size: 13px; cursor: pointer; }
.cat-chips button.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.cart-bar { position: sticky; bottom: 10px; display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; padding: 12px 16px; border-radius: 999px; z-index: 5;
  background: color-mix(in srgb, var(--panel) 62%, transparent); -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
  border: 1px solid color-mix(in srgb, #fff 50%, var(--border)); box-shadow: 0 14px 34px rgba(20,24,48,.2); }
.deliver-bar { height: 6px; border-radius: 99px; background: color-mix(in srgb, var(--muted) 18%, transparent); overflow: hidden; margin: 8px 0 4px; }
.deliver-bar > div { height: 100%; background: linear-gradient(90deg, #ffb03a, #e60012); border-radius: 99px; transition: width 1s linear; }
.order-status { font-size: 12px; font-weight: 700; color: var(--accent); }
.opt-row { display: flex; align-items: center; gap: 8px; padding: 9px 4px; border-bottom: .5px solid var(--border); cursor: pointer; }
.dish-focus { outline: 2px solid var(--accent); border-radius: 10px; }

/* ---------- G 热搜 ---------- */
.hot-row { display: flex; align-items: center; gap: 10px; padding: 10px 2px; border-bottom: .5px solid var(--border); cursor: pointer; }
.hot-rank { width: 26px; height: 26px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; font-weight: 800; background: color-mix(in srgb, var(--muted) 12%, transparent); color: var(--muted); }
.hot-rank.r1 { background: #e60012; color: #fff; } .hot-rank.r2 { background: #ff7a1a; color: #fff; } .hot-rank.r3 { background: #f5a623; color: #fff; }
.hot-title { flex: 1; min-width: 0; font-weight: 600; }
.hot-heat { color: var(--muted); font-size: 12px; }
.hot-tag { font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 5px; }
.hot-tag.pin { background: #7c6cf0; color: #fff; } .hot-tag.new { background: #00a651; color: #fff; }
.hot-tag.up { background: color-mix(in srgb, #e60012 12%, transparent); color: #e60012; }
.hot-tag.down { background: color-mix(in srgb, #00a651 12%, transparent); color: #00a651; }
.hot-tag.hot { background: #e60012; color: #fff; }
.hot-chip { display: inline-block; margin: 2px 4px 2px 0; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, #e60012 8%, transparent); color: #e60012; font-size: 12.5px; cursor: pointer; }
.news-item { cursor: pointer; }
.news-kind { font-size: 11px; font-weight: 700; color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); padding: 1px 6px; border-radius: 5px; }

/* ---------- I 快刷增强 ---------- */
/* .kq-plus 已移入底部栏 .kq-bottombar 的 flex 布局（features28 内嵌样式定义），不再居中绝对定位——旧定位正是它压住相关搜索条的原因 */
.kq-heart { position: absolute; z-index: 7; pointer-events: none; color: #fe2c55; line-height: 1;
  filter: drop-shadow(0 6px 14px rgba(254,44,85,.5)); animation: kqHeartPop .85s cubic-bezier(.17,1.4,.4,1) both; }
@keyframes kqHeartPop {
  0% { transform: scale(0) rotate(0deg); opacity: 0; }
  22% { transform: scale(1.25) rotate(var(--tilt, 0deg)); opacity: 1; }
  45% { transform: scale(.94) rotate(var(--tilt, 0deg)); }
  65% { transform: scale(1.05) rotate(var(--tilt, 0deg)) translateY(-8px); opacity: 1; }
  100% { transform: scale(1.1) rotate(var(--tilt, 0deg)) translateY(-46px); opacity: 0; }
}
.kq-content { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
.kq-content.open { -webkit-line-clamp: unset; }
.kq-product { display: flex; align-items: center; gap: 10px; margin-top: 10px; max-width: 330px; padding: 9px 12px; border-radius: 14px; cursor: pointer;
  background: rgba(20,22,30,.55); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid rgba(255,255,255,.35); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 10px 24px rgba(0,0,0,.3); color: #fff; }
.kq-product .grow { flex: 1; min-width: 0; }
.kq-product-price { font-weight: 800; color: #ffd60a; white-space: nowrap; }
.kq-product-buy { background: #fe2c55; color: #fff; font-size: 12.5px; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
/* .kq-related 已改为底部栏细玻璃条 .kq-relatedbar（features28 内嵌样式定义） */
.kq-empty { height: 100%; display: flex; align-items: center; justify-content: center; padding: 24px; }
.kq-empty-card { text-align: center; color: #fff; padding: 30px 26px; border-radius: 24px; max-width: 320px;
  background: rgba(24,26,36,.55); -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(255,255,255,.35); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 20px 44px rgba(0,0,0,.35); }
.kq-empty-card p { opacity: .85; font-size: 13.5px; line-height: 1.7; margin: 8px 0 16px; }
.creator-plus-bar { display: flex; gap: 8px; flex-wrap: wrap; padding: 10px 14px 0; }

/* ---------- I 拍摄/发布 ---------- */
.shoot-layer, .publish-layer { position: fixed; inset: 0; z-index: 96; background: #0b0c10; color: #fff; animation: fadeSlide .22s ease both; }
.shoot-layer.hidden, .publish-layer.hidden { display: none; }
.shoot-layer video#shPreview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sh-top { position: absolute; top: calc(12px + env(safe-area-inset-top)); left: 12px; right: 12px; display: flex; align-items: center; justify-content: space-between; z-index: 3; }
.sh-x { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); background: rgba(20,22,30,.55); color: #fff; font-size: 15px; cursor: pointer; }
.sh-music { border-radius: 999px; border: 1px solid rgba(255,255,255,.4); background: rgba(20,22,30,.55); color: #fff; padding: 9px 18px; font-size: 13.5px; cursor: pointer; max-width: 55vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 44px; }
.sh-tools { position: absolute; right: 10px; top: 20%; display: flex; flex-direction: column; gap: 10px; z-index: 3; }
.sh-tools button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: rgba(20,22,30,.45); border: none; color: #fff; font-size: 19px; cursor: pointer; text-shadow: 0 1px 6px rgba(0,0,0,.5); width: 52px; height: 52px; border-radius: 50%; padding: 0; }
.sh-tools button span { font-size: 10.5px; }
.sh-perm { position: absolute; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; padding: 22px; background: rgba(5,5,10,.55); }
.sh-perm-card { background: rgba(255,255,255,.96); color: #111; border-radius: 22px; padding: 24px 20px; max-width: 340px; width: 100%; text-align: center; box-shadow: 0 18px 50px rgba(0,0,0,.4); }
.sh-perm-card h3 { margin: 10px 0 6px; font-size: 18px; }
.sh-perm-card p { font-size: 13.5px; color: #555; line-height: 1.65; margin: 0 0 8px; }
.sh-perm-card button { display: block; width: 100%; margin-top: 10px; padding: 13px; border-radius: 12px; border: none; font-size: 15.5px; cursor: pointer; min-height: 48px; }
.sh-perm-card .go { background: #fe2c55; color: #fff; font-weight: 700; }
.sh-perm-card .no { background: #f0f0f3; color: #333; }
.sh-filters { position: absolute; left: 0; right: 0; bottom: 168px; display: flex; justify-content: center; gap: 8px; z-index: 3; }
.sh-filters button { border: 1px solid rgba(255,255,255,.35); background: rgba(20,22,30,.45); color: #fff; border-radius: 999px; padding: 6px 14px; font-size: 12.5px; cursor: pointer; }
.sh-filters button.on { background: #fe2c55; border-color: #fe2c55; }
.sh-bottom { position: absolute; left: 0; right: 0; bottom: calc(64px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-evenly; z-index: 3; }
.sh-side { display: flex; flex-direction: column; align-items: center; gap: 3px; background: none; border: none; color: #fff; font-size: 22px; cursor: pointer; }
.sh-side span { font-size: 11px; }
.sh-rec { width: 74px; height: 74px; border-radius: 50%; border: 4px solid rgba(255,255,255,.9); background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.sh-rec span { width: 56px; height: 56px; border-radius: 50%; background: #fe2c55; display: block; transition: all .2s ease; }
.sh-rec.rec span { width: 30px; height: 30px; border-radius: 8px; }
.sh-modes { position: absolute; left: 0; right: 0; bottom: calc(30px + env(safe-area-inset-bottom)); display: flex; justify-content: center; gap: 22px; z-index: 3; }
.sh-modes button { background: none; border: none; color: rgba(255,255,255,.65); font-size: 14px; cursor: pointer; }
.sh-modes button.on { color: #fff; font-weight: 700; }
.sh-segs { position: absolute; left: 12px; bottom: 168px; display: flex; flex-direction: column; gap: 5px; z-index: 3; }
.sh-seg { background: rgba(20,22,30,.55); border: 1px solid rgba(255,255,255,.3); padding: 4px 10px; border-radius: 999px; font-size: 11.5px; }
.sh-seg a { color: #fe2c55; text-decoration: none; margin-left: 4px; }
.sh-foot { position: absolute; left: 0; right: 0; bottom: calc(4px + env(safe-area-inset-bottom)); display: flex; justify-content: space-around; font-size: 12px; color: rgba(255,255,255,.6); z-index: 3; }
.sh-foot .on { color: #fff; font-weight: 700; }
.publish-layer { background: var(--bg); color: var(--text); display: flex; flex-direction: column; }
.pub-head { display: flex; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top)) 14px 10px; }
.pub-body { flex: 1; overflow-y: auto; padding: 4px 16px calc(20px + env(safe-area-inset-bottom)); }
.pub-cover-row { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 8px; }
.pub-cover-row video, .pub-cover-row img { width: 108px; height: 144px; object-fit: cover; border-radius: 12px; background: #14161c; }
.pub-nomedia { width: 108px; height: 144px; border-radius: 12px; background: #14161c; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; }
.pub-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.pub-chips .chip { border: 1px solid var(--border); background: var(--panel); border-radius: 999px; padding: 5px 12px; font-size: 12.5px; cursor: pointer; }
.pub-chips .chip.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.pub-actions { display: flex; gap: 10px; margin-top: 16px; }
.pub-actions button { flex: 1; padding: 12px; font-size: 15px; }

/* ---------- 全屏层打开时抬升通用弹层（根治：快刷/直播/拍摄层 z=300/96 盖住 modal 80 / PIN 90 / ui 96，
   导致礼物面板里点兑换、拍摄页选音乐等弹层被压在视频层下面点不动） ---------- */
body.kq-open .modal-mask, body.kq-open .pin-mask, body.kq-open .ui-mask,
body.live-open .modal-mask, body.live-open .pin-mask, body.live-open .ui-mask,
body.player-open .modal-mask, body.player-open .pin-mask, body.player-open .ui-mask,
body.shoot-open .modal-mask, body.shoot-open .pin-mask, body.shoot-open .ui-mask { z-index: 400; }
/* 外卖常驻购物车条（fixed 于页面内，底部高于四标签栏，页面隐藏自动不可见） */
#pageFood { position: relative; }
#foodCartFloat { position: absolute; left: 12px; right: 12px; bottom: calc(64px + env(safe-area-inset-bottom)); z-index: 60; display: none; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 18px; background: var(--glass-bg, rgba(255,255,255,.82)); backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5); border: 1px solid var(--glass-border, rgba(20,30,60,.08)); box-shadow: 0 10px 30px rgba(15,35,80,.18); animation: fcbIn .25s cubic-bezier(.2,.9,.3,1.2); }
@keyframes fcbIn { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
.fcb-ic { position: relative; font-size: 24px; line-height: 1; }
.fcb-ic em { position: absolute; top: -7px; right: -9px; font-style: normal; font-size: 11px; font-weight: 800; background: #f43f5e; color: #fff; border-radius: 9px; padding: 1px 5px; }
.fcb-sum { display: flex; flex-direction: column; line-height: 1.25; }
.fcb-sum b { font-size: 16px; }
.fcb-sum small { color: var(--muted); font-size: 11px; }
.qty-ctl { display: inline-flex; align-items: center; gap: 8px; }
.qty-ctl button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--glass-border, rgba(20,30,60,.14)); background: var(--glass-bg, rgba(255,255,255,.8)); font-size: 16px; line-height: 1; }
.cart-line { display: flex; align-items: center; gap: 10px; }
.cart-line-sum { min-width: 64px; text-align: right; }
/* 通用 chip（反馈中心/拍卖行页签等） */
.chip { border: 1px solid var(--glass-border, rgba(20,30,60,.12)); background: var(--glass-bg, rgba(255,255,255,.75)); border-radius: 999px; padding: 6px 13px; font-size: 12.5px; font-weight: 600; cursor: pointer; color: var(--text); }
.chip.on { background: var(--accent, #2563eb); color: #fff; border-color: transparent; }
/* 工具箱分组（玻璃 token） */
.tools-group { margin: 10px 0 4px; }
.tools-group-t { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .06em; margin: 0 2px 6px; }
.tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tools-grid button { min-height: 46px; border-radius: 14px; border: 1px solid var(--glass-border, rgba(20,30,60,.08)); background: var(--glass-bg, rgba(255,255,255,.75)); backdrop-filter: blur(12px); font-size: 13px; font-weight: 600; color: var(--text); padding: 6px 4px; }
/* 反馈中心 / 拍卖行通用 */
.fb-chip { display: inline-block; padding: 2px 9px; border-radius: 9px; font-size: 11px; font-weight: 700; background: rgba(37,99,235,.12); color: #2563eb; }
.fb-chip.processing { background: rgba(245,158,11,.16); color: #b45309; }
.fb-chip.replied { background: rgba(16,185,129,.15); color: #047857; }
.fb-chip.resolved { background: rgba(100,116,139,.15); color: #475569; }
.auc-card-media { width: 100%; height: 150px; object-fit: cover; border-radius: 12px; background: #0f172a; }
.auc-price { color: #e11d48; font-weight: 800; }
/* 资讯/热搜玻璃重设计（与全站玻璃 token 统一） */
.nz-head { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.nz-head-ic { font-size: 26px; width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; border-radius: 14px; background: linear-gradient(135deg, rgba(244,63,94,.16), rgba(245,158,11,.16)); border: 1px solid var(--glass-border, rgba(20,30,60,.08)); }
.nz-search { margin: 6px 0 10px; }
.nz-list { display: flex; flex-direction: column; gap: 6px; }
.nz-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--glass-bg, rgba(255,255,255,.7)); border: 1px solid var(--glass-border, rgba(20,30,60,.07)); cursor: pointer; animation: nzIn .3s ease both; }
@keyframes nzIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.nz-rank { width: 24px; height: 24px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 8px; font-weight: 800; font-size: 13px; background: rgba(100,116,139,.14); color: #475569; }
.nz-rank.r1 { background: var(--gold); color: #fff; }
.nz-rank.r2 { background: linear-gradient(135deg, #f59e0b, #fbbf24); color: #fff; }
.nz-rank.r3 { background: linear-gradient(135deg, #38bdf8, #818cf8); color: #fff; }
.nz-title { flex: 1; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nz-heat { font-size: 12px; color: #e11d48; font-weight: 700; flex: none; }
.nz-hotbox { border-radius: 16px; padding: 10px; margin-bottom: 10px; background: linear-gradient(135deg, rgba(244,63,94,.07), rgba(245,158,11,.07)); border: 1px solid var(--glass-border, rgba(20,30,60,.07)); display: flex; flex-direction: column; gap: 6px; }
.nz-hotbox-t { font-weight: 800; font-size: 13px; }
.nz-news { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 14px; background: var(--glass-bg, rgba(255,255,255,.7)); border: 1px solid var(--glass-border, rgba(20,30,60,.07)); cursor: pointer; animation: nzIn .3s ease both; }
.nz-kind { flex: none; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 8px; background: rgba(37,99,235,.12); color: #2563eb; }
.nz-news-main { flex: 1; min-width: 0; }
.nz-go { color: var(--muted); font-size: 18px; }
/* 播放器内评论半屏层（.pl-sheet 以 fixed 的播放器层为定位基准，贴底弹出） */
#plSheet { z-index: 5; }
.pl-sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 62%; display: flex; flex-direction: column; border-radius: 20px 20px 0 0; background: var(--glass-bg, rgba(255,255,255,.92)); backdrop-filter: blur(20px) saturate(1.5); border: 1px solid var(--glass-border, rgba(20,30,60,.09)); box-shadow: 0 -12px 34px rgba(15,35,80,.16); animation: plSheetIn .28s cubic-bezier(.2,.9,.3,1.05); overflow: hidden; }
@keyframes plSheetIn { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.pl-sheet-h { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px 6px; }
.pl-sheet-list { overflow-y: auto; padding: 4px 14px; -webkit-overflow-scrolling: touch; }
.pl-cmt { padding: 8px 0; border-bottom: 1px solid rgba(20,30,60,.06); }
.pl-sheet-bar { display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
.pl-sheet-bar input { flex: 1; min-width: 0; }

/* =====================================================================
   2026-12-05 全局统一层（用户长文规范落地）：
   - 设计 token 锁定：主色紫蓝；色板 主/辅/正文/次要灰/危险；栅格 16 边距/12 卡内边距/8 图文间距；文字五级
   - 控件三件套：主行动=紫蓝玻璃按钮 / 次要=ghost / 文字按钮；关闭返回=圆形玻璃钮；开关=可拖拽 iOS 开关
   - 玻璃只用于弹窗/浮层/重点卡片/底部抽屉；基础列表背景保持干净实色
   ===================================================================== */
:root {
  --pb1: #0071e3; --pb2: #0071e3;                       /* 紫蓝主色（渐变两端） */
  --brand-grad: linear-gradient(135deg, var(--pb1), var(--pb2));
  --brand-blue: #0071e3;                                 /* 旧亮蓝变量收编为紫蓝 */
  --danger: #fa5151;
  --sp-page: 16px; --sp-card: 12px; --sp-gap: 8px;       /* 栅格：页面边距/卡内边距/图标-文字间距 */
  --row-h: 52px;
}
/* 文字五级（大标题/二级/正文/辅助/备注，字号字重锁定） */
.t-title { font-size: 20px; font-weight: 700; line-height: 1.3; }
.t-h2 { font-size: 16px; font-weight: 600; line-height: 1.4; }
.t-body { font-size: 14.5px; font-weight: 400; line-height: 1.55; }
.t-sub { font-size: 13px; font-weight: 400; color: var(--text2); line-height: 1.5; }
.t-note { font-size: 12px; font-weight: 400; color: var(--muted); line-height: 1.5; }
/* 主行动按钮：紫蓝玻璃（渐变+顶部高光+柔和阴影），全站 .primary 统一收编 */
.primary {
  background: var(--brand-grad); color: #fff; border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 4px 14px rgba(0,113,227,.25), inset 0 1px 0 rgba(255,255,255,.35);
}
.primary:hover { background: var(--brand-grad); filter: brightness(1.06); }
.primary:active { filter: brightness(.96); }
.primary:disabled { opacity: .45; box-shadow: none; }
.send { background: var(--brand-grad) !important; color: #fff !important; box-shadow: 0 3px 10px rgba(0,113,227,.22), inset 0 1px 0 rgba(255,255,255,.3); }
/* 文字按钮（第三类） */
.btn-text { background: none; border: none; color: var(--pb1); font-size: 14px; padding: 6px 8px; cursor: pointer; font-family: inherit; }
.btn-text:active { opacity: .6; }
/* 关闭/返回：圆形玻璃钮统一 */
.modal-x, .pg-x {
  background: color-mix(in srgb, var(--panel) 72%, transparent);
  -webkit-backdrop-filter: blur(10px) saturate(1.4); backdrop-filter: blur(10px) saturate(1.4);
  border: 1px solid var(--glass-border, rgba(20,30,60,.09)); box-shadow: 0 2px 8px rgba(16,24,40,.08);
  border-radius: 50%;
}
body.lite .modal-x, body.lite .pg-x { -webkit-backdrop-filter: none; backdrop-filter: none; }
/* ---------- 可拖拽 iOS 开关：圆钮改 transform 驱动（--swx），拖动跟手、过半吸附、弹簧过冲 ----------
   结构不变（input.ios-sw 仍是 checkbox，change 事件/checked 语义全兼容）；拖动逻辑在 app.js 全局委托。
   颜色随位渐变由 JS 拖动时写 inline background（灰→绿插值），松手后交还 CSS 状态色。 */
.ios-sw, .mc-switch { touch-action: none; }
.ios-sw::after, .mc-switch::after {
  left: 2px !important; transform: translateX(var(--swx, 0px));
  transition: transform .32s cubic-bezier(.34, 1.45, .44, 1);
  will-change: transform;
}
.ios-sw:checked::after, .mc-switch:checked::after { --swx: 19px; }
.ios-sw.sw-drag::after, .mc-switch.sw-drag::after { transition: none; }
.ios-sw.sw-locked, .mc-switch.sw-locked { opacity: .45; }
/* ---------- 微信式搜索组件：浅灰圆角条 + 线性 SVG 放大镜（全站统一，禁用 emoji 放大镜） ---------- */
.ic-search { display: inline-block; width: 17px; height: 17px; vertical-align: -3px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b91a1' stroke-width='2.2' stroke-linecap='round'><circle cx='10.5' cy='10.5' r='6.5'/><path d='M15.5 15.5 L21 21'/></svg>") center/contain no-repeat; }
.wx-search { position: relative; display: flex; align-items: center; }
.wx-search > .ic-search { position: absolute; left: 11px; z-index: 1; pointer-events: none; }
.wx-search input { flex: 1; background: #f2f3f5; border: none !important; border-radius: 10px; height: 37px; padding: 0 12px 0 35px !important; font-size: 14px; }
html[data-theme="dark"] .wx-search input { background: #26272b; }
/* 既有搜索容器统一挂图标（会话/通讯录/发现/快刷/商城/闲置/拍卖等入口共用口径） */
.af-search, .stk-search, .set-search, .nz-search { position: relative; }
.af-search::before, .stk-search::before, .set-search::before, .nz-search::before {
  content: ''; position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; z-index: 1; pointer-events: none;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b91a1' stroke-width='2.2' stroke-linecap='round'><circle cx='10.5' cy='10.5' r='6.5'/><path d='M15.5 15.5 L21 21'/></svg>") center/contain no-repeat;
}
.af-search input, .stk-search input, .set-search input, .nz-search input { padding-left: 35px !important; }
#globalSearch { padding-left: 35px !important; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b91a1' stroke-width='2.2' stroke-linecap='round'><circle cx='10.5' cy='10.5' r='6.5'/><path d='M15.5 15.5 L21 21'/></svg>"); background-repeat: no-repeat; background-position: 11px center; background-size: 17px 17px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; background: none; border: none; cursor: pointer; padding: 6px; border-radius: 50%; }
.icon-btn:active { background: var(--panel2); }
/* ---------- 赚钱中心（重做）：紫蓝头卡 + 任务行 + 进度条，杜绝长文案叠印 ---------- */
.earn-head { background: var(--brand-grad); color: #fff; border-radius: 16px; padding: 14px 16px; margin-bottom: 12px; box-shadow: 0 6px 18px rgba(0,113,227,.22), inset 0 1px 0 rgba(255,255,255,.3); }
.earn-head .eh-t { font-size: 16px; font-weight: 700; }
.earn-head .eh-s { font-size: 12.5px; opacity: .88; margin-top: 3px; line-height: 1.5; }
.earn-methods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.earn-m { background: var(--panel2); border: 1px solid var(--border); border-radius: 12px; padding: 9px 4px; text-align: center; font-size: 12.5px; cursor: pointer; font-family: inherit; color: var(--text); }
.earn-m:active { background: var(--panel3); }
.earn-task { display: flex; align-items: center; gap: 10px; padding: 11px 2px; border-bottom: 1px solid var(--border); }
.earn-task:last-child { border-bottom: none; }
.earn-task .et-main { flex: 1; min-width: 0; }
.earn-task .et-name { font-size: 14.5px; font-weight: 600; }
.earn-task .et-desc { font-size: 12px; color: var(--muted); margin-top: 1px; }
.prog { height: 5px; border-radius: 99px; background: var(--panel3); margin-top: 6px; overflow: hidden; }
.prog > i { display: block; height: 100%; border-radius: 99px; background: var(--brand-grad); transition: width .4s ease; }
.et-done { font-size: 13px; color: var(--muted); white-space: nowrap; }
/* ---------- 闲置市场（闲鱼式）：双列瀑布流 ---------- */
.idle-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.idle-card { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; cursor: pointer; }
.idle-card:active { opacity: .85; }
.idle-media { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; background: var(--panel2); }
.idle-media.ph { display: flex; align-items: center; justify-content: center; font-size: 40px; color: var(--muted); }
.idle-info { padding: 8px 10px 10px; }
.idle-name { font-size: 13.5px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.idle-price { color: #e11d48; font-weight: 800; font-size: 16px; margin-top: 4px; }
.idle-seller { display: flex; align-items: center; gap: 5px; margin-top: 5px; font-size: 11.5px; color: var(--muted); }
.idle-seller img { width: 16px; height: 16px; border-radius: 50%; object-fit: cover; }
.idle-detail-media { width: 100%; max-height: 320px; object-fit: contain; background: #111; border-radius: 12px; display: block; }
/* ---------- 交友卡 ---------- */
.date-card { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; margin-bottom: 12px; }
.date-photo { width: 100%; height: 190px; object-fit: cover; display: block; background: var(--panel2); }
.date-body { padding: 12px 14px; }
.date-acts { display: flex; gap: 10px; padding: 0 14px 14px; }
.date-acts .grow { flex: 1; }
/* ---------- SVIP 中心（五区） ---------- */
.svip-sec-t { font-size: 13px; font-weight: 700; color: var(--text2); margin: 14px 0 6px; }
.svip-row { display: flex; align-items: center; gap: 10px; padding: 10px 2px; border-bottom: 1px solid var(--border); }
.svip-row:last-child { border-bottom: none; }
.svip-row .sr-main { flex: 1; min-width: 0; }
.svip-row .sr-name { font-size: 14.5px; font-weight: 600; display: flex; align-items: center; gap: 7px; }
.svip-row .sr-desc { font-size: 12px; color: var(--muted); margin-top: 1px; line-height: 1.5; }
.svip-plaque { background: linear-gradient(135deg, #2e2a20, #1d1a13); border: 1px solid rgba(212,175,55,.45); color: #fff; border-radius: 16px; padding: 15px 16px; box-shadow: 0 8px 22px rgba(160,130,40,.28), inset 0 1px 0 rgba(255,255,255,.18); }
.ic-crown { display: inline-block; width: 18px; height: 18px; vertical-align: -3px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23f5c542'><path d='M3 8l4.5 4L12 5l4.5 7L21 8l-1.6 9.2a1.5 1.5 0 0 1-1.5 1.3H6.1a1.5 1.5 0 0 1-1.5-1.3L3 8z'/></svg>") center/contain no-repeat; }
.pt-levels { display: flex; gap: 6px; }
.pt-levels button { border: 1px solid var(--border2); background: var(--panel); color: var(--text2); border-radius: 99px; padding: 5px 12px; font-size: 12.5px; cursor: pointer; font-family: inherit; }
.pt-levels button.on { background: var(--brand-grad); color: #fff; border-color: transparent; }
.pt-levels button:disabled { opacity: .45; cursor: default; }
/* 共同好友 */
.mutual-link { color: var(--pb1); cursor: pointer; font-size: 12.5px; }
/* 粒子消散画布 */
.dissolve-canvas { position: fixed; pointer-events: none; z-index: 300; }
/* 文案防叠印兜底：元信息统一行高，弹窗内容区不被浮动元素压盖 */
.b-meta { line-height: 1.55; }
.modal-body { overflow-wrap: break-word; }

/* ============================================================
   正式版（v1.0）：iMessage 式气泡几何 + 消息状态机 + Tapback 反应
   优先级说明：本层只规定【默认气泡】的几何与状态排版。
   已装备的气泡皮肤/装扮优先级更高——皮肤通过行内 CSS 变量
   （--bubble-me / --bubble-other，写在 <html> 行内样式上）与
   body[data-bf] 工艺层（果冻/幻彩/典藏/传说）生效，本层不覆盖
   它们的背景与质感；主题（44 套）同理通过变量换色。
   ============================================================ */
.msg-row { max-width: min(72%, 640px); }
@media (max-width: 640px) { .msg-row { max-width: 78%; } }
.msg-row .bubble { border-radius: 18px 18px 18px 14px; border-color: transparent; }
.msg-row.me .bubble { border-radius: 18px 18px 14px 18px; }
.msg-row.grp-mid .bubble { border-radius: 18px; }
.msg-row.grp { margin-top: -10px; } /* 与列表 14px 间距叠加 = 同人连发 4px */
.msg-row.grp-mid .avatar { visibility: hidden; }
.msg-time-sep { align-self: center; font-size: 11.5px; color: var(--muted); padding: 2px 6px; text-align: center; }
.msg-status { transition: color .2s; }
.msg-fail {
  width: 18px; height: 18px; border-radius: 50%; border: none; cursor: pointer;
  background: #fa5151; color: #fff; font-size: 12px; font-weight: 700; line-height: 18px;
  padding: 0; display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.msg-fail.hidden { display: none; }
.chat-conn {
  text-align: center; font-size: 12px; padding: 6px 10px; color: #b26a00;
  background: rgba(255, 190, 60, .16); border-bottom: 1px solid var(--border);
}
.chat-conn.ok { color: #067647; background: rgba(18, 183, 106, .14); }
.chat-conn.hidden { display: none; }
/* Tapback：反应贴在气泡下角（上叠 9px 呈贴角效果），双方可见 */
.bubble-wrap { position: relative; }
.msg-reactions { display: flex; gap: 4px; flex-wrap: wrap; position: relative; margin-top: -9px; z-index: 2; padding: 0 6px; }
.msg-reactions:empty { display: none; }
.rx-chip {
  font-size: 12px; line-height: 1.5; background: var(--panel); border: 1px solid var(--border);
  border-radius: 999px; padding: 0 7px; box-shadow: var(--sh-1); cursor: pointer; user-select: none;
}
.rx-chip.mine { border-color: var(--accent); color: var(--accent); font-weight: 600; }
.tapback-pop {
  position: absolute; bottom: calc(100% + 8px); left: 0; z-index: 40;
  display: flex; gap: 2px; padding: 5px 9px; border-radius: 999px;
  background: rgba(32, 33, 38, .92); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: var(--sh-2); animation: tbIn .18s cubic-bezier(.34, 1.4, .64, 1) both;
}
.msg-row.me .tapback-pop { left: auto; right: 0; }
.tapback-pop button { font-size: 19px; line-height: 1.2; background: none; border: none; cursor: pointer; padding: 2px 4px; transition: transform .15s; }
.tapback-pop button:hover { transform: scale(1.3); }
.tapback-pop button:active { transform: scale(1.45); }
@keyframes tbIn { from { opacity: 0; transform: translateY(5px) scale(.9); } to { opacity: 1; transform: none; } }

/* ============================================================
   (13) 真机验收修复轮：列表留白 / 通话界面 v2 / 杂项
   ============================================================ */
/* C：主列表（消息/通讯录共用 .side-list）底部留白 = 标签栏高 + 安全区，仅标签可见时 */
body:not(.tabs-off):not(.kb-open) .side-list { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
/* 输入行里的语音切换钮 */
.composer-main #btnVoice { background:none; border:none; padding:7px 5px; line-height:1; flex:none; color:var(--text2); cursor:pointer; }
.composer-main #btnVoice:active { transform: scale(.92); }
/* 「新的朋友」行角标与标签角标同组件（.badge），仅微调对齐 */
.wx-centry .wx-nf-badge { margin-left:auto; }
.wx-centry .wx-nf-badge:not(.hidden) + i { margin-left:6px; }

/* ---------- H. 通话界面 v2 ---------- */
#callLayer { backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%); transition: opacity .2s ease; }
#callLayer.call-leaving { opacity:0; }
.call-card { position:relative; width:min(92vw, 400px); text-align:center; padding:30px 22px 24px; border-radius:28px;
  background:rgba(255,255,255,.78); backdrop-filter: blur(24px) saturate(170%); -webkit-backdrop-filter: blur(24px) saturate(170%);
  border:1px solid rgba(255,255,255,.85); box-shadow:0 30px 70px rgba(10,10,40,.35); animation: sheetUp .32s cubic-bezier(.3,1.2,.4,1); }
.call-ava { width:86px; height:86px; border-radius:50%; object-fit:cover; box-shadow:0 10px 26px rgba(30,30,60,.25); }
.call-peer { font-size:20px; font-weight:700; margin-top:12px; color:#1c1e26; }
.call-status { font-size:14.5px; color:#5b6070; margin-top:5px; min-height:21px; }
.call-status.calling { animation: callBreath 1.6s ease-in-out infinite; }
@keyframes callBreath { 0%,100% { opacity:.45; } 50% { opacity:1; } }
.call-card #localVideo { position:absolute; top:14px; right:14px; width:84px; height:112px; object-fit:cover; border-radius:14px; border:2px solid rgba(255,255,255,.9); box-shadow:0 8px 20px rgba(0,0,0,.25); background:#222; }
.call-card #remoteVideo { margin-top:14px; max-height:38vh; object-fit:cover; background:#1a1a22; }
.call-controls { display:flex; gap:10px; justify-content:center; align-items:flex-start; margin-top:22px; flex-wrap:wrap; }
.call-ctl { width:58px; min-height:58px; border-radius:50%; border:1px solid rgba(255,255,255,.9); cursor:pointer;
  background:rgba(255,255,255,.75); color:#2c2f3a; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:1px;
  box-shadow:0 6px 16px rgba(30,30,60,.14); padding:6px 2px; }
.call-ctl span { font-size:10px; color:#5b6070; line-height:1; }
.call-ctl:active { transform: scale(.94); }
.call-ctl.off { background:#2c2f3a; color:#fff; }
.call-ctl.off span { color:#cfd3e0; }
.call-ctl.hang { background:#e60012; color:#fff; border-color:transparent; width:64px; min-height:64px; box-shadow:0 10px 22px rgba(230,0,18,.35); }
.call-ctl.accept { background:#07c160; color:#fff; border-color:transparent; width:64px; min-height:64px; box-shadow:0 10px 22px rgba(7,193,96,.35); }
.call-mini-bubble { position:fixed; right:14px; bottom:120px; z-index:210; min-width:64px; height:64px; padding:0 12px; border-radius:999px;
  border:1px solid rgba(255,255,255,.85); background:rgba(38,40,54,.88); color:#fff; font-size:14.5px; font-weight:600;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow:0 14px 34px rgba(10,10,40,.4); cursor:grab; touch-action:none; }
.call-mini-bubble:active { cursor:grabbing; transform: scale(.96); }
/* f31 小窗形态下新通话卡的适配 */
#callLayer.f31-mini .call-card { width:100%; padding:12px; border-radius:16px; }
#callLayer.f31-mini .call-ava { width:40px; height:40px; }
#callLayer.f31-mini .call-peer { font-size:14px; margin-top:4px; }
#callLayer.f31-mini #localVideo, #callLayer.f31-mini #remoteVideo { display:none !important; }
#callLayer.f31-mini .call-ctl { width:42px; min-height:42px; }
#callLayer.f31-mini .call-ctl span { display:none; }

/* ============================================================
   (16) 聊天页结构修复 + 苹果蓝规范 + 背景层（2026-12-05）
   A 三段式固定布局：文档层禁止滚动/橡皮筋回弹，滚动只发生在
   消息容器内（overscroll-behavior: contain 断链），上滑不再
   把输入栏下方拉出一片空白。
   ============================================================ */
html, body { overscroll-behavior: none; }
body { overflow: hidden; }
#chatPanel { position: relative; height: 100%; max-height: 100%; overflow: hidden; }
#chatPanel > .chat-head, #chatPanel > .composer, #chatPanel > .pin-bar,
#chatPanel > .chat-conn, #chatPanel > .typing-tip, #chatPanel > .quote-bar,
#chatPanel > .quick-bar { flex: none; }
.msg-list, #msgList { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.scroll-page, .side-list, .profile-card, .modal { overscroll-behavior: contain; }

/* ---------- B 顶部导航收敛：标题区放宽，图标钮统一 ---------- */
.chat-head { padding: 8px 12px; min-height: 58px; gap: 8px; }
.chat-title { font-size: 16px; line-height: 1.35; }
.chat-sub { font-size: 11.5px; line-height: 1.3; margin-top: 1px; }
.chat-head-ic {
  width: 40px; height: 40px; flex: none; display: flex; align-items: center; justify-content: center;
  background: none; border: none; border-radius: 50%; color: var(--text); cursor: pointer; padding: 0;
}
.chat-head-ic:active { background: var(--panel2); transform: scale(.94); }
#legacyChatBtns { display: none !important; }
#chatMoreMenu16 {
  position: absolute; top: calc(100% + 6px); right: 10px; z-index: 70; min-width: 176px; padding: 6px;
  background: rgba(255,255,255,.85); backdrop-filter: blur(var(--glass-blur)) saturate(175%); -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(175%);
  border: 1px solid rgba(255,255,255,.85); border-radius: 16px; box-shadow: 0 16px 40px rgba(30,30,60,.18);
  opacity: 0; transform: translateY(-6px) scale(.98); pointer-events: none;
  transition: opacity .18s, transform .22s cubic-bezier(.34,1.4,.64,1);
}
#chatMoreMenu16.open { opacity: 1; transform: none; pointer-events: auto; }
#chatMoreMenu16 button {
  display: flex; width: 100%; align-items: center; gap: 9px; text-align: left; padding: 11px 12px;
  border: none; background: transparent; border-radius: 10px; font-size: 14.5px; color: var(--text); cursor: pointer;
}
#chatMoreMenu16 button:active { background: rgba(0,113,227,.09); }
#chatMoreMenu16 button.danger { color: #ff3b30; }
html[data-theme-mode="dark"] #chatMoreMenu16, .dark #chatMoreMenu16 { background: rgba(32,34,44,.88); border-color: rgba(255,255,255,.14); }

/* ---------- D 气泡与输入栏规范（聊天域） ---------- */
:root { --bubble-me: #0071e3; --bubble-me-text: #ffffff; --bubble-other: #e9e9eb; }
#chatPanel .msg-list { padding: 16px 18px 10px; gap: 12px; }
#chatPanel .msg-row { max-width: min(74%, 620px); }
#chatPanel .bubble { border-radius: 18px; padding: 9px 13px; }
#chatPanel .msg-row.me .bubble { border-radius: 18px; }
#chatPanel .bubble.bubble-num { border-radius: 999px; padding: 6px 13px; }
#chatPanel .msg-meta { margin-top: 5px; gap: 10px; font-size: 11px; }
#chatPanel .sender-name { margin-bottom: 4px; }
#chatPanel .system-line {
  background: rgba(125,135,155,.16); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  padding: 4px 14px; border-radius: 999px; font-size: 12px;
}
#chatPanel .composer-main { align-items: center; gap: 8px; }
#chatPanel .composer-main textarea { min-height: 40px; padding: 10px 14px; border-radius: 12px; font-size: 14.5px; }
#chatPanel .composer-main #btnEmoji { height: 40px; padding: 0 4px; display: flex; align-items: center; }
#chatPanel #btnAttachToggle { width: 40px; height: 40px; }
#chatPanel .composer-main .send {
  height: 40px; padding: 0 18px; display: flex; align-items: center; border-radius: 12px;
  background: #0071e3; border-color: transparent; color: #fff;
}
#chatPanel .composer-main .send:hover { background: #0063cc; }
#chatPanel #btnVoice { width: 40px; height: 40px; flex: none; }
#chatPanel #holdTalk36 { height: 40px; padding: 0; border-radius: 12px; }

/* ---------- E 聊天背景层 ---------- */
#chatBgLayer16 {
  position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  background: var(--bg);
}
#chatBgLayer16 .bg-img {
  position: absolute; inset: -24px; background-size: cover; background-position: center;
}
#chatBgLayer16 .bg-scrim { position: absolute; inset: 0; }
#chatPanel .msg-list { position: relative; z-index: 1; background: transparent; }
#chatPanel .chat-head, #chatPanel .composer { position: relative; z-index: 2; }
/* 预设背景（纯 CSS 渐变/纹理，低对比低饱和，不抢气泡） */
.bgpreset-clear { background: linear-gradient(160deg, #eef2f7 0%, #e3ebf5 55%, #dfe9f2 100%); }
.bgpreset-clear::after { content: ''; position: absolute; inset: 0;
  background: radial-gradient(420px 300px at 18% 8%, rgba(255,255,255,.75), transparent 60%), radial-gradient(380px 300px at 88% 92%, rgba(140,180,230,.20), transparent 60%); }
.bgpreset-forest { background: linear-gradient(165deg, #e6efe9 0%, #d9e8dd 60%, #cfdfd4 100%); }
.bgpreset-forest::after { content: ''; position: absolute; inset: 0;
  background: radial-gradient(300px 200px at 22% 18%, rgba(255,255,240,.5), transparent 65%), radial-gradient(340px 260px at 80% 78%, rgba(90,140,105,.16), transparent 60%); }
.bgpreset-star { background: linear-gradient(170deg, #232742 0%, #2c3050 58%, #232742 100%); }
.bgpreset-star::after { content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(1.4px 1.4px at 12% 22%, rgba(255,255,255,.75) 50%, transparent 51%), radial-gradient(1.1px 1.1px at 68% 12%, rgba(255,255,255,.6) 50%, transparent 51%), radial-gradient(1.6px 1.6px at 84% 38%, rgba(255,255,255,.7) 50%, transparent 51%), radial-gradient(1.1px 1.1px at 34% 56%, rgba(255,255,255,.5) 50%, transparent 51%), radial-gradient(1.3px 1.3px at 52% 82%, rgba(255,255,255,.6) 50%, transparent 51%), radial-gradient(1px 1px at 90% 74%, rgba(255,255,255,.5) 50%, transparent 51%), radial-gradient(1.2px 1.2px at 6% 66%, rgba(255,255,255,.55) 50%, transparent 51%); }
.bgpreset-group { background: linear-gradient(165deg, #f0f1f4 0%, #e8eaee 100%); }
.bgpreset-group::after { content: ''; position: absolute; inset: 0;
  background: radial-gradient(500px 340px at 50% 0%, rgba(255,255,255,.6), transparent 60%); }
.bgpreset-gold { background: linear-gradient(165deg, #f4efe4 0%, #eee5d0 60%, #e9dfc6 100%); }
.bgpreset-gold::after { content: ''; position: absolute; inset: 0;
  background: radial-gradient(360px 240px at 16% 10%, rgba(212,175,55,.14), transparent 60%), radial-gradient(420px 300px at 86% 90%, rgba(212,175,55,.12), transparent 60%); }
html[data-theme-mode="dark"] .bgpreset-clear, .dark .bgpreset-clear { background: linear-gradient(160deg, #23262e, #1f2733); }
html[data-theme-mode="dark"] .bgpreset-group, .dark .bgpreset-group { background: linear-gradient(165deg, #24262c, #1e2026); }
html[data-theme-mode="dark"] .bgpreset-gold, .dark .bgpreset-gold { background: linear-gradient(165deg, #2e2a20, #26221a); }

/* 背景设置面板 */
.bg16-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.bg16-thumb { position: relative; height: 86px; border-radius: 12px; overflow: hidden; border: 2px solid transparent; cursor: pointer; }
.bg16-thumb.sel { border-color: #0071e3; }
.bg16-thumb .bg16-tname { position: absolute; left: 0; right: 0; bottom: 0; padding: 3px 6px; font-size: 11px; color: #fff;
  background: linear-gradient(transparent, rgba(10,14,24,.55)); text-align: left; }
.bg16-thumb .bg16-lock { position: absolute; top: 4px; right: 6px; font-size: 10px; color: #ffe9a8; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.bg16-preview { position: relative; height: 190px; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); }
.bg16-preview .pv-b { position: absolute; max-width: 62%; padding: 7px 11px; border-radius: 14px; font-size: 12.5px; }
.bg16-preview .pv-l { left: 12px; top: 16px; background: #e9e9eb; color: #1c1c1e; }
.bg16-preview .pv-r { right: 12px; top: 58px; background: #0071e3; color: #fff; }
.bg16-slider { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.bg16-slider input[type="range"] { flex: 1; padding: 0; }

/* ================= (17) B. 聊天头三段式：左返回 / 中标题 / 右图标，写死宽度不叠压 ================= */
.chat-head { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; }
.chat-head-main { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; text-align: center; }
.chat-head-main .chat-title { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-head-subrow17 { display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; max-width: 100%; }
.chat-head-subrow17 .chat-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-head-btns { display: flex; flex-wrap: nowrap; align-items: center; gap: 2px; }
.spark-badge.in-main17 { margin: 2px 0 0; padding: 1px 8px; font-size: 11px; flex: none; }

/* ================= (17) C. Tab 沉浸式：浏览下滑收起（与 tabs-off/kb-open 并行，口径一致） ================= */
body.tabs-scroll-hide17 .wx-tabs { transform: translate(-50%, 140%); opacity: 0; pointer-events: none; }

/* ================= (17) E. 我的页第一行功能栏 ================= */
.me-quick17 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 0 12px; padding: 14px 6px; background: var(--panel); border: 1px solid var(--border); border-radius: 18px; }
.me-q17 { display: flex; flex-direction: column; align-items: center; gap: 6px; background: none; border: none; cursor: pointer; font-size: 13px; color: var(--text); padding: 2px 0; }
.me-q-ic17 { width: 42px; height: 42px; border-radius: 13px; display: flex; align-items: center; justify-content: center; font-size: 20px; background: color-mix(in srgb, var(--accent) 9%, var(--panel2)); color: var(--accent); }
.me-q17:active { transform: scale(.96); }

/* ================= (17) D. 留言墙 ================= */
.wall-hero17 { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; padding: 18px 16px; border-radius: 22px; cursor: pointer;
  background: linear-gradient(135deg, rgba(0,113,227,.16), rgba(94,92,230,.12) 55%, rgba(255,255,255,.35));
  border: 1px solid rgba(255,255,255,.55); box-shadow: 0 10px 28px rgba(31,64,120,.14), inset 0 1px 0 rgba(255,255,255,.6);
  backdrop-filter: blur(16px) saturate(1.5); -webkit-backdrop-filter: blur(16px) saturate(1.5); }
.wall-hero17:active { transform: scale(.985); }
.wall-hero-ic17 { width: 46px; height: 46px; flex: none; border-radius: 14px; display: flex; align-items: center; justify-content: center; color: #fff; background: var(--accent); box-shadow: 0 6px 16px rgba(0,113,227,.28); }
.wall-hero-ic17 svg { width: 26px; height: 26px; }
.wall-hero-tx17 { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wall-hero-tx17 b { font-size: 17.5px; }
.wall-hero-tx17 i { font-style: normal; font-size: 12.5px; color: var(--muted); }
.wall-hero-arr17 { color: var(--muted); font-size: 20px; }

.wall-layer17 { position: fixed; inset: 0; z-index: 320; display: flex; flex-direction: column; background: var(--bg); animation: fadeSlide .22s ease both; }
.wall-head17 { display: flex; align-items: center; gap: 8px; padding: calc(10px + env(safe-area-inset-top)) 12px 10px;
  background: color-mix(in srgb, var(--panel) 82%, transparent); backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5); border-bottom: 1px solid var(--border); }
.wall-back17 { width: 38px; height: 38px; flex: none; border: none; border-radius: 50%; background: var(--panel2, rgba(120,120,128,.12)); font-size: 22px; color: var(--text); cursor: pointer; }
.wall-title17 { flex: 1; text-align: center; font-size: 16.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wall-head-btns17 { display: flex; gap: 6px; flex: none; }
.wall-hbtn17 { border: 1px solid var(--border); background: var(--panel); color: var(--text); border-radius: 999px; padding: 6px 12px; font-size: 13px; cursor: pointer; }
.wall-feed17 { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 12px; }
.wall-waterfall17 { columns: 2; column-gap: 10px; }
.wall-card17 { position: relative; break-inside: avoid; margin-bottom: 10px; padding: 12px; border-radius: 18px; overflow: hidden;
  background: color-mix(in srgb, var(--panel) 88%, transparent); border: 1px solid var(--border);
  backdrop-filter: blur(12px) saturate(1.4); -webkit-backdrop-filter: blur(12px) saturate(1.4); box-shadow: 0 4px 14px rgba(20,30,60,.05); }
.wall-card17.wall-pinned17 { border: 1.6px solid #0071e3; box-shadow: 0 0 0 3px rgba(0,113,227,.12); }
.wall-card17.wall-svip17 { background: linear-gradient(150deg, rgba(255,244,214,.92), rgba(255,231,171,.75) 45%, rgba(255,248,230,.9)); border-color: rgba(201,150,32,.45); }
.wall-gold-dots17 { position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(212,160,32,.5) 1.1px, transparent 1.6px), radial-gradient(rgba(212,160,32,.32) 1px, transparent 1.5px);
  background-size: 46px 46px, 30px 30px; background-position: 6px 10px, 18px 22px; }
body.dress-fx-off .wall-gold-dots17 { display: none; }
/* (21) 留言墙 SVIP 鎏金粒与粒子强度联动：features42 按 /api/f14/svip/state 给 body 打 pt-lv1/2/3 或 pt-off21 */
body.pt-off21 .wall-gold-dots17 { display: none; }
body.pt-lv1 .wall-gold-dots17 { opacity: .22; }
body.pt-lv2 .wall-gold-dots17 { opacity: .5; }
body.pt-lv3 .wall-gold-dots17 { opacity: .85; animation: wallGoldDrift21 5s ease-in-out infinite alternate; }
@keyframes wallGoldDrift21 { from { background-position: 6px 10px, 18px 22px; } to { background-position: 15px 1px, 7px 31px; } }
/* ---- (21) 股票页同花顺风：指数卡/分视图/盘口/等宽数字/玻璃行 ---- */
.stk-num{font-variant-numeric:tabular-nums; font-feature-settings:"tnum";}
.stk-row{background:color-mix(in srgb, var(--panel) 88%, transparent); border:1px solid var(--border); border-radius:14px; box-shadow:var(--sh-1);}
.stk-idx21{display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-bottom:2px;}
.stk-idx-card21{background:color-mix(in srgb, var(--panel) 88%, transparent); backdrop-filter:blur(var(--glass-blur,18px)); -webkit-backdrop-filter:blur(var(--glass-blur,18px)); border:1px solid var(--border); border-radius:16px; box-shadow:var(--sh-1); padding:10px 12px;}
.stk-idx-name21{font-size:12.5px; color:var(--text2); font-weight:600;}
.stk-idx-level21{font-size:19px; font-weight:800; line-height:1.25;}
.stk-idx-chg21{font-size:11.5px; font-weight:600;}
.stk-vtabs{display:flex; gap:6px; margin:12px 0 4px; background:var(--surface-2); border-radius:12px; padding:4px;}
.stk-vtabs button{flex:1; border:none; background:transparent; color:var(--text2); font-size:13.5px; font-weight:600; padding:8px 0; border-radius:9px; cursor:pointer;}
.stk-vtabs button.on{background:var(--panel); color:var(--text); box-shadow:var(--sh-1);}
.stk-book21{background:color-mix(in srgb, var(--panel) 88%, transparent); border:1px solid var(--border); border-radius:16px; box-shadow:var(--sh-1); padding:10px 12px; margin-top:12px;}
.stk-book-t21{font-size:13px; font-weight:700; margin-bottom:6px;}
.stk-book-row21{display:grid; grid-template-columns:34px 74px 1fr; align-items:center; gap:8px; padding:3px 0; font-size:13px;}
.stk-book-lb21{color:var(--text2); font-size:12px;}
.stk-book-qty21{position:relative; display:flex; align-items:center; height:16px;}
.stk-book-qty21 i{position:absolute; left:0; top:2px; bottom:2px; background:color-mix(in srgb, var(--text2) 16%, transparent); border-radius:3px;}
.stk-book-qty21 em{position:relative; font-style:normal; margin-left:auto; color:var(--text2); font-size:12px;}
.stk-book-mid21{height:1px; background:var(--border); margin:5px 0;}
.wall-card-head17 { position: relative; display: flex; align-items: center; gap: 7px; }
.wall-ava17 { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex: none; }
.wall-name17 { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wall-svip-tag17 { font-style: normal; flex: none; font-size: 9.5px; font-weight: 800; letter-spacing: .4px; color: #7a5200; background: linear-gradient(135deg, #ffe9a8, #f5c542); border-radius: 5px; padding: 1.5px 5px; }
.wall-pin-tag17 { font-style: normal; flex: none; font-size: 10px; color: #0071e3; border: 1px solid #0071e3; border-radius: 5px; padding: 1px 5px; }
.wall-time17 { margin-left: auto; flex: none; font-size: 11px; color: var(--muted); }
.wall-more17 { flex: none; width: 28px; height: 28px; border: none; border-radius: 50%; background: transparent; color: var(--muted); font-size: 15px; cursor: pointer; letter-spacing: 1px; }
.wall-body17 { position: relative; margin-top: 8px; font-size: 14px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.wall-imgs17 { position: relative; display: grid; gap: 5px; margin-top: 8px; }
.wall-imgs17.n1 { grid-template-columns: 1fr; } .wall-imgs17.n2 { grid-template-columns: 1fr 1fr; } .wall-imgs17.n3 { grid-template-columns: 1fr 1fr 1fr; }
.wall-img17 { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; cursor: pointer; }
.wall-imgs17.n1 .wall-img17 { aspect-ratio: auto; max-height: 220px; }
.wall-foot17 { position: relative; display: flex; align-items: center; gap: 14px; margin-top: 9px; }
.wall-like17 { border: none; background: none; cursor: pointer; font-size: 13.5px; color: var(--muted); padding: 2px 4px; }
.wall-like17.on { color: #f43f5e; }
.wall-like17.pop { animation: wallLikePop .32s cubic-bezier(.34,1.56,.64,1); }
@keyframes wallLikePop { 40% { transform: scale(1.45); } }
.wall-replybtn17 { border: none; background: none; cursor: pointer; font-size: 13px; color: var(--muted); padding: 2px 4px; }
.wall-replies17 { position: relative; margin-top: 8px; padding: 8px 10px; border-radius: 12px; background: rgba(120,120,128,.09); display: flex; flex-direction: column; gap: 5px; }
.wall-reply17 { font-size: 12.5px; line-height: 1.5; margin-left: 10px; }
.wall-reply-name17 { font-weight: 600; margin-right: 4px; }
.wall-reply-name17 .wall-svip-tag17 { margin-left: 3px; }
.wall-reply-del17 { font-style: normal; color: var(--muted); margin-left: 8px; cursor: pointer; font-size: 11.5px; }
.wall-empty17 { text-align: center; padding: 70px 20px; color: var(--muted); }
.wall-empty-t17 { font-size: 16px; color: var(--text); font-weight: 600; margin-bottom: 6px; }
.wall-empty-s17 { font-size: 13px; margin-bottom: 16px; }
.wall-empty-btn17 { border: none; background: #0071e3; color: #fff; border-radius: 999px; padding: 9px 22px; font-size: 14px; cursor: pointer; }
.wall-composer17 { border-top: 1px solid var(--border); padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--panel) 85%, transparent); backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5); }
.wall-reply-hint17 { font-size: 12px; color: var(--muted); padding: 2px 4px 6px; }
.wall-reply-hint17 i { font-style: normal; color: #0071e3; cursor: pointer; margin-left: 8px; }
.wall-imgprev17 { display: flex; gap: 8px; padding: 2px 2px 8px; flex-wrap: wrap; }
.wall-imgthumb17 { position: relative; width: 52px; height: 52px; }
.wall-imgthumb17 img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; }
.wall-imgthumb17 i { position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; border-radius: 50%; background: rgba(20,20,25,.75); color: #fff; font-style: normal; font-size: 12px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.wall-composer-row17 { display: flex; align-items: flex-end; gap: 7px; }
.wall-composer-row17 textarea { flex: 1; min-width: 0; border: 1px solid var(--border); border-radius: 16px; background: var(--panel); color: var(--text); padding: 9px 12px; font-size: 14.5px; line-height: 1.4; resize: none; max-height: 96px; font-family: inherit; }
.wall-cbtn17 { width: 38px; height: 38px; flex: none; border: none; border-radius: 50%; background: var(--panel2, rgba(120,120,128,.12)); color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.wall-cbtn17 svg { width: 21px; height: 21px; }
.wall-send17 { flex: none; border: none; border-radius: 999px; background: #0071e3; color: #fff; font-size: 14px; padding: 9px 16px; cursor: pointer; }
.wall-send17:disabled { background: rgba(120,120,128,.3); color: rgba(255,255,255,.85); cursor: default; }
.wall-emoji-pop17 { display: flex; flex-wrap: wrap; gap: 2px; padding-top: 8px; max-height: 150px; overflow-y: auto; }
.wall-emoji-pop17 button { border: none; background: none; font-size: 21px; padding: 4px; cursor: pointer; }
.wall-set-row17 { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14.5px; }
.wall-seg17 { display: flex; background: rgba(120,120,128,.14); border-radius: 10px; padding: 2px; }
.wall-seg17 button { border: none; background: none; padding: 6px 10px; border-radius: 8px; font-size: 12.5px; color: var(--muted); cursor: pointer; }
.wall-seg17 button.on { background: var(--panel); color: var(--text); font-weight: 600; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.wall-switch17 { -webkit-appearance: none; appearance: none; width: 47px; height: 28px; border-radius: 99px; background: #e9e9ea; border: none; padding: 0; position: relative; cursor: pointer; transition: background .3s; flex: none; }
.wall-switch17::after { content: ''; position: absolute; top: 2px; left: 2px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.28); transition: left .3s cubic-bezier(.34,1.3,.44,1); }
.wall-switch17.on { background: #34c759; } .wall-switch17.on::after { left: 21px; }
.wall-pending-item17 { border: 1px solid var(--border); border-radius: 14px; padding: 10px 12px; margin-bottom: 8px; }
.wall-pending-meta17 { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-bottom: 4px; }
.wall-pending-txt17 { font-size: 14px; margin-bottom: 6px; white-space: pre-wrap; word-break: break-word; }
#wallSheet17 { position: fixed; inset: 0; z-index: 400; }
.wall-sheet-mask17 { position: absolute; inset: 0; background: rgba(10,10,18,.45); }
.wall-sheet-box17 { position: absolute; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 2px; animation: fadeSlide .2s ease both; }
.wall-sheet-item17 { border: none; background: var(--panel); color: var(--text); font-size: 15.5px; padding: 14px; cursor: pointer; }
.wall-sheet-item17:first-child { border-radius: 16px 16px 4px 4px; }
.wall-sheet-item17.danger { color: #e0245e; }
.wall-sheet-cancel17 { border-radius: 4px 4px 16px 16px !important; margin-top: 6px; font-weight: 600; }
.wall-entry17 { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 10px; padding: 12px; border: 1px solid var(--border); border-radius: 16px; background: var(--panel); color: var(--text); cursor: pointer; text-align: left; }
.wall-entry-ic17 { width: 38px; height: 38px; flex: none; border-radius: 11px; display: flex; align-items: center; justify-content: center; color: #fff; background: var(--accent); }
.wall-entry-ic17 svg { width: 21px; height: 21px; }
.wall-entry-tx17 { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.wall-entry-tx17 b { font-size: 14.5px; } .wall-entry-tx17 i { font-style: normal; font-size: 12px; color: var(--muted); }
.wall-entry-arr17 { color: var(--muted); font-size: 18px; }

/* ================= (17) F. 作者彩蛋 ================= */
#eggMid17 { position: fixed; inset: 0; z-index: 500; display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); animation: fadeSlide .3s ease both; }
#eggMid17 img { width: 150px; height: 150px; object-fit: contain; cursor: pointer; animation: fxPop .5s cubic-bezier(.2,1.4,.4,1); }
#eggReveal17 { position: fixed; inset: 0; z-index: 501; display: flex; align-items: center; justify-content: center; padding: 22px;
  background: rgba(12,14,24,.42); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: fadeSlide .3s ease both; }
.egg-card17 { width: min(400px, 92vw); text-align: center; padding: 30px 26px 24px; border-radius: 26px;
  background: color-mix(in srgb, var(--panel) 82%, transparent); border: 1px solid rgba(255,255,255,.5);
  box-shadow: 0 24px 60px rgba(10,16,40,.28), inset 0 1px 0 rgba(255,255,255,.55);
  backdrop-filter: blur(20px) saturate(1.5); -webkit-backdrop-filter: blur(20px) saturate(1.5); animation: fxPop .45s cubic-bezier(.2,1.4,.4,1); }
.egg-mascot17 { width: 74px; height: 74px; object-fit: contain; }
.egg-author17 { margin-top: 10px; font-size: 21px; font-weight: 800; letter-spacing: 2px; }
.egg-quotes17 { margin: 18px 0 6px; display: flex; flex-direction: column; gap: 10px; }
.egg-quotes17 p { margin: 0; font-size: 14px; line-height: 1.65; color: var(--text); }
.egg-thanks17 { margin-top: 16px; font-size: 13.5px; color: var(--muted); }
.egg-back17 { margin-top: 20px; border: none; background: #0071e3; color: #fff; border-radius: 999px; padding: 10px 34px; font-size: 14.5px; cursor: pointer; }

/* ================= (19) 我的页重排 + 拍照打卡 =================
   A1 状态卡：余额独占一行（千分位见 app.js fmtBalBig，字号按长度分级），会员状态一行、到期小字再一行；
   原三格横排在长余额下会把第三格（兑换邀请码）挤成竖条，(19) 起状态卡只剩余额+会员两行，邀请码改整行入口。
   颜色全走主题变量，明暗/粉色主题自动适配。 */
.me-status-card19 { background: var(--panel); border-radius: 16px; margin: 0 0 12px; padding: 16px 18px 14px; box-shadow: 0 1px 4px rgba(20,30,60,.05); display: flex; flex-direction: column; }
.me-bal19 { background: none; border: none; cursor: pointer; font-family: inherit; color: var(--text); text-align: left; padding: 0 0 12px; display: flex; flex-direction: column; gap: 5px; }
.me-bal-top19 { display: flex; align-items: center; }
.me-bal-label19 { font-size: 12.5px; color: var(--muted); }
.me-bal-arr19 { margin-left: auto; color: var(--muted); font-size: 17px; line-height: 1; }
.me-bal-num19 { font-size: 32px; font-weight: 800; letter-spacing: .2px; white-space: nowrap; line-height: 1.15; font-variant-numeric: tabular-nums; }
.me-vip19 { background: none; border: none; border-top: 1px solid var(--border); cursor: pointer; font-family: inherit; color: var(--text); text-align: left; padding: 11px 0 0; display: flex; align-items: center; gap: 10px; }
.me-vip-main19 { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.me-vip-label19 { font-size: 12.5px; color: var(--muted); flex: none; }
.me-vip-state19 { font-size: 15.5px; font-weight: 700; white-space: nowrap; }
.me-vip-until19 { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-vip19 .wx-arr { margin-left: auto; flex: none; }

/* A3 底部留白复核（对齐 (17) Tab 显隐口径）：滚动页底部留白 = Tab 栏实际高度 + 安全区 + 余量，
   保证任何一行都能滚到 Tab 栏上方完整露出来，不钻栏下、点得到。 */
.scroll-page { padding-bottom: calc(112px + env(safe-area-inset-bottom)); }

/* A4 我的页间距微调：行高放宽、分组间距统一 16px（8px 栅格） */
#pageSettings .set-section { margin-bottom: 16px; }
#pageSettings .wx-entry2 { padding: 14px 0; }
#pageSettings .me-quick17 { margin-bottom: 16px; }

/* C 拍照打卡页 */
.pck-notice19 { background: color-mix(in srgb, #f59e0b 12%, var(--panel)); border: 1px solid color-mix(in srgb, #f59e0b 45%, var(--border)); color: var(--text); border-radius: 14px; padding: 12px 14px; font-size: 13.5px; line-height: 1.7; margin-bottom: 14px; }
.pck-stage19 { position: relative; border-radius: 18px; overflow: hidden; background: #000; aspect-ratio: 3 / 4; max-height: 58vh; margin: 0 auto 12px; width: 100%; }
.pck-video19, .pck-shot19 { width: 100%; height: 100%; object-fit: cover; display: block; }
.pck-cam-tip19 { position: absolute; left: 10px; right: 10px; bottom: 10px; background: rgba(10,12,20,.62); color: #fff; font-size: 12.5px; line-height: 1.55; padding: 8px 11px; border-radius: 10px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.pck-loc19 { font-size: 13.5px; color: var(--text); line-height: 1.6; padding: 2px 2px 12px; word-break: break-all; }
.pck-actions19 { display: flex; gap: 10px; }
.pck-main-btn19 { flex: 1; padding: 13px 0; font-size: 15.5px; border-radius: 13px; }
.pck-grid19 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pck-item19 { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.pck-item19 img { width: 100%; height: 128px; object-fit: cover; display: block; }
.pck-item-meta19 { padding: 8px 10px; font-size: 11.5px; color: var(--muted); line-height: 1.55; word-break: break-all; }

/* ================= (20) 精装修统一层 =================
   目标：消除毛坯感/AI 模板感。图标已全量换 1.5px 线性 SVG（ic20 图标库）；
   本层收敛卡片形态、阴影、按压反馈与杂项默认样式。颜色口径：
   主色 #0071e3（--accent / --pb1 / --pb2 / --brand-blue 已在 token 层收编），
   鎏金 --gold 仅 SVIP 标识，其余中性灰。装扮皮肤/用户自选主题不受本层影响。 */

/* 卡片：圆角统一 16px + 玻璃基底（半透面板 + 统一柔和阴影 + 发丝描边），消灭纯白矩形平铺 */
.wx-group, .set-group, #featureHub {
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--sh-1);
  background: linear-gradient(180deg, color-mix(in srgb, var(--panel) 94%, transparent), color-mix(in srgb, var(--panel) 88%, var(--panel2)));
}
.me-card, .me-status-card19, .checkin-card, .redeem-card, .moment, .album-card, .note-card, .fav-card {
  border: 1px solid var(--border);
  box-shadow: var(--sh-1);
}
.me-card { border-radius: 16px; }
.wall-hero17 { border: 1px solid var(--border); box-shadow: var(--sh-1); }

/* 图标对齐：SVG 在图标块/按钮内统一居中，杜绝基线漂移 */
.wx-ico svg, .me-q-ic17 svg, .mc-ico svg, .auth-ico svg { display: block; }
.wx-tabs button span { display: flex; align-items: center; justify-content: center; }
.wx-tabs button.active { color: var(--accent); }
.composer-main > button svg, .composer-tools label svg, .composer-tools button svg { display: block; margin: auto; }
.checkin-big svg { vertical-align: -4px; }
.redeem-ico { color: var(--accent); display: flex; justify-content: center; }
.me-capsule svg { vertical-align: -2px; }
.p-line svg, .wall-replybtn17 svg { vertical-align: -2px; }
.ghost svg { vertical-align: -2px; }

/* 等级徽章：矢量星 + 淡金底（成长标识），不再用 emoji 星/渐变橙红 */
.level-badge {
  display: inline-flex; align-items: center; gap: 3px;
  color: #8a6d1f; background: color-mix(in srgb, var(--gold) 18%, transparent);
  padding: 2px 7px 2px 5px; border-radius: 6px;
}
.level-badge svg { color: #b8860b; }
html[data-theme="dark"] .level-badge { color: #e7c65a; }

/* 在线状态圆点（替代 emoji 圆点字） */
.pres-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; background: #c7cbd4; vertical-align: 1px; }
.pres-dot.online { background: #34c759; }
.pres-dot.away { background: #f5a623; }
.pres-dot.busy, .pres-dot.dnd { background: #f43f5e; }
.pres-dot.invisible, .pres-dot.offline { background: #c7cbd4; }

/* 排行榜名次徽章（替代奖牌 emoji） */
.rk-medal { display: inline-flex; align-items: center; justify-content: center; width: 19px; height: 19px; border-radius: 50%; font-size: 11px; font-weight: 700; color: #fff; background: var(--panel3); }
.rk-medal.rk1 { background: var(--gold); }
.rk-medal.rk2 { background: #aeb4c0; }
.rk-medal.rk3 { background: #cf9a68; }

/* 状态卡辅助信息行（今日收支/成长值，真实数据，空则不占位） */
.me-aux20 { padding: 10px 2px 0; margin-top: 11px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.me-aux20:empty { display: none; }

/* 按压反馈统一：同一弹簧曲线与幅度 */
button { transition: transform .18s var(--spring), background .18s, box-shadow .18s, color .18s, filter .18s; }
.wx-entry, .wx-entry2, .me-q17, .wall-hero17, .list-item { transition: transform .18s var(--spring), background .18s; }
.wx-entry:active, .wx-entry2:active, .me-q17:active, .wall-hero17:active { transform: scale(.98); }

/* 系统默认样式残留收拾：表单控件跟随主色 */
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); }
select { accent-color: var(--accent); }

/* 字号阶梯锚点（重点页标题/正文走 token，其余页面继承） */
.wx-topbar-title, .scroll-page > .page-head h2 { font-size: var(--fs-lg); }
.me-bal-label19, .me-vip-label19 { font-size: var(--fs-sm); }

/* ================= (22) 发现页重排 / 沉浸外卖 / 商家入驻 ================= */
.tag22 { display:inline-block; padding:2px 9px; border-radius:99px; font-size:12px; }
.tag22.pend { background:rgba(255,159,10,.16); color:#b25e00; }
.tag22.ok { background:rgba(48,180,90,.15); color:#1d7a43; }
.tag22.bad { background:rgba(217,45,32,.12); color:#c0271a; }
/* 发现：玻璃搜索栏 */
.disc22-search { display:flex; align-items:center; gap:8px; margin:10px 12px 4px; padding:9px 12px; border-radius:14px;
  background:var(--glass-bg, rgba(255,255,255,.72)); backdrop-filter:blur(var(--glass-blur, 18px)); -webkit-backdrop-filter:blur(var(--glass-blur, 18px));
  border:1px solid var(--hair, rgba(20,30,60,.08)); box-shadow:var(--sh-1, 0 2px 10px rgba(20,30,60,.06)); }
.disc22-search svg { color:var(--muted); flex:none; }
.disc22-search input { flex:1; border:0; background:transparent; font-size:14px; color:var(--text); outline:none; min-width:0; }
.disc22-scan { border:0; background:transparent; color:var(--accent); display:flex; padding:2px; cursor:pointer; }
/* 发现：功能宫格（图标在上、字在下，两组各一行四列） */
.disc22-gridwrap { margin:10px 12px 0; }
.disc22-glabel { font-size:12.5px; color:var(--muted); margin:10px 2px 6px; }
.disc22-grid { display:grid; grid-template-columns:repeat(4, 1fr); gap:8px; }
.disc22-cell { display:flex; flex-direction:column; align-items:center; gap:6px; padding:12px 2px 10px; border:1px solid var(--hair, rgba(20,30,60,.08));
  border-radius:16px; background:var(--card, #fff); box-shadow:var(--sh-1, 0 2px 10px rgba(20,30,60,.05)); font-size:12.5px; color:var(--text); cursor:pointer; }
.disc22-cell:active { transform:scale(.97); }
.disc22-ic { width:40px; height:40px; border-radius:12px; display:flex; align-items:center; justify-content:center; color:var(--accent); background:rgba(0,113,227,.08); }
/* 发现：笔记流标题与哨兵 */
.disc22-flowhead { display:flex; align-items:center; justify-content:space-between; margin:16px 14px 8px; }
.disc22-flowhead b { font-size:16px; }
.disc22-flowhead button { border:0; background:transparent; color:var(--muted); font-size:13px; cursor:pointer; }
.disc22-sentinel { text-align:center; color:var(--muted); font-size:12.5px; padding:14px 0 6px; }
/* 店铺沉浸头图 */
.shop-hero22 { position:relative; border-radius:16px; overflow:hidden; margin-bottom:10px; border:1px solid var(--hair, rgba(20,30,60,.08)); }
.shop-hero22-bg { width:100%; height:190px; object-fit:cover; display:block; transition:height .3s ease; }
.shop-hero22-grad { background:linear-gradient(135deg, #7db4ea, #0071e3); }
.shop-hero22.shrunk .shop-hero22-bg { height:104px; }
.shop-hero22-shade { position:absolute; inset:0; background:linear-gradient(180deg, rgba(10,16,30,.18), rgba(10,16,30,0) 40%, rgba(10,16,30,.45)); pointer-events:none; }
.shop-hero22-nav { position:absolute; top:0; left:0; right:0; display:flex; align-items:center; gap:8px; padding:10px; z-index:2; }
.shop-hero22-nav .ghost { background:rgba(255,255,255,.85); }
.shop-hero22-nav.glass { backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px); background:rgba(255,255,255,.55); }
.shop-hero22-navname { flex:1; text-align:center; font-weight:600; color:#fff; opacity:0; transition:opacity .25s; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.shop-hero22-nav.glass .shop-hero22-navname { opacity:1; color:var(--text); }
.shop-hero22-info { position:absolute; left:0; right:0; bottom:0; padding:12px; color:#fff; z-index:1; }
.shop-hero22-info .b-meta, .shop-hero22-meta { color:rgba(255,255,255,.92); font-size:12.5px; margin-top:3px; }
.shop-hero22-notice { font-size:12.5px; margin-top:3px; color:#ffe9a8; }
/* 店铺主体：左分类栏 + 右列表 */
.shop-body22 { display:flex; gap:10px; align-items:flex-start; }
.shop-rail22 { position:sticky; top:8px; display:flex; flex-direction:column; gap:4px; width:76px; flex:none; max-height:70vh; overflow-y:auto; }
.shop-rail22 button { border:0; background:var(--card2, #f2f4f8); color:var(--text); border-radius:10px; padding:9px 4px; font-size:12.5px; cursor:pointer; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.shop-rail22 button.active { background:var(--accent); color:#fff; font-weight:600; }
.shop-list22 { flex:1; min-width:0; }
.shop-sec22-t { font-weight:700; font-size:14px; padding:8px 2px 2px; }
/* 菜品卡（22） */
.dish-card22 { align-items:flex-start; gap:10px; }
.dish-card22-img { width:76px; height:76px; border-radius:12px; object-fit:cover; flex:none; background:var(--card2, #eef1f6); }
.dish-card22-noimg { display:block; }
.dish-tags22 { display:flex; gap:4px; flex-wrap:wrap; margin:3px 0; }
.dish-tags22 span { font-size:11px; padding:1px 7px; border-radius:99px; background:rgba(0,113,227,.09); color:var(--accent); }
.dish-desc22 { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.dish-card22-price { margin-top:3px; }
.dish-card22-price s { color:var(--muted); font-size:12px; }
.dish-card22-price .dish-price { color:var(--accent); font-weight:700; }
.dish-add22 { border-radius:50%; width:30px; height:30px; padding:0; flex:none; }
/* 菜品详情抽屉媒体横滑 */
.dish-media22 { display:flex; gap:8px; overflow-x:auto; scroll-snap-type:x mandatory; margin-bottom:10px; }
.dish-media22-item { width:100%; max-height:260px; object-fit:cover; border-radius:14px; flex:0 0 100%; scroll-snap-align:start; background:#000; }
/* 商家菜品管理 */
.dish-catbar22 { display:flex; gap:6px; flex-wrap:wrap; align-items:center; margin:6px 0; }
.dish-catchip22 { display:inline-flex; align-items:center; gap:4px; padding:4px 6px 4px 10px; border-radius:99px; background:var(--card2, #f2f4f8); font-size:12.5px; }
.dish-thumbs22 { display:flex; gap:8px; flex-wrap:wrap; margin-top:6px; }
.dish-thumb22 { position:relative; display:inline-block; }
.dish-thumb22 img { width:56px; height:56px; object-fit:cover; border-radius:10px; display:block; }
.dish-thumb22 button { position:absolute; top:-6px; right:-6px; width:18px; height:18px; border-radius:50%; border:0; background:rgba(20,20,25,.75); color:#fff; font-size:12px; line-height:1; cursor:pointer; }
.dish-mgrow22 { align-items:center; }
.dish-drag22 { cursor:grab; color:var(--muted); padding:0 2px; flex:none; }
/* 入驻表单（22） */
.apply22-card input, .apply22-card select, .apply22-card textarea { border-radius:12px; }
.apply22-card input:focus, .apply22-card select:focus { border-color:var(--accent); outline:none; }
.apply22-up { aspect-ratio:4/3; max-width:220px; border:1.5px dashed var(--hair2, rgba(20,30,60,.2)); border-radius:14px; display:flex; align-items:center; justify-content:center; color:var(--muted); font-size:13px; cursor:pointer; overflow:hidden; background:var(--glass-bg, rgba(255,255,255,.5)); }
.apply22-up img { width:100%; height:100%; object-fit:cover; }
.apply22-agree { display:flex; gap:8px; align-items:flex-start; font-size:12.5px; color:var(--muted); margin:10px 2px; }
.apply22-foot { position:sticky; bottom:0; padding:10px 0 4px; background:var(--card, #fff); }
.apply22-foot .primary { width:100%; padding:12px; font-size:15px; }
