/* ============================================================
   畅信 H5 v2 · 样式表
   移动端优先（320px 起），桌面端居中手机壳预览。
   纯原生 CSS，无外部字体/图标/CDN 依赖。
   ============================================================ */

:root {
  --green: #07c160;
  --green-dark: #06ad56;
  --bubble-out: #95ec69;
  --bg: #f5f6f7;
  --bg-chat: #ededed;
  --bg-nav: #ededed;
  --card: #ffffff;
  --text: #181818;
  --text-2: #888888;
  --text-3: #bbbbbb;
  --line: #f2f2f2;
  --line-2: #e2e2e2;
  --danger: #fa5151;
  --radius: 8px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  font-size: 15px;
  color: var(--text);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  overscroll-behavior: none;
}

button { font-family: inherit; }
input, textarea, select { font-family: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }

.app {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

/* ---------------- 视图与转场 ---------------- */

.view {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  background: var(--bg);
  overflow: hidden;
}
.view.is-active { display: flex; }
.view.view-enter { animation: viewIn 0.22s ease both; }

@keyframes viewIn {
  from { opacity: 0.35; transform: translateX(16px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ---------------- 顶部导航 ---------------- */

.nav {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: calc(var(--safe-top) + 6px) 8px 6px;
  background: var(--bg-nav);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  min-height: 46px;
  position: relative;
  z-index: 5;
}

.nav-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
}

.nav-title {
  font-size: 17px;
  font-weight: 600;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-sub { font-size: 11px; color: var(--text-3); margin-top: 1px; }
.nav-sub.conn-online { color: var(--green); }

.nav-btn {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 0;
}
.nav-btn:active { background: rgba(0, 0, 0, 0.06); }

.chat-nav-main { align-items: center; }

/* ---------------- 主界面 Tab 页 ---------------- */

.tabpages {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  position: relative;
}

.tabpage { display: none; flex: 1; min-height: 0; flex-direction: column; }
.tabpage.is-on { display: flex; animation: tabIn 0.18s ease both; }

@keyframes tabIn {
  from { opacity: 0.5; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.scroll-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(10px + var(--safe-bottom));
}

/* ---------------- 底部 Tab 栏 ---------------- */

.tabbar {
  flex: 0 0 auto;
  display: flex;
  background: #f7f7f7;
  border-top: 1px solid var(--line-2);
  padding-bottom: var(--safe-bottom);
}

.tabbar-item {
  flex: 1;
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 6px 0 5px;
  color: #8a8a8a;
  position: relative;
}
.tabbar-item.is-on { color: var(--green); }
.tabbar-ic { display: flex; }
.tabbar-text { font-size: 10px; }

.dot-badge {
  position: absolute;
  top: 3px;
  left: calc(50% + 6px);
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dot-badge.dot-gray { background: #cfcfcf; }

/* ---------------- 头像 ---------------- */

.avatar {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  color: #fff;
  font-weight: 600;
  overflow: hidden;
  background: #c9c9c9;
  user-select: none;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-xs { width: 26px; height: 26px; font-size: 12px; }
.avatar-sm { width: 36px; height: 36px; font-size: 14px; }
.avatar-md { width: 42px; height: 42px; font-size: 16px; }
.avatar-lg { width: 48px; height: 48px; font-size: 17px; border-radius: 8px; }
.avatar-xl { width: 62px; height: 62px; font-size: 22px; border-radius: 10px; }

/* ---------------- 会话列表 ---------------- */

.conv-list { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }

.notice-card {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 8px;
  border: 1px solid #ffe1a8;
  border-radius: var(--radius);
  background: #fff8e6;
  color: #8a5a00;
  font-size: 13px;
  text-align: left;
}
.notice-card.is-warn { background: #fff1f0; border-color: #ffccc7; color: #a8071a; }
.notice-ic { display: flex; }
.notice-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice-arrow { display: flex; opacity: 0.6; }

.conv {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 14px;
  background: #fff;
  border: 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.conv:active { background: #f7f7f7; }
.conv.is-pinned { background: #f7f7f7; }
.conv-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.conv-row { display: flex; align-items: center; gap: 8px; }
.conv-name {
  flex: 1;
  min-width: 0;
  font-size: 16px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.conv-time { flex: 0 0 auto; font-size: 11px; color: #b2b2b2; }
.conv-preview {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  color: var(--text-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.conv-tags { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; }

.badge {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--danger);
  color: #fff;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.badge.is-gray { background: #cfcfcf; }
.badge-dot { min-width: 14px; height: 14px; }

/* ---------------- 聊天页 ---------------- */

.chat-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  background: var(--bg-chat);
}

.chat-list {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 2px;
  padding: 12px 10px 16px;
  min-height: 100%;
}

.chat-empty { padding-top: 30vh; }

.time-divider { text-align: center; margin: 10px 0 6px; }
.time-divider span {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.06);
  color: #a0a0a0;
  font-size: 11px;
}

.msg {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 5px 0;
  position: relative;
}
.msg-out { flex-direction: row-reverse; }

.msg-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: calc(100% - 96px);
  min-width: 0;
}
.msg-out .msg-body { align-items: flex-end; }

.msg-sender { font-size: 11px; color: #9a9a9a; margin: 0 2px 3px; }
.msg-line { display: flex; justify-content: flex-end; margin-top: 3px; }
.msg-state { font-size: 10px; color: #a8a8a8; }
.msg-state.is-read { color: var(--green); }
.msg-state.is-failed { color: var(--danger); }

.msg-check {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 8px;
  border-radius: 50%;
  border: 1.5px solid #c9c9c9;
  background: #fff;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.msg.is-selected .msg-check { background: var(--green); border-color: var(--green); }

.msg-system {
  align-self: center;
  max-width: 86%;
  margin: 8px 0;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.05);
  color: #9a9a9a;
  font-size: 11.5px;
  text-align: center;
  line-height: 1.5;
}

/* 气泡 */
.bubble {
  position: relative;
  max-width: 100%;
  padding: 9px 11px;
  border-radius: var(--radius);
  background: #fff;
  font-size: 15.5px;
  line-height: 1.45;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.msg-out .bubble { background: var(--bubble-out); }
.bubble-inner { white-space: normal; }

.bubble-none { padding: 0; background: transparent !important; }

.msg-image {
  display: block;
  max-width: 172px;
  max-height: 240px;
  border-radius: 6px;
}
.msg-emoji {
  display: block;
  width: 110px;
  height: 110px;
  object-fit: contain;
}

/* 语音条 */
.bubble-voice {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  min-width: 62px;
  max-width: 180px;
}
.msg-out .bubble-voice { flex-direction: row-reverse; }
.voice-icon { display: flex; color: #444; }
.voice-dur { font-size: 12px; color: #666; min-width: 22px; text-align: right; }
.msg-out .voice-dur { color: #2c5f1d; text-align: left; }
.voice-wave { flex: 1; display: flex; align-items: center; justify-content: center; gap: 2px; height: 16px; }
.voice-wave i {
  display: block;
  width: 2px;
  height: 8px;
  border-radius: 1px;
  background: currentColor;
  opacity: 0.35;
}
.voice-wave i:nth-child(1) { height: 6px; }
.voice-wave i:nth-child(2) { height: 12px; }
.voice-wave i:nth-child(3) { height: 8px; }
.bubble.is-playing .voice-wave i { animation: voicePulse 0.7s infinite ease-in-out; }
.bubble.is-playing .voice-wave i:nth-child(2) { animation-delay: 0.15s; }
.bubble.is-playing .voice-wave i:nth-child(3) { animation-delay: 0.3s; }
@keyframes voicePulse {
  0%, 100% { transform: scaleY(0.6); opacity: 0.35; }
  50% { transform: scaleY(1.5); opacity: 0.85; }
}

/* 视频 */
.bubble-video {
  position: relative;
  width: 176px;
  height: 118px;
  padding: 0;
  overflow: hidden;
  border-radius: 6px;
  background: #000;
}
.video-cover { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.18);
}
.video-play svg { filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.5)); }
.video-dur {
  position: absolute;
  right: 6px;
  bottom: 5px;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 10px;
}

/* 文件 */
.bubble-file {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
  max-width: 230px;
  color: inherit;
  text-decoration: none;
}
.file-ic { display: flex; color: var(--green); }
.file-main { display: flex; flex-direction: column; min-width: 0; }
.file-name {
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-size { font-size: 11px; color: var(--text-2); margin-top: 2px; }

/* 位置 */
.bubble-location {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 170px;
  max-width: 230px;
  color: inherit;
  text-decoration: none;
}
.loc-main { display: flex; flex-direction: column; min-width: 0; }
.loc-name { font-size: 14px; }
.loc-addr { font-size: 11px; color: var(--text-2); margin-top: 2px; }
.loc-ic { display: flex; color: var(--green); }

/* 引用块 */
.quote-block {
  max-width: 100%;
  padding: 5px 8px;
  margin-bottom: 6px;
  border-radius: 4px;
  border-left: 2.5px solid var(--green);
  background: rgba(0, 0, 0, 0.055);
  font-size: 12px;
  color: #666;
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.quote-name { color: #4a7a3a; }
.bubble-wrap { display: flex; flex-direction: column; align-items: flex-start; }

/* ---------------- 输入区 ---------------- */

.quote-bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: #f0f0f0;
  border-top: 1px solid var(--line-2);
}
.quote-bar-main { flex: 1; min-width: 0; overflow: hidden; }
.quote-bar-name { display: block; font-size: 11px; color: var(--green-dark); }
.quote-bar-text {
  display: block;
  font-size: 12px;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.quote-bar-close { border: 0; background: transparent; color: #999; padding: 4px; }

.multibar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #f7f7f7;
  border-top: 1px solid var(--line-2);
}
.multibar-text { flex: 1; font-size: 13px; color: #666; }
.multibar-btn {
  border: 0;
  border-radius: 6px;
  background: var(--danger);
  color: #fff;
  font-size: 13px;
  padding: 8px 14px;
}
.multibar-btn.ghost { background: #e8e8e8; color: #555; }

.panel {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  height: 252px;
  background: #f7f7f7;
  border-top: 1px solid #e6e6e6;
}
#more-panel { height: 212px; overflow-y: auto; }

.emoji-tabs {
  flex: 0 0 auto;
  display: flex;
  gap: 4px;
  padding: 6px 8px;
  overflow-x: auto;
  border-bottom: 1px solid #ececec;
}
.emoji-tab {
  border: 0;
  background: transparent;
  color: var(--text-2);
  font-size: 12px;
  padding: 4px 9px;
  border-radius: 6px;
  white-space: nowrap;
}
.emoji-tab.is-on { background: #e3e3e3; color: #333; }

.emoji-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 6px 8px 10px; }
.emoji-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 2px; }
.emoji-cell {
  border: 0;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  padding: 5px 0;
  border-radius: 6px;
  color: inherit;
}
.emoji-cell:active { background: #e6e6e6; }
.emoji-img { display: flex; align-items: center; justify-content: center; }
.emoji-img img { width: 30px; height: 30px; object-fit: contain; }

.more-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 4px; padding: 16px 8px; }
.more-item { border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.more-ic {
  width: 54px;
  height: 54px;
  border-radius: 13px;
  background: #fff;
  color: #4a4a4a;
  display: flex;
  align-items: center;
  justify-content: center;
}
.more-ic:active { background: #ececec; }
.more-text { font-size: 11px; color: #777; }

.composer {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-end;
  gap: 5px;
  padding: 8px 8px calc(8px + var(--safe-bottom));
  background: #f7f7f7;
  border-top: 1px solid var(--line-2);
}
.composer-main { flex: 1; min-width: 0; display: flex; align-items: flex-end; }

.composer-btn {
  flex: 0 0 auto;
  width: 36px;
  height: 40px;
  border: 0;
  background: transparent;
  color: #444;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.composer-btn.is-on { color: var(--green); }

.composer-text {
  width: 100%;
  min-height: 40px;
  max-height: 110px;
  padding: 9px 10px;
  border: 0;
  border-radius: 7px;
  background: #fff;
  color: var(--text);
  font-size: 15.5px;
  line-height: 1.4;
  resize: none;
  outline: none;
}

.hold-talk {
  width: 100%;
  height: 40px;
  border: 0;
  border-radius: 7px;
  background: #fff;
  color: #333;
  font-size: 15px;
}
.hold-talk:active { background: #e9e9e9; }

.send-btn {
  flex: 0 0 auto;
  height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 7px;
  background: var(--green);
  color: #fff;
  font-size: 15px;
}
.send-btn:active { background: var(--green-dark); }

/* 录音浮层 */
.rec-overlay {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.16);
}
.rec-card {
  min-width: 168px;
  padding: 20px 22px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  text-align: center;
}
.rec-card.is-cancel { background: rgba(190, 38, 38, 0.82); }
.rec-wave { display: flex; align-items: flex-end; justify-content: center; gap: 3px; height: 34px; margin-bottom: 10px; }
.rec-wave i { display: block; width: 3px; height: 8px; border-radius: 2px; background: #fff; opacity: 0.7; }
.rec-wave.is-live i { animation: recPulse 0.8s infinite ease-in-out; }
.rec-wave i:nth-child(2) { animation-delay: 0.07s; }
.rec-wave i:nth-child(3) { animation-delay: 0.14s; }
.rec-wave i:nth-child(4) { animation-delay: 0.21s; }
.rec-wave i:nth-child(5) { animation-delay: 0.28s; }
.rec-wave i:nth-child(6) { animation-delay: 0.35s; }
.rec-wave i:nth-child(7) { animation-delay: 0.42s; }
.rec-wave i:nth-child(8) { animation-delay: 0.49s; }
.rec-wave i:nth-child(9) { animation-delay: 0.56s; }
@keyframes recPulse {
  0%, 100% { height: 8px; }
  50% { height: 26px; }
}
.rec-time { font-size: 17px; font-variant-numeric: tabular-nums; }
.rec-tip { font-size: 11px; opacity: 0.75; margin-top: 8px; }

/* ---------------- 通用：单元格 / 分组 ---------------- */

.group { background: #fff; margin: 10px 0; }
.group:first-child { margin-top: 0; }

.cell {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 13px 14px;
  background: #fff;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 15.5px;
  text-align: left;
}
.cell:last-child { border-bottom: 0; }
.cell:active { background: #f7f7f7; }
.cell.is-static:active { background: #fff; }
.cell.is-danger .cell-title { color: var(--danger); }
.cell-ic { flex: 0 0 auto; display: flex; color: var(--green); }
.cell-title { flex: 1; min-width: 0; }
.cell-value { flex: 0 0 auto; color: var(--text-2); font-size: 14px; }
.cell-value.is-strong { color: var(--green); font-weight: 600; }
.cell-badge { color: var(--danger); font-size: 13px; }
.cell-arrow { flex: 0 0 auto; display: flex; color: #c8c8c8; }

.section-label { padding: 12px 16px 6px; font-size: 12px; color: var(--text-2); }
.tag {
  flex: 0 0 auto;
  padding: 0 4px;
  border: 1px solid #dedede;
  border-radius: 4px;
  color: var(--text-2);
  font-size: 11px;
}

.state-empty { padding: 44px 22px; text-align: center; color: #b8b8b8; }
.state-empty-title { font-size: 14px; }
.state-empty-sub { margin-top: 6px; font-size: 12px; color: #cccccc; }

.btn-primary {
  display: block;
  width: calc(100% - 32px);
  margin: 14px 16px;
  padding: 12px;
  border: 0;
  border-radius: var(--radius);
  background: var(--green);
  color: #fff;
  font-size: 16px;
}
.btn-primary:active { background: var(--green-dark); }
.btn-primary[disabled] { opacity: 0.6; }

.btn-outline {
  display: block;
  width: calc(100% - 32px);
  margin: 12px 16px;
  padding: 12px;
  border: 0;
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  font-size: 16px;
}
.btn-outline.danger { color: var(--danger); }

.btn-sm {
  padding: 6px 12px;
  border: 0;
  border-radius: 6px;
  background: var(--green);
  color: #fff;
  font-size: 13px;
}
.btn-sm.ghost { background: #f2f2f2; color: #666; }

.empty { padding: 40px 20px; text-align: center; color: #b8b8b8; font-size: 13px; }

.load-more {
  display: block;
  margin: 10px auto;
  padding: 7px 16px;
  border: 0;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.05);
  color: #777;
  font-size: 12px;
}
.list-end { text-align: center; padding: 16px; font-size: 11px; color: var(--text-3); }

/* 好友 / 列表行 */
.list-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f4f4f4; }
.list-row:last-child { border-bottom: 0; }
.list-main { flex: 1; min-width: 0; }
.list-title { font-size: 15px; }
.list-sub { margin-top: 2px; font-size: 12px; color: var(--text-2); }
.list-actions { display: flex; gap: 6px; }
.online-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: 0 0 auto; }

/* ---------------- 弹层 Sheet ---------------- */

.sheet-root {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.sheet-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
  display: flex;
  align-items: flex-end;
  animation: fadeIn 0.16s ease both;
}
.sheet-root.is-open .sheet { animation: sheetUp 0.22s ease both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheetUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.sheet {
  width: 100%;
  max-height: 84%;
  overflow-y: auto;
  background: #f7f7f7;
  border-radius: 14px 14px 0 0;
  padding-bottom: var(--safe-bottom);
}
.sheet.sheet-tall { max-height: 92%; }
.sheet-head { padding: 16px 16px 8px; text-align: center; }
.sheet-title { padding: 14px 16px 6px; font-size: 15px; font-weight: 600; text-align: center; }
.sheet-title.center { text-align: center; }
.sheet-sub { font-size: 12px; color: var(--text-2); text-align: center; }
.sheet-body { padding: 10px 16px 14px; }
.sheet-text { padding: 4px 18px 14px; font-size: 13px; color: var(--text-2); line-height: 1.6; }
.sheet-note { min-height: 16px; margin: 6px 0 0; font-size: 12px; color: var(--danger); }

.sheet-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e4e4e4;
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  font-size: 15px;
  outline: none;
}

.search-row { display: flex; gap: 8px; }
.search-row .sheet-input { flex: 1; }
.search-result { margin-top: 8px; }

.sheet-list { display: flex; flex-direction: column; background: #fff; margin: 6px 0; max-height: 56vh; overflow-y: auto; }
.sheet-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  font-size: 15.5px;
  text-align: left;
  text-decoration: none;
}
.sheet-row:last-child { border-bottom: 0; }
.sheet-row:active { background: #f7f7f7; }
.sheet-row.is-static:active { background: #fff; }
.sheet-row.danger { color: var(--danger); }
.sheet-row-main { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet-row-state { flex: 0 0 auto; font-size: 12px; color: var(--text-3); }
.sheet-row-state.is-read { color: var(--green); }
.check-row input { width: 18px; height: 18px; accent-color: var(--green); }

.sheet-actions {
  display: flex;
  background: #fff;
  border-top: 1px solid #ececec;
}
.sheet-action {
  flex: 1;
  padding: 15px;
  border: 0;
  background: #fff;
  color: var(--text);
  font-size: 16px;
}
.sheet-action + .sheet-action { border-left: 1px solid #ececec; }
.sheet-action.primary { color: var(--green); font-weight: 600; }
.sheet-action.danger { color: var(--danger); font-weight: 600; }
.sheet-cancel {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 15px;
  border: 0;
  border-top: 1px solid #ececec;
  background: #fff;
  color: var(--text);
  font-size: 16px;
}

.notice-content { font-size: 14px; line-height: 1.75; color: #333; }

/* ---------------- 全屏媒体 / 通话 ---------------- */

.media-root {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: #000;
}

.viewer { position: absolute; inset: 0; display: flex; flex-direction: column; color: #fff; }
.viewer-top {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(var(--safe-top) + 10px) 14px 10px;
  font-size: 13px;
}
.viewer-close { border: 0; background: transparent; color: #fff; padding: 6px; }
.viewer-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.viewer-img { max-width: 100%; max-height: 100%; object-fit: contain; }
.viewer-video { width: 100%; max-height: 100%; background: #000; }
.viewer-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.viewer-nav.prev { left: 8px; }
.viewer-nav.next { right: 8px; }

.call-root { position: fixed; inset: 0; z-index: 80; }
.call-panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--safe-top) + 60px) 20px calc(var(--safe-bottom) + 46px);
  background: linear-gradient(165deg, #2f3339 0%, #14171b 100%);
  color: #fff;
  text-align: center;
}
.call-info { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.call-name { font-size: 22px; font-weight: 600; }
.call-status { font-size: 13px; color: rgba(255, 255, 255, 0.7); }
.call-timer { min-height: 18px; font-size: 14px; color: rgba(255, 255, 255, 0.85); font-variant-numeric: tabular-nums; }
.call-actions { display: flex; justify-content: center; gap: 32px; }
.call-btn {
  border: 0;
  background: transparent;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}
.call-btn-ic {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
}
.call-btn-ic.is-on { background: var(--green); }
.call-btn.reject .call-btn-ic { background: var(--danger); }
.call-btn.accept .call-btn-ic { background: var(--green); }
.call-audio { display: none; }

/* ---------------- 登录 ---------------- */

.view-login { background: var(--bg); overflow-y: auto; }
.login-inner {
  width: 100%;
  max-width: 360px;
  margin: auto;
  padding: calc(var(--safe-top) + 40px) 24px calc(var(--safe-bottom) + 30px);
}
.login-brand { text-align: center; margin-bottom: 28px; }
.login-logo { width: 74px; height: 74px; border-radius: 20px; box-shadow: 0 10px 26px rgba(7, 193, 96, 0.28); }
.login-name { margin-top: 12px; font-size: 24px; font-weight: 700; }
.login-desc { margin-top: 6px; font-size: 12px; color: var(--text-2); }

.login-tabs { display: flex; justify-content: center; gap: 26px; margin-bottom: 20px; }
.login-tab {
  position: relative;
  border: 0;
  background: transparent;
  padding: 4px 2px;
  color: var(--text-2);
  font-size: 16px;
}
.login-tab.is-on { color: var(--text); font-weight: 600; }
.login-tab.is-on::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 20px;
  height: 3px;
  margin-left: -10px;
  border-radius: 2px;
  background: var(--green);
}

.login-form { display: flex; flex-direction: column; gap: 12px; }
.field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #eeeeee;
  border-radius: var(--radius);
  background: #fff;
}
.field input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; color: var(--text); font-size: 16px; }
.field-icon { display: flex; color: #c0c0c0; }
.form-note { min-height: 16px; font-size: 12px; color: var(--text-2); text-align: center; }
.form-note.is-error { color: var(--danger); }
.login-foot { margin-top: 20px; text-align: center; font-size: 11px; color: #c8c8c8; }

/* ---------------- 我 ---------------- */

.me-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 20px 14px;
  border: 0;
  background: #fff;
  text-align: left;
}
.me-main { flex: 1; min-width: 0; }
.me-name { font-size: 18px; font-weight: 600; }
.me-sub { margin-top: 3px; font-size: 12px; color: var(--text-2); }
.me-sign { margin-top: 4px; font-size: 12px; color: #b0b0b0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-version { padding: 26px 0 calc(26px + var(--safe-bottom)); text-align: center; font-size: 11px; color: #c8c8c8; }
.page-note { padding: 12px 16px calc(16px + var(--safe-bottom)); font-size: 12px; color: #a8a8a8; line-height: 1.65; }

/* 余额与充值 */
.balance-hero {
  padding: 28px 20px 32px;
  background: linear-gradient(135deg, #07c160, #04a34f);
  color: #fff;
  text-align: center;
}
.balance-label { font-size: 12px; opacity: 0.85; }
.balance-value { margin-top: 8px; font-size: 38px; font-weight: 700; }
.tier-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 0 16px; }
.tier-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 12px;
  border: 1px solid #ececec;
  border-radius: 10px;
  background: #fff;
}
.tier-amount { font-size: 20px; font-weight: 700; color: var(--green); }
.tier-credit { font-size: 12px; color: var(--text-2); }
.tier-tag {
  position: absolute;
  top: 0;
  right: 0;
  padding: 2px 6px;
  border-radius: 0 9px 0 8px;
  background: #fa9d3b;
  color: #fff;
  font-size: 10px;
}

/* 自定义表情管理 */
.emoji-manage-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 14px; }
.emoji-manage-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}
.emoji-manage-item img { max-width: 78%; max-height: 78%; object-fit: contain; }
.emoji-manage-del {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

/* 公告页 */
.notice-list { padding: 10px 12px; }
.notice-item {
  display: block;
  width: 100%;
  margin-bottom: 10px;
  padding: 14px;
  border: 0;
  border-radius: 10px;
  background: #fff;
  text-align: left;
}
.notice-item.is-warn { border-left: 3px solid var(--danger); }
.notice-item-title { font-size: 15px; font-weight: 600; }
.notice-item-text { margin-top: 6px; font-size: 13px; color: var(--text-2); line-height: 1.5; }
.notice-item-time { margin-top: 8px; font-size: 11px; color: var(--text-3); }

/* 友链页 */
.link-list { padding: 10px 12px; }
.link-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff;
  text-decoration: none;
}
.link-logo {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: #f2f2f2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  object-fit: cover;
}
.link-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.link-name { font-size: 15px; font-weight: 600; }
.link-desc { margin-top: 2px; font-size: 12px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 客服页 */
.service-hero { padding: 30px 20px; background: #fff; text-align: center; }
.service-avatar {
  width: 68px;
  height: 68px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #e8f8ef;
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-title { font-size: 17px; font-weight: 600; }
.service-sub { margin-top: 6px; font-size: 12px; color: var(--text-2); }

/* 编辑资料 */
.profile-head { display: flex; justify-content: center; padding: 24px; background: #fff; }
.profile-avatar { position: relative; border: 0; background: transparent; padding: 0; }
.profile-avatar-tip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -22px;
  font-size: 11px;
  color: var(--green);
}
.form-list { margin-top: 12px; background: #fff; }
.form-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.form-item:last-child { border-bottom: 0; }
.form-key { flex: 0 0 76px; color: #666; }
.form-input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 15px;
  text-align: right;
}
.form-static { flex: 1; text-align: right; color: var(--text-2); }

/* ---------------- 朋友圈 ---------------- */

.moment-cover { position: relative; height: 186px; background: #22262c; }
.moment-cover-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(7, 193, 96, 0.92), rgba(9, 44, 34, 0.96));
}
.moment-cover-user { position: absolute; right: 16px; bottom: -22px; display: flex; align-items: center; gap: 10px; }
.moment-cover-name { color: #fff; font-size: 15px; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35); }

.moment-list { margin-top: 24px; background: #fff; }
.moment-card { padding: 16px 14px; background: #fff; border-bottom: 1px solid var(--line); }
.moment-head { display: flex; align-items: center; gap: 10px; }
.moment-meta { flex: 1; min-width: 0; }
.moment-name { font-size: 14px; font-weight: 600; color: #576b95; }
.moment-time { margin-top: 2px; font-size: 11px; color: var(--text-3); }
.moment-text { margin: 8px 0; font-size: 15px; line-height: 1.5; }
.moment-grid { display: grid; gap: 4px; margin: 8px 0; }
.moment-grid.m1 { grid-template-columns: 1fr; max-width: 200px; }
.moment-grid.m2, .moment-grid.m4 { grid-template-columns: repeat(2, 1fr); max-width: 240px; }
.moment-grid.m3, .moment-grid.m5, .moment-grid.m6,
.moment-grid.m7, .moment-grid.m8, .moment-grid.m9 { grid-template-columns: repeat(3, 1fr); }
.moment-img { padding: 0; border: 0; background: #eeeeee; aspect-ratio: 1 / 1; overflow: hidden; }
.moment-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.moment-loc { margin: 6px 0; font-size: 12px; color: #576b95; display: flex; align-items: center; gap: 4px; }
.moment-likes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
  padding: 8px 10px;
  border-radius: 6px;
  background: #f7f7f7;
  font-size: 13px;
  color: #576b95;
}
.moment-like-ic { display: flex; color: #fa5151; }
.moment-comments { margin: 6px 0; padding: 2px 10px; border-radius: 6px; background: #f7f7f7; font-size: 13px; }
.moment-comment { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px; padding: 5px 0; line-height: 1.5; }
.moment-comment-name { color: #576b95; font-weight: 600; }
.moment-comment-del { margin-left: auto; border: 0; background: transparent; color: var(--text-3); font-size: 11px; }
.moment-foot {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #f5f5f5;
}
.moment-act { padding: 4px 2px; border: 0; background: transparent; color: #576b95; font-size: 13px; }
.moment-act.is-on { color: var(--danger); }
.moment-act.is-danger { color: var(--danger); }

.publish-box { padding: 14px; }
.publish-text {
  width: 100%;
  min-height: 118px;
  padding: 12px;
  border: 0;
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  resize: vertical;
  outline: none;
}
.publish-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.publish-img { position: relative; aspect-ratio: 1 / 1; border-radius: 6px; overflow: hidden; background: #eeeeee; }
.publish-img img { width: 100%; height: 100%; object-fit: cover; }
.publish-img-del {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.publish-add {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  border: 1px dashed #d8d8d8;
  border-radius: 6px;
  background: #fafafa;
  color: #bbbbbb;
}
.publish-loc {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: #fff;
  color: var(--green);
}
.publish-loc-input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; color: var(--text); font-size: 15px; }
.publish-submit { width: calc(100% - 28px); margin: 18px 14px; }

/* ---------------- 桌面端：居中手机壳 ---------------- */

@media (min-width: 760px) {
  body {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: #dfe3e8;
  }
  .app {
    width: 424px;
    height: min(884px, calc(100vh - 48px));
    border-radius: 34px;
    border: 1px solid #d6dbe1;
    box-shadow: 0 24px 60px rgba(20, 30, 45, 0.22);
  }
  .sheet-root, .media-root, .call-root {
    left: 50%;
    top: 50%;
    right: auto;
    bottom: auto;
    width: 424px;
    height: min(884px, calc(100vh - 48px));
    transform: translate(-50%, -50%);
    border-radius: 34px;
    overflow: hidden;
  }
}

/* ---------------- 小屏（320px 起） ---------------- */

@media (max-width: 340px) {
  .nav-title { font-size: 16px; }
  .composer-btn { width: 32px; }
  .msg-body { max-width: calc(100% - 82px); }
  .bubble { font-size: 15px; }
  .msg-image { max-width: 150px; }
  .bubble-video { width: 152px; height: 104px; }
  .more-grid { gap: 12px 2px; padding: 12px 4px; }
  .more-ic { width: 48px; height: 48px; }
  .emoji-grid { grid-template-columns: repeat(auto-fill, minmax(34px, 1fr)); }
  .emoji-cell { font-size: 21px; }
  .login-inner { padding-left: 18px; padding-right: 18px; }
}

/* 横屏手机 */
@media (max-height: 460px) and (max-width: 759px) {
  .emoji-panel, .panel { height: 190px; }
  .chat-list { padding-top: 8px; }
}

/* ============================================================
   v2.1 新增
   ============================================================ */

/* 首页固定公告卡片（最新 1 条） */
.home-notice { flex: 0 0 auto; padding: 8px 10px 2px; }
.home-notice-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: #fff8e6;
  color: #8a5a00;
  text-align: left;
}
.home-notice-ic { display: flex; color: #d48806; }
.home-notice-tag {
  flex: 0 0 auto;
  padding: 0 5px;
  border-radius: 4px;
  background: #fa9d3b;
  color: #fff;
  font-size: 10px;
  line-height: 16px;
}
.home-notice-text {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-notice-arrow { display: flex; opacity: 0.6; }

/* 通话记录消息（msg_type=10）：居中灰色 */
.msg-call {
  align-self: center;
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 8px 0;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.045);
  color: #9a9a9a;
  font-size: 11.5px;
}
.msg-call-ic { display: flex; }
.msg-call-text { line-height: 1.4; }

/* 「我」页底部友链列表 */
.me-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 14px calc(24px + var(--safe-bottom));
}
.me-link {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 8px 12px;
  border-radius: 18px;
  background: #fff;
  color: #4a4a4a;
  font-size: 12px;
  text-decoration: none;
}
.me-link-logo {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: #eff9f3;
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  object-fit: cover;
}
.me-link-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 通话记录页 */
.call-list { background: #fff; }
.call-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  text-align: left;
}
.call-row:active { background: #f7f7f7; }
.call-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.call-row-name { font-size: 15px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.call-row-sub { font-size: 12px; color: var(--text-2); }
.call-row-time { flex: 0 0 auto; font-size: 11px; color: #b2b2b2; }

/* 举报弹层 */
.report-reasons { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 12px; }
.report-reason {
  padding: 8px 14px;
  border: 1px solid #e3e3e3;
  border-radius: 16px;
  background: #fff;
  color: #444;
  font-size: 13px;
}
.report-reason.is-on { border-color: var(--green); background: #eafaf1; color: var(--green-dark); }
.sheet-textarea {
  width: 100%;
  min-height: 84px;
  padding: 10px 12px;
  border: 1px solid #e4e4e4;
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  resize: none;
  outline: none;
}

/* 表情面板底部「管理表情」 */
.emoji-foot {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  padding: 6px 8px 8px;
  border-top: 1px solid #ececec;
}
.emoji-manage-btn {
  padding: 4px 12px;
  border: 0;
  background: transparent;
  color: var(--green-dark);
  font-size: 12px;
}

/* ============================================================
   v2.2 新增：官方绿 V + 快捷回复
   ============================================================ */

.v-badge {
  flex: 0 0 auto;
  margin-left: 3px;
  vertical-align: -2px;
}
.conv-name .v-badge,
.me-name .v-badge,
.nav-title .v-badge,
.msg-sender .v-badge { vertical-align: -1px; }

.quick-bar {
  flex: 0 0 auto;
  display: flex;
  padding: 6px 10px 0;
  background: #f7f7f7;
}
.quick-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border: 0;
  border-radius: 14px;
  background: #e8f8ef;
  color: var(--green-dark);
  font-size: 12px;
}
.quick-btn:active { background: #d9f2e4; }

.sheet-row.quick-reply-row {
  display: block;
  white-space: normal;
  line-height: 1.55;
  text-align: left;
}

/* ============================================================
   v2.3 布局修正
   ============================================================ */
/* 首页隐藏整条导航，列表从顶部开始（消除大块空白） */
body.tab-chats #main-nav { display: none; }
#tab-chats { position: relative; }
.home-fab {
  position: absolute;
  right: 12px;
  top: calc(var(--safe-top) + 10px);
  z-index: 6;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.95);
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.home-fab:active { background: #f2f2f2; }
/* 消息少时从顶部开始排列（原先贴底） */
.chat-list { justify-content: flex-start; }

/* ============================================================
   v2.3 内容资产（表情包 / 主题 / 通话背景）
   ============================================================ */
.asset-loading, .asset-empty { height: 40vh; }
.sticker-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 12px; }
.sticker-pack { border: 0; background: #fff; border-radius: 14px; padding: 10px; display: flex; flex-direction: column;
  align-items: center; gap: 6px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.sticker-pack-cover { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: #f4f4f4; }
.sticker-pack-name { font-size: 13px; color: #222; }
.sticker-pack-count { font-size: 11px; color: #999; }
.sticker-sheet-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.sticker-item { border: 0; background: #f7f7f7; border-radius: 10px; padding: 0; overflow: hidden; }
.sticker-item img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.theme-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 12px; }
.theme-item { border: 2px solid transparent; border-radius: 12px; padding: 0; overflow: hidden; background: #f2f2f2;
  display: flex; flex-direction: column; align-items: center; }
.theme-item img { width: 100%; height: 96px; object-fit: cover; display: block; }
.theme-item span { font-size: 12px; color: #333; padding: 6px 0; }
.theme-item.is-on { border-color: #07c160; }
.theme-none { display: flex; align-items: center; justify-content: center; width: 100%; height: 96px; font-size: 13px; color: #666; }

/* ============================================================
   v2.4 加号面板 / 添加朋友 / 已读优化
   ============================================================ */
.plus-panel { padding-bottom: calc(8px + var(--safe-bottom)); }
.plus-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 18px 12px 10px; }
.plus-item { border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 12px; color: #333; padding: 6px 0; }
.plus-item:active { opacity: .65; }
.plus-ic { width: 54px; height: 54px; border-radius: 14px; background: #f2f2f2; display: flex; align-items: center;
  justify-content: center; color: #333; }
.plus-list { margin: 4px 12px 10px; background: #fff; border-radius: 12px; overflow: hidden; }
.plus-row { width: 100%; border: 0; background: #fff; display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; font-size: 15px; color: #222; border-bottom: 1px solid #f2f2f2; }
.plus-row:last-child { border-bottom: 0; }
.plus-cancel { width: calc(100% - 24px); margin: 6px 12px 10px; height: 46px; border: 0; border-radius: 12px;
  background: #f7f7f7; font-size: 16px; color: #333; }
.scan-box { height: 180px; background: #f5f5f5; border-radius: 12px; display: flex; align-items: center;
  justify-content: center; color: #bbb; }
.addfr-head { display: flex; gap: 8px; padding: 12px; align-items: center; }
.addfr-search { flex: 1; display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 10px;
  padding: 0 10px; height: 40px; border: 1px solid #e9e9e9; }
.addfr-search-ic { color: #999; display: flex; }
.addfr-input { flex: 1; border: 0; outline: 0; font-size: 15px; background: transparent; }
.addfr-btn { height: 40px; padding: 0 14px; border: 0; border-radius: 10px; background: #07c160; color: #fff; font-size: 14px; }
.addfr-my { padding: 2px 14px 10px; font-size: 13px; color: #888; }
.addfr-my b { color: #333; font-weight: 600; }

/* ============================================================
   v2.5 微信化改造
   ============================================================ */
/* 1) 顶部标题栏全部去掉（通讯录/发现/我/消息），内容顶到状态栏下 */
body #main-nav { display: none !important; }
body .tabpages { padding-top: env(safe-area-inset-top); }
body .tabpage { padding-top: 0; }
body .conv-list { padding-top: 8px; }
body .home-notice { margin-top: 8px; }

/* 2) 登录页：微信式白底 + 下划线输入 + 绿色按钮 */
body .view-login { background: #fff; }
body .login-inner { padding: 64px 28px 0; display: flex; flex-direction: column; min-height: 100%; box-sizing: border-box; }
body .login-brand { text-align: left; margin-bottom: 34px; display: flex; align-items: center; gap: 12px; }
body .login-logo { width: 58px; height: 58px; border-radius: 14px; box-shadow: none; }
body .login-name { font-size: 24px; font-weight: 600; color: #111; }
body .login-form { display: block; }
body .field { display: flex; align-items: center; gap: 10px; border: 0; border-bottom: 1px solid #ededed;
  border-radius: 0; padding: 0 0 14px; margin-bottom: 22px; background: transparent; }
body .field-icon { color: #b2b2b2; }
body .field input { font-size: 17px; padding: 6px 0; background: transparent; }
body .field input::placeholder { color: #c7c7c7; }
body .form-note { min-height: 18px; font-size: 13px; }
body .btn-primary { height: 46px; border-radius: 6px; background: #07c160; font-size: 17px; font-weight: 500;
  margin-top: 10px; box-shadow: none; }
body .login-tabs { display: flex; justify-content: center; gap: 28px; margin-top: 22px; }
body .login-tab { background: transparent; border: 0; color: #576b95; font-size: 15px; padding: 6px 2px; }
body .login-tab.is-on { color: #07c160; font-weight: 600; }
body .login-foot { margin-top: auto; padding: 40px 0 26px; text-align: center; color: #b2b2b2; font-size: 12px; }

/* 3) 语音气泡：微信式 */
body .bubble-voice { display: inline-flex; align-items: center; justify-content: space-between; gap: 8px;
  min-width: 74px; padding: 9px 12px; border-radius: 6px; position: relative; }
body .bubble-voice.voice-out { background: #95ec69; color: #111; }
body .bubble-voice.voice-in { background: #fff; color: #111; }
body .voice-arcs { display: inline-flex; align-items: center; gap: 3px; height: 16px; }
body .voice-arcs i { display: block; width: 3px; border-radius: 2px; background: currentColor; opacity: .55; }
body .voice-arcs i:nth-child(1) { height: 7px; }
body .voice-arcs i:nth-child(2) { height: 12px; }
body .voice-arcs i:nth-child(3) { height: 17px; }
body .bubble-voice.is-playing .voice-arcs i { animation: voiceBar .7s infinite ease-in-out; opacity: .95; }
body .bubble-voice.is-playing .voice-arcs i:nth-child(2) { animation-delay: .12s; }
body .bubble-voice.is-playing .voice-arcs i:nth-child(3) { animation-delay: .24s; }
@keyframes voiceBar { 0%,100% { transform: scaleY(.6); } 50% { transform: scaleY(1); } }
body .voice-dur { font-size: 13px; color: #4a4a4a; }
body .bubble-voice.voice-out .voice-dur { color: #2f4f2f; }

/* 4) 加号面板：更接近微信 */
body .plus-panel { background: #ededed; border-radius: 12px 12px 0 0; }
body .plus-grid { grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 20px 8px 8px; }
body .plus-item { gap: 7px; font-size: 11px; color: #4c4c4c; }
body .plus-ic { width: 58px; height: 58px; border-radius: 14px; background: #fff; color: #333; }
body .plus-cancel { background: #fff; margin: 10px 0 0; border-radius: 0; height: 50px; }

/* 5) 我页版权 */
body .me-footer { padding: 26px 0 12px; text-align: center; color: #b2b2b2; font-size: 12px; }

/* 公告图片 */
body .home-notice-img { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; margin-right: 8px; flex: none; }
body .notice-item-img { width: 100%; max-height: 180px; object-fit: cover; border-radius: 8px; margin: 4px 0 8px; display: block; }
body .notice-detail-img { width: 100%; border-radius: 10px; margin-bottom: 10px; display: block; }

/* 通讯录搜索条（微信式） */
body .contacts-search { margin: 10px 12px 6px; width: calc(100% - 24px); height: 34px; border: 0; border-radius: 6px;
  background: #ededed; color: #a3a3a3; font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 6px; }
body .contacts-search-ic { display: flex; }
body .contacts-search:active { background: #e3e3e3; }
body .plus-grid { grid-template-columns: repeat(4, 1fr); }

/* ============================================================
   v2.6 微信式长按菜单 / 转发 / 隐藏二级页标题
   ============================================================ */
body #page-title { display: none; }
body #page-nav .nav-main { display: none; }

body .msg-menu { position: fixed; z-index: 1500; display: flex; align-items: center; gap: 2px;
  background: #3b3b3b; border-radius: 10px; padding: 8px 6px; color: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,.3); }
body .msg-menu-item { width: 56px; padding: 4px 0; background: transparent; border: 0; color: #fff;
  display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 11px; }
body .msg-menu-item:active { opacity: .6; }
body .msg-menu-ic { display: flex; color: #fff; }
body .msg-menu-arrow { position: absolute; bottom: -5px; left: 50%; margin-left: -6px; width: 12px; height: 12px;
  background: #3b3b3b; transform: rotate(45deg); border-radius: 2px; }
body .msg-menu.is-below .msg-menu-arrow { top: -5px; bottom: auto; }

body .forward-list { max-height: 52vh; overflow-y: auto; }
body .forward-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 6px;
  border: 0; border-bottom: 1px solid #f2f2f2; background: #fff; font-size: 15px; color: #222; }
body .forward-row:last-child { border-bottom: 0; }
body .forward-name { flex: 1; text-align: left; }

/* ============================================================
   v2.7 聊天顶栏：昵称居中、字号适中
   ============================================================ */
body .nav-flex { flex: 1 1 auto; }
body .chat-nav { justify-content: flex-start; }
body .chat-nav .chat-nav-main {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  max-width: calc(100% - 156px); margin: 0; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
}
body .chat-nav .nav-title {
  font-size: 17px; font-weight: 600; line-height: 1.25; text-align: center;
  display: inline-flex; align-items: center; justify-content: center; gap: 3px;
  max-width: 100%;
}
body .chat-nav .nav-title .v-badge { flex: none; width: 14px; height: 14px; }
body .chat-nav #chat-call { margin-left: 0; }

/* ============================================================
   v2.8 微信式新消息横幅
   ============================================================ */
body .msg-banner {
  position: fixed; left: 8px; right: 8px; top: calc(var(--safe-top) + 8px);
  z-index: 1400; display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 30px rgba(16, 20, 24, 0.18); border: 1px solid rgba(0,0,0,.04);
  transform: translateY(-140%); opacity: 0; transition: transform .22s ease, opacity .22s ease;
  cursor: pointer;
}
body .msg-banner.is-show { transform: translateY(0); opacity: 1; }
body .msg-banner .avatar { flex: none; }
body .msg-banner-main { flex: 1; min-width: 0; }
body .msg-banner-name { font-size: 14px; font-weight: 600; color: #111; }
body .msg-banner-text { font-size: 12.5px; color: #6b7280; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; }
body .msg-banner-go { flex: none; font-size: 12px; color: #07c160; font-weight: 600; }

/* ============================================================
   v2.9 微信化：彩色图标 / 我页 / 通讯录索引 / 会话菜单 / 个人主页 / 朋友圈
   ============================================================ */
/* 彩色图标（微信式圆角方块） */
body .cell-ic { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center;
  justify-content: center; color: #fff; background: #9aa3ad; flex: none; }
body .cell-ic.is-orange { background: #f5a623; }
body .cell-ic.is-blue { background: #3b82f6; }
body .cell-ic.is-green { background: #07c160; }
body .cell-ic.is-yellow { background: #f7c948; color: #7a5b00; }
body .cell-ic.is-red { background: #ef4444; }
body .cell-ic.is-purple { background: #8b5cf6; }
body .cell { gap: 12px; }
body .cell-ic svg { width: 19px; height: 19px; }

/* 我页 */
body .me-page { display: flex; flex-direction: column; min-height: calc(100vh - 140px); padding-bottom: 8px; }
body .me-head { display: flex; align-items: center; gap: 14px; padding: 22px 16px 18px; }
body .me-head-avatar { border: 0; background: transparent; padding: 0; }
body .me-head-main { flex: 1; min-width: 0; }
body .me-head-name { font-size: 21px; font-weight: 700; color: #111; display: flex; align-items: center; gap: 4px; }
body .me-head-no { font-size: 13px; color: #8b929c; margin-top: 3px; }
body .me-head-pills { display: flex; gap: 8px; margin-top: 10px; }
body .me-pill { font-size: 12px; color: #576b95; border: 1px solid #e5e7eb; border-radius: 999px; padding: 3px 12px; background: #fff; }
body .me-qr { border: 0; background: transparent; color: #6b7280; padding: 6px; }
body .me-copyright { margin-top: auto; padding: 30px 0 14px; text-align: center; color: #b2b2b2; font-size: 12px; }

/* 通讯录 */
body .contacts-page { position: relative; min-height: calc(100vh - 120px); padding-bottom: 12px; }
body .contact-sec { padding: 6px 16px 4px; font-size: 12px; color: #8b929c; background: var(--bg); }
body .contact-list .cell { padding-left: 12px; }
body .contact-index { position: fixed; right: 2px; top: 50%; transform: translateY(-50%); z-index: 20;
  display: flex; flex-direction: column; gap: 1px; }
body .contact-index-item { border: 0; background: transparent; font-size: 10px; color: #8b929c; width: 16px; height: 14px; padding: 0; }
body .contact-index-item.is-off { opacity: .35; }
body .contact-empty { text-align: center; color: #b2b2b2; font-size: 13px; padding: 40px 0; }

/* 会话长按菜单 */
body .conv-menu { position: fixed; z-index: 1500; background: #fff; border-radius: 10px; min-width: 132px;
  box-shadow: 0 12px 34px rgba(0,0,0,.2); overflow: hidden; padding: 4px 0; }
body .conv-menu-item { display: block; width: 100%; border: 0; background: #fff; color: #222; font-size: 14.5px;
  text-align: left; padding: 13px 18px; white-space: nowrap; }
body .conv-menu-item:active { background: #f2f2f2; }
body .conv-menu-item.is-danger { color: #e5484d; }

/* 他人主页 */
body .user-page { padding-bottom: 24px; }
body .user-cover { position: relative; padding: 26px 16px 18px; background: linear-gradient(135deg, #eafaf1, #dff3ff); }
body .user-cover-main { position: relative; }
body .user-cover-name { font-size: 20px; font-weight: 700; margin-top: 10px; }
body .user-cover-sub { font-size: 13px; color: #6b7280; margin-top: 3px; }
body .user-cover-no { font-size: 12px; color: #8b929c; margin-top: 4px; }
body .user-actions { padding: 14px 16px; }
body .user-actions .btn-primary { width: 100%; height: 42px; }
body .user-section-title { padding: 8px 16px; font-size: 13px; color: #8b929c; background: var(--bg); }
body .user-moment { background: #fff; padding: 14px 16px; border-bottom: 1px solid #f2f2f2; }
body .user-moment-head { display: flex; gap: 10px; align-items: center; }
body .user-moment-name { font-size: 14px; font-weight: 600; color: #576b95; }
body .user-moment-time { font-size: 11px; color: #b2b2b2; }
body .user-moment-text { margin: 8px 0 6px; font-size: 15px; color: #111; line-height: 1.6; }

/* 朋友圈（微信式） */
body .moment-card { background: #fff; padding: 16px 14px; border-bottom: 1px solid #f2f2f2; }
body .moment-head { display: flex; gap: 10px; align-items: flex-start; }
body .moment-avatar { border: 0; background: transparent; padding: 0; }
body .moment-name { font-size: 15px; font-weight: 600; color: #576b95; }
body .moment-time { font-size: 11.5px; color: #b2b2b2; margin-top: 2px; }
body .moment-text { font-size: 15px; color: #111; line-height: 1.62; margin: 8px 0 4px; word-break: break-word; }
body .moment-grid { display: grid; gap: 4px; margin: 8px 0 4px; grid-template-columns: repeat(3, 1fr); }
body .moment-grid.m1 { grid-template-columns: 1fr; max-width: 62%; }
body .moment-grid.m2 { grid-template-columns: repeat(2, 1fr); max-width: 62%; }
body .moment-grid.m4 { grid-template-columns: repeat(2, 1fr); max-width: 62%; }
body .moment-img { border: 0; padding: 0; background: #f2f2f2; border-radius: 4px; overflow: hidden; }
body .moment-img img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
body .moment-foot { display: flex; justify-content: flex-end; gap: 4px; margin-top: 10px; }
body .moment-act { border: 0; background: #f2f2f2; color: #576b95; font-size: 12px; padding: 5px 12px; border-radius: 4px; }
body .moment-act.is-on { color: #b2b2b2; }
body .moment-act.is-danger { color: #e5484d; }
body .moment-likes, body .moment-comments { background: #f7f8fa; border-radius: 6px; padding: 7px 10px; margin-top: 8px; font-size: 13px; }
body .moment-likes { color: #576b95; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
body .moment-comment { color: #111; line-height: 1.6; }
body .moment-comment-name { color: #576b95; }
body .moment-comment-del { border: 0; background: transparent; color: #b2b2b2; font-size: 11px; padding: 0 2px; }
body .moment-loc { font-size: 12px; color: #576b95; margin-top: 6px; display: flex; align-items: center; gap: 4px; }

/* 朋友圈封面（重做） */
body .moment-cover { position: relative; height: 240px; overflow: hidden; }
body .moment-cover-bg { position: absolute; inset: 0;
  background: linear-gradient(160deg, #2f6fe4 0%, #6d5bd0 55%, #b45bd0 100%); }
body .moment-cover-bg::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(320px 200px at 80% 15%, rgba(255,255,255,.22), transparent 70%); }
body .moment-cover-cam { position: absolute; right: 14px; top: 14px; z-index: 2; width: 38px; height: 38px;
  border-radius: 10px; border: 0; background: rgba(0,0,0,.18); color: #fff; display: flex; align-items: center; justify-content: center; }
body .moment-me { position: absolute; right: 14px; bottom: 14px; z-index: 2; display: flex; align-items: flex-end; gap: 10px; }
body .moment-me-name { color: #fff; font-size: 16px; font-weight: 600; padding-bottom: 6px; text-shadow: 0 1px 6px rgba(0,0,0,.35); }
body .moment-me-avatar { border: 2px solid rgba(255,255,255,.9); border-radius: 12px; overflow: hidden; padding: 0; background: transparent; }
body .moment-more { width: 100%; border: 0; background: #fff; color: #576b95; font-size: 14px; padding: 14px 0; }

/* ============================================================
   v3.1 链接卡片消息
   ============================================================ */
body .bubble-link { padding: 0; background: transparent; border: 0; max-width: 78%; text-decoration: none; }
body .link-card { display: flex; gap: 10px; background: #fff; border-radius: 6px; padding: 10px 12px;
  border: 1px solid #ececec; align-items: flex-start; }
body .msg-out .link-card { background: #fff; }
body .link-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
body .link-title { font-size: 14.5px; color: #111; line-height: 1.4; font-weight: 500;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
body .link-desc { font-size: 12px; color: #8b929c; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
body .link-site { font-size: 11.5px; color: #b2b2b2; }
body .link-thumb { flex: none; width: 58px; height: 58px; border-radius: 6px; overflow: hidden; background: #f2f2f2; }
body .link-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   v3.2 聊天风险提示 / 视频通话
   ============================================================ */
body .chat-risk { display: flex; align-items: center; gap: 8px; margin: 8px 10px 0; padding: 9px 12px;
  background: #fff7e6; border: 1px solid #ffe2b0; border-radius: 8px; color: #8a5a00; font-size: 12.5px; line-height: 1.4; }
body .chat-risk-ic { width: 18px; height: 18px; border-radius: 50%; background: #f5a623; color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; flex: none; }
body .chat-risk-text { flex: 1; min-width: 0; }
body .chat-risk-close { border: 0; background: transparent; color: #b07a00; font-size: 18px; line-height: 1; padding: 0 2px; }

body .call-panel.is-video { background: #0b0d10; }
body .call-panel.is-video .call-info { position: relative; z-index: 2; background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,0)); padding-top: 18px; }
body .call-remote-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; z-index: 0; }
body .call-local-video { position: absolute; right: 14px; top: 76px; width: 96px; height: 132px; border-radius: 10px;
  object-fit: cover; z-index: 3; background: #111; box-shadow: 0 6px 18px rgba(0,0,0,.35); }
body .call-panel.is-video .call-actions { position: relative; z-index: 2; background: linear-gradient(0deg, rgba(0,0,0,.6), rgba(0,0,0,0)); }

/* ============================================================
   v3.3 微信化：加号面板 / 添加朋友 / 扫一扫 / 安全提示页 / 公告
   ============================================================ */
/* 加号面板（微信式：扁平彩色图标，无灰色底块） */
body .plus-panel { background: #fff; border-radius: 0; }
body .plus-grid { padding: 22px 10px 14px; gap: 10px; }
body .plus-item { color: #222; font-size: 12.5px; gap: 10px; }
body .plus-ic { width: 46px; height: 46px; border-radius: 0; background: transparent; }
body .plus-ic svg { width: 30px; height: 30px; }
body .plus-item:nth-child(1) .plus-ic { color: #3b82f6; }
body .plus-item:nth-child(2) .plus-ic { color: #f59e0b; }
body .plus-item:nth-child(3) .plus-ic { color: #0ea5e9; }
body .plus-item:nth-child(4) .plus-ic { color: #10b981; }
body .plus-item:nth-child(5) .plus-ic { color: #f59e0b; }
body .plus-item:nth-child(6) .plus-ic { color: #ef4444; }
body .plus-item:nth-child(7) .plus-ic { color: #8b5cf6; }
body .plus-item:nth-child(8) .plus-ic { color: #6b7280; }
body .plus-cancel { background: #f7f7f7; margin: 0; height: 50px; font-size: 16px; }

/* 添加朋友页 */
body .addfr-page { padding-bottom: 28px; }
body .addfr-list { background: #fff; }
body .addfr-row { display: flex; align-items: center; gap: 14px; width: 100%; border: 0; background: #fff;
  padding: 14px 16px; border-bottom: 1px solid #f2f2f2; text-align: left; }
body .addfr-row:last-child { border-bottom: 0; }
body .addfr-ic { width: 40px; height: 40px; border-radius: 0; display: flex; align-items: center; justify-content: center; flex: none; }
body .addfr-ic.is-blue { color: #3b82f6; }
body .addfr-ic.is-green { color: #07c160; }
body .addfr-ic.is-purple { color: #8b5cf6; }
body .addfr-ic svg { width: 26px; height: 26px; }
body .addfr-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
body .addfr-title { font-size: 16px; color: #111; }
body .addfr-sub { font-size: 12.5px; color: #b2b2b2; }
body .addfr-qr-card { margin: 26px 16px 8px; text-align: center; }
body .addfr-qr { width: 190px; height: 190px; margin: 0 auto 10px; display: block; background: #fff; }
body .addfr-qr-tip { font-size: 12.5px; color: #8b929c; }
body .addfr-qr-btn { margin-top: 10px; border: 0; background: transparent; color: #576b95; font-size: 13px; }
body .addfr-target { margin: 10px 16px; background: #fff; border-radius: 10px; padding: 12px 14px; }
body .addfr-target-head { font-size: 12px; color: #8b929c; margin-bottom: 8px; }
body .addfr-target-row { display: flex; align-items: center; gap: 12px; }
body .addfr-target-main { flex: 1; min-width: 0; }
body .addfr-target-name { font-size: 16px; color: #111; }
body .addfr-target-sub { font-size: 12px; color: #8b929c; }
body .addfr-add-btn { border: 0; background: #07c160; color: #fff; font-size: 14px; padding: 8px 16px; border-radius: 6px; }
body .my-qr-sheet { text-align: center; padding: 6px 0; }
body .my-qr-sheet img { width: 200px; height: 200px; margin: 0 auto 12px; display: block; }
body .my-qr-name { font-size: 16px; color: #111; }
body .my-qr-no { font-size: 12.5px; color: #8b929c; margin-top: 4px; }

/* 扫一扫 */
body .scan-page { min-height: 100%; background: #111; color: #fff; display: flex; flex-direction: column; align-items: center; }
body .scan-view { position: relative; width: 100%; max-width: 420px; aspect-ratio: 3 / 4; background: #000; overflow: hidden; }
body .scan-view video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
body .scan-frame { position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%); width: 220px; height: 220px;
  border: 2px solid rgba(7,193,96,.9); border-radius: 10px; box-shadow: 0 0 0 2000px rgba(0,0,0,.35); }
body .scan-tip { margin: 16px 20px 6px; font-size: 13px; color: #d9d9d9; text-align: center; }
body .scan-manual { display: flex; gap: 8px; padding: 12px 16px; width: 100%; max-width: 420px; box-sizing: border-box; }
body .scan-manual input { flex: 1; height: 40px; border-radius: 8px; border: 1px solid #333; background: #1b1b1b; color: #fff; padding: 0 12px; font-size: 14px; }
body .scan-manual .addfr-btn { height: 40px; }

/* 链接安全提示（独立页） */
body .safe-page { padding: 70px 28px 40px; text-align: center; }
body .safe-shield { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center; font-size: 40px; font-weight: 700; color: #fff; }
body .safe-shield.is-safe { background: #07c160; }
body .safe-shield.is-unsafe { background: #f5a623; }
body .safe-title { font-size: 20px; font-weight: 600; color: #111; }
body .safe-host { margin-top: 8px; font-size: 13px; color: #576b95; word-break: break-all; }
body .safe-desc { margin: 18px auto 0; max-width: 300px; font-size: 13.5px; color: #6b7280; line-height: 1.7; }
body .safe-actions { display: flex; gap: 12px; margin-top: 30px; }
body .safe-btn { flex: 1; height: 46px; border-radius: 8px; font-size: 16px; border: 0; }
body .safe-btn.ghost { background: #f2f2f2; color: #333; }
body .safe-btn.primary { background: #07c160; color: #fff; }
body .safe-note { margin-top: 18px; font-size: 12px; color: #b2b2b2; }

/* 公告页（微信式列表） */
body .notice-list { background: #fff; }
body .notice-item { display: block; width: 100%; border: 0; background: #fff; text-align: left; padding: 14px 16px;
  border-bottom: 1px solid #f2f2f2; }
body .notice-item.is-warn { border-left: 3px solid #f5a623; }
body .notice-item-title { font-size: 15.5px; color: #111; font-weight: 500; }
body .notice-item-text { font-size: 13px; color: #8b929c; margin-top: 5px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
body .notice-item-time { font-size: 11px; color: #b2b2b2; margin-top: 6px; }
body .notice-item-img { width: 100%; max-height: 120px; object-fit: cover; border-radius: 8px; margin-bottom: 8px; }

/* 原生扫码页 */
body .scan-native-actions { padding: 8px 16px 20px; width: 100%; max-width: 420px; box-sizing: border-box; }
body .scan-native-actions .addfr-btn { width: 100%; height: 42px; background: #07c160; color: #fff; border: 0; border-radius: 8px; }

/* ============================================================
   v3.4 首页顶栏（搜索+加号）/ 搜索页 / 建群页 / 好友操作 / 封面
   ============================================================ */
/* 首页顶栏：仅聊天 tab 显示，右侧搜索 + 加号 */
body #main-nav { display: none; }
body.tab-chats #main-nav { display: flex; }
body .nav-home .nav-main { visibility: hidden; }
body .nav-home #main-search, body .nav-home #main-add { flex: none; }
body .nav-home .nav-btn { width: 40px; height: 40px; }
body.tab-chats .tabpages { padding-top: 0; }
body .home-fab { display: none; }

/* 搜索好友页 */
body .searchfr-page { min-height: calc(100vh - 120px); }
body .addfr-searchbar { display: flex; align-items: center; gap: 8px; margin: 10px 12px; width: calc(100% - 24px);
  height: 38px; border: 0; border-radius: 8px; background: #ededed; color: #9aa0a6; font-size: 14px; padding: 0 12px; }
body .addfr-searchbar .addfr-search-ic { display: flex; color: #9aa0a6; }

/* 建群页 */
body .creategroup-page { padding-bottom: 30px; }
body .cg-name { background: #fff; padding: 14px 16px; }
body .cg-name input { width: 100%; border: 0; outline: none; font-size: 16px; }
body .cg-tip { padding: 10px 16px 6px; font-size: 12px; color: #8b929c; background: var(--bg); }
body .cg-list { background: #fff; }
body .cg-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #f2f2f2; }
body .cg-row:last-child { border-bottom: 0; }
body .cg-name-text { flex: 1; font-size: 16px; color: #111; }
body .cg-check { width: 20px; height: 20px; accent-color: #07c160; }
body .cg-submit { margin: 20px 16px 0; width: calc(100% - 32px); height: 46px; border: 0; border-radius: 8px;
  background: #07c160; color: #fff; font-size: 16px; }

/* 好友操作按钮 */
body .user-friend-actions { display: flex; gap: 10px; margin-top: 10px; }
body .user-ghost { flex: 1; height: 42px; border-radius: 8px; border: 1px solid #e5e7eb; background: #fff;
  color: #333; font-size: 15px; }
body .user-ghost.danger { color: #e5484d; border-color: #f4c7c9; }

/* 朋友圈封面：更换入口 */
body .moment-cover-edit { position: absolute; right: 56px; top: 14px; z-index: 2; height: 34px; padding: 0 12px;
  border: 0; border-radius: 8px; background: rgba(0,0,0,.18); color: #fff; font-size: 12px; }

/* 应用内横幅彻底隐藏（改为系统通知 + 提示音） */
body .msg-banner { display: none !important; }

/* 修正：聊天页顶部栏显示（覆盖早期 !important 隐藏） */
body.tab-chats #main-nav { display: flex !important; }
body:not(.tab-chats) #main-nav { display: none !important; }

/* ============================================================
   v3.5 搜索好友 / 新的朋友 / 消息头像
   ============================================================ */
body .msg-avatar { border: 0; background: transparent; padding: 0; margin: 0; flex: none; }
body .search-result { background: #fff; }
body .sr-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #fff; border-bottom: 1px solid #f2f2f2; }
body .sr-card:last-child { border-bottom: 0; }
body .sr-avatar { border: 0; background: transparent; padding: 0; flex: none; }
body .sr-main { flex: 1; min-width: 0; }
body .sr-name { font-size: 16px; color: #111; }
body .sr-sub { font-size: 12px; color: #9aa0a6; margin-top: 3px; }
body .sr-add { border: 0; background: #07c160; color: #fff; font-size: 13.5px; padding: 7px 16px; border-radius: 6px; }
body .sr-add.is-sent { background: #ededed; color: #9aa0a6; }

body .nf-page { padding-bottom: 20px; }
body .nf-card { display: flex; align-items: center; gap: 12px; background: #fff; padding: 14px 16px; border-bottom: 1px solid #f2f2f2; }
body .nf-avatar { border: 0; background: transparent; padding: 0; flex: none; }
body .nf-main { flex: 1; min-width: 0; }
body .nf-name { font-size: 16px; color: #111; }
body .nf-msg { font-size: 12.5px; color: #9aa0a6; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body .nf-actions { display: flex; gap: 8px; }
body .nf-btn { border: 0; height: 32px; padding: 0 14px; border-radius: 6px; font-size: 13px; }
body .nf-btn.primary { background: #07c160; color: #fff; }
body .nf-btn.ghost { background: #f2f2f2; color: #555; }
body .nf-state { font-size: 13px; color: #9aa0a6; }
body .nf-state.is-muted { color: #c9cdd2; }

/* ============================================================
   v3.6 个人资料页（微信样式）
   ============================================================ */
body .user-page2 { padding-bottom: 26px; }
body .up-cover { position: relative; height: 210px; background: linear-gradient(160deg, #2f6fe4, #6d5bd0 60%, #b45bd0);
  background-size: cover; background-position: center; }
body .up-cover-mask { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.16), rgba(0,0,0,0)); }
body .up-card { position: relative; margin-top: -34px; padding: 0 16px; display: flex; align-items: flex-end; gap: 14px; }
body .up-avatar { border: 3px solid #fff; border-radius: 12px; background: #fff; padding: 0; overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,.12); flex: none; }
body .up-avatar .avatar { border-radius: 9px; }
body .up-info { flex: 1; min-width: 0; padding-bottom: 4px; }
body .up-name { font-size: 20px; font-weight: 700; color: #111; display: flex; align-items: center; gap: 4px; }
body .up-id { font-size: 12.5px; color: #8b929c; margin-top: 4px; }
body .up-sign { font-size: 13px; color: #6b7280; margin-top: 4px; }
body .up-more { border: 0; background: transparent; font-size: 20px; color: #6b7280; padding: 0 2px 6px; flex: none; }
body .up-actions { display: flex; gap: 10px; padding: 14px 16px 4px; }
body .up-btn { height: 38px; padding: 0 20px; border-radius: 19px; border: 0; background: #f2f2f2;
  color: #111; font-size: 14.5px; }
body .up-btn.primary { background: #07c160; color: #fff; }
body .up-btn.icon { width: 38px; padding: 0; display: flex; align-items: center; justify-content: center; }
body .up-moments { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: #fff;
  margin-top: 12px; padding: 14px 16px; text-align: left; }
body .up-moments-title { font-size: 15px; color: #111; flex: none; }
body .up-moments-thumbs { flex: 1; min-width: 0; display: flex; gap: 4px; justify-content: flex-end; }
body .up-thumb { width: 40px; height: 40px; border-radius: 4px; overflow: hidden; background: #f2f2f2; }
body .up-thumb img { width: 100%; height: 100%; object-fit: cover; }
body .up-thumb-empty { font-size: 12px; color: #9aa0a6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body .up-rows { background: #fff; margin-top: 10px; }
body .up-row { display: flex; justify-content: space-between; padding: 13px 16px; font-size: 14.5px; color: #111;
  border-bottom: 1px solid #f2f2f2; }
body .up-row:last-child { border-bottom: 0; }
body .up-row-val { color: #8b929c; }
body .up-feed { background: #fff; margin-top: 10px; }
body .up-feed-item { padding: 14px 16px; border-bottom: 1px solid #f2f2f2; }
body .up-feed-text { font-size: 15px; color: #111; line-height: 1.6; margin-bottom: 8px; }
body .up-feed-foot { font-size: 11.5px; color: #b2b2b2; margin-top: 8px; }
body .up-empty { text-align: center; color: #b2b2b2; font-size: 13px; padding: 40px 0; }

/* 个人资料页细节压缩 */
body .up-cover { height: 170px; }
body .up-card { margin-top: -28px; }
body .up-actions { padding: 10px 16px 2px; }
body .up-moments { margin-top: 8px; padding: 12px 16px; }
body .up-feed { margin-top: 8px; }
body .up-empty { padding: 26px 0; }
body .up-feed-item { padding: 12px 16px; }


/* 个人资料页 v2：白底信息卡 + 头像叠在封面 */
body .up-cover { height: 150px; }
body .up-card { position: relative; background: #fff; margin-top: 0; padding: 12px 16px 8px 94px; min-height: 84px;
  display: block; }
body .up-avatar { position: absolute; left: 16px; top: -26px; width: 64px; height: 64px; border-radius: 12px;
  border: 3px solid #fff; box-shadow: 0 2px 10px rgba(0,0,0,.12); overflow: hidden; background: #fff; }
body .up-avatar .avatar { width: 100%; height: 100%; border-radius: 9px; font-size: 26px; }
body .up-info { padding: 0; }
body .up-name { font-size: 18px; font-weight: 600; }
body .up-id { font-size: 12px; margin-top: 3px; }
body .up-sign { font-size: 12.5px; margin-top: 3px; }
body .up-more { position: absolute; right: 12px; top: 10px; padding: 4px 8px; }
body .up-actions { background: #fff; padding: 8px 16px 12px; margin-top: 0; border-bottom: 1px solid #f2f2f2; }
body .up-moments { margin-top: 10px; }

/* ============================================================
   v4.0 四页微信化：沉浸式 / 气泡尾巴 / 我页头部 / 朋友圈
   ============================================================ */
/* 沉浸式页面：隐藏白底导航，使用浮动返回 */
body.imm #page-nav { display: none !important; }
body.imm #view-page { background: #ededed; }
body .float-back { position: fixed; left: 10px; top: calc(env(safe-area-inset-top) + 10px); z-index: 60;
  width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(0,0,0,.32); color: #fff;
  font-size: 22px; line-height: 1; display: flex; align-items: center; justify-content: center; padding-bottom: 3px; }

/* 聊天气泡：微信式尖角 */
body .msg .bubble-text, body .msg .bubble-link, body .msg .bubble-voice { position: relative; }
body .msg-in .bubble-text::before, body .msg-in .bubble-voice::before {
  content: ""; position: absolute; left: -5px; top: 13px; border: 5px solid transparent; border-right-color: #fff; }
body .msg-out .bubble-text::after, body .msg-out .bubble-voice::after {
  content: ""; position: absolute; right: -5px; top: 13px; border: 5px solid transparent; border-left-color: #95ec69; }
body .msg-in .bubble-voice.voice-in::before { border-right-color: #fff; }
body .msg-out .bubble-voice.voice-out::after { border-left-color: #95ec69; }

/* 我页：微信式头部（头像在右） */
body .me-page { background: #ededed; }
body .me-head { flex-direction: row-reverse; padding: 24px 16px 20px; background: #fff; margin-bottom: 10px; }
body .me-head-main { text-align: left; }
body .me-head-name { font-size: 22px; }
body .me-head-no { font-size: 13px; margin-top: 5px; }
body .me-head-pills { margin-top: 12px; gap: 10px; }
body .me-pill { background: #f7f7f7; border-color: #f0f0f0; color: #576b95; padding: 4px 14px; }
body .me-qr { display: none; }
body .me-head-avatar { width: 64px; height: 64px; }
body .me-head-avatar .avatar { width: 64px; height: 64px; border-radius: 8px; font-size: 26px; }
body .me-page .group { margin-bottom: 10px; }
body .me-page .cell { padding: 13px 14px; gap: 14px; }
body .me-copyright { color: #b2b2b2; }

/* 朋友圈封面与卡片 */
body .moment-cover { height: 300px; }
body .moment-cover .float-back { top: calc(env(safe-area-inset-top) + 10px); }
body .moment-cover-cam, body .moment-cover-edit { top: calc(env(safe-area-inset-top) + 10px); }
body .moment-cover-edit { right: 58px; }
body .moment-cover-cam { right: 12px; }
body .moment-me { left: 14px; right: auto; bottom: 16px; flex-direction: row; align-items: center; }
body .moment-me-name { order: -1; color: #fff; font-size: 17px; padding: 0 8px 0 0; }
body .moment-cover-bg { background-size: cover; background-position: center; }
body .moment-card { padding: 14px 14px 6px; }
body .moment-head .moment-meta { flex: 1; }
body .moment-name { font-size: 15.5px; }
body .moment-text { font-size: 15.5px; margin: 6px 0 4px; }
body .moment-grid { margin: 8px 0 2px; gap: 3px; }
body .moment-foot { margin: 4px 0 0; gap: 2px; }
body .moment-act { background: transparent; color: #576b95; padding: 6px 10px; font-size: 12.5px; }
body .moment-more { border-top: 1px solid #f2f2f2; }

/* 聊天页整体：微信浅灰底 */
body .view-chat { background: #ededed; }
body .chat-scroll { background: #ededed; }
body .composer { background: #f7f7f7; border-top: 1px solid #e3e3e3; }
body .composer-text { background: #fff; border-radius: 4px; }


/* 沉浸式：彻底移除二级页白色导航占位 */
body.imm #view-page > header.nav { display: none !important; }
body.imm #view-page .scroll-body { padding-top: 0 !important; }
body.imm #page-body { padding-top: 0 !important; }
body.imm .float-back { top: calc(env(safe-area-inset-top) + 8px); width: 32px; height: 32px;
  background: rgba(0,0,0,.38); font-size: 20px; padding-bottom: 2px; }
body.imm .up-cover { border-radius: 0; }

/* ============================================================
   个人资料 v3 / 我页 v2（微信式信息行）
   ============================================================ */
body .up-cover { height: 180px; }
body .up-card { padding: 12px 16px 10px 92px; min-height: 86px; background: #fff; }
body .up-avatar { left: 16px; top: -26px; width: 62px; height: 62px; }
body .up-name { font-size: 17.5px; }
body .up-actions { background: #fff; padding: 6px 16px 12px; display: flex; gap: 10px; border-bottom: 1px solid #f2f2f2; }
body .up-btn { height: 34px; padding: 0 18px; font-size: 14px; }
body .up-cells { background: #fff; margin-top: 8px; }
body .up-cell { display: flex; align-items: center; gap: 10px; width: 100%; background: #fff; border: 0;
  border-bottom: 1px solid #f2f2f2; padding: 13px 16px; text-align: left; }
body .up-cell:last-child { border-bottom: 0; }
body .up-cell-key { font-size: 15px; color: #111; flex: none; width: 86px; }
body .up-cell-val { flex: 1; min-width: 0; text-align: right; font-size: 13.5px; color: #9aa0a6;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
body .up-cell-val .avatar { width: 30px; height: 30px; border-radius: 5px; font-size: 13px; }
body .up-cell-thumbs { flex: 1; min-width: 0; display: flex; gap: 4px; justify-content: flex-end; }
body .up-cell-thumbs .up-thumb { width: 32px; height: 32px; border-radius: 3px; overflow: hidden; }
body .up-thumb-empty { font-size: 12px; color: #b2b2b2; }
body .up-cell-link { border-bottom: 1px solid #f2f2f2; }

/* 我页微调 */
body .me-head { padding: 22px 16px 18px; }
body .me-head-name { font-size: 21px; }
body .me-head-no { font-size: 12.5px; color: #9aa0a6; }
body .me-pill { font-size: 11.5px; padding: 3px 12px; }
body .me-page .cell { padding: 14px; }
body .me-page .group { border-radius: 8px; margin: 0 8px 10px; overflow: hidden; }
body .me-head { margin: 0 0 10px; }
body .me-copyright { padding: 18px 0 10px; }

/* ============================================================
   注册后完善资料
   ============================================================ */
body .onb-page { min-height: 100%; background: #fff; padding: 26px 22px 40px; }
body .onb-head { margin-bottom: 18px; }
body .onb-title { font-size: 22px; font-weight: 700; color: #111; }
body .onb-sub { font-size: 13px; color: #9aa0a6; margin-top: 6px; }
body .onb-avatar-wrap { text-align: center; padding: 10px 0 22px; }
body .onb-avatar { width: 84px; height: 84px; border-radius: 14px; border: 0; background: #f2f2f2; padding: 0;
  overflow: hidden; display: inline-flex; align-items: center; justify-content: center; }
body .onb-avatar .avatar { width: 100%; height: 100%; border-radius: 14px; font-size: 30px; }
body .onb-avatar-plus { font-size: 34px; color: #b2b2b2; }
body .onb-avatar-tip { font-size: 12px; color: #9aa0a6; margin-top: 8px; }
body .onb-form { background: #fff; }
body .onb-row { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid #f2f2f2; padding: 14px 0; }
body .onb-key { width: 86px; flex: none; font-size: 15px; color: #111; }
body .onb-input { flex: 1; border: 0; outline: none; font-size: 15px; background: transparent; text-align: right; color: #333; }
body .onb-genders { flex: 1; display: flex; gap: 10px; justify-content: flex-end; }
body .onb-gender { height: 32px; padding: 0 18px; border-radius: 16px; border: 1px solid #e5e7eb; background: #fff;
  color: #555; font-size: 14px; }
body .onb-gender.is-on { background: #e9f9ef; border-color: #07c160; color: #07a054; }
body .onb-note { min-height: 18px; font-size: 12.5px; color: #e5484d; margin-top: 10px; }
body .onb-submit { width: 100%; height: 46px; border: 0; border-radius: 8px; background: #07c160; color: #fff;
  font-size: 16px; margin-top: 14px; }
body .onb-skip { width: 100%; height: 40px; border: 0; background: transparent; color: #9aa0a6; font-size: 13px; margin-top: 8px; }

/* ============================================================
   邀请有礼活动（首页卡片 / 活动页 / 注册后弹窗）
   ============================================================ */
body .invite-card { position: relative; margin: 10px 10px 4px; border-radius: 12px; overflow: hidden;
  background: linear-gradient(120deg, #ff7a3d, #ff4d4f 55%, #e93b8b); box-shadow: 0 6px 16px rgba(255,77,79,.22); }
body .invite-card-main { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: transparent;
  padding: 12px 40px 12px 12px; text-align: left; }
body .invite-card-badge { flex: none; background: rgba(255,255,255,.22); color: #fff; font-size: 11px;
  padding: 2px 8px; border-radius: 10px; }
body .invite-card-text { flex: 1; color: #fff; font-size: 13px; line-height: 1.5; }
body .invite-card-text b { font-size: 16px; }
body .invite-card-cta { flex: none; background: #fff; color: #e93b3b; font-size: 12px; font-weight: 600;
  padding: 6px 12px; border-radius: 14px; }
body .invite-card-x { position: absolute; right: 4px; top: 4px; width: 26px; height: 26px; border: 0;
  background: transparent; color: rgba(255,255,255,.85); font-size: 18px; line-height: 1; }

body .inv-page { padding-bottom: 30px; background: #f5f6f7; }
body .inv-hero { background: linear-gradient(135deg, #ff6b35, #ff3d68 60%, #d81b8c); color: #fff;
  padding: 24px 18px 20px; }
body .inv-hero-kicker { font-size: 12px; opacity: .85; letter-spacing: 1px; }
body .inv-hero-title { font-size: 26px; font-weight: 700; line-height: 1.35; margin: 8px 0 6px; }
body .inv-hero-title em { font-style: normal; font-size: 34px; color: #fff3b0; }
body .inv-hero-sub { font-size: 12.5px; opacity: .9; }
body .inv-hero-stats { display: flex; gap: 8px; margin-top: 16px; }
body .inv-stat { flex: 1; background: rgba(255,255,255,.16); border-radius: 10px; padding: 10px 6px; text-align: center; }
body .inv-stat b { display: block; font-size: 19px; }
body .inv-stat span { font-size: 11px; opacity: .85; }
body .inv-link-card { background: #fff; margin: -14px 12px 0; border-radius: 12px; padding: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,.06); position: relative; }
body .inv-link-label { font-size: 12.5px; color: #8b929c; }
body .inv-link-row { display: flex; gap: 8px; margin-top: 8px; }
body .inv-link-input { flex: 1; min-width: 0; border: 1px solid #eceef1; border-radius: 8px; background: #f7f8fa;
  padding: 9px 10px; font-size: 12.5px; color: #333; }
body .inv-link-copy { flex: none; border: 0; border-radius: 8px; background: #ff4d4f; color: #fff;
  font-size: 13px; padding: 0 16px; }
body .inv-link-code { font-size: 12.5px; color: #6b7280; margin-top: 8px; }
body .inv-link-code b { color: #e93b3b; letter-spacing: 1px; }
body .inv-qr { display: flex; justify-content: center; padding: 14px 0 4px; }
body .inv-qr img { width: 132px; height: 132px; border-radius: 8px; }
body .inv-qr-loading { font-size: 12px; color: #9aa0a6; }
body .inv-qr-tip { text-align: center; font-size: 11.5px; color: #9aa0a6; padding-bottom: 2px; }
body .inv-progress-card { background: #fff; margin: 10px 12px 0; border-radius: 12px; padding: 14px 16px; }
body .inv-progress-head { display: flex; justify-content: space-between; font-size: 13px; color: #111; }
body .inv-progress-head b { color: #e93b3b; }
body .inv-progress-bar { height: 8px; border-radius: 4px; background: #f2f3f5; margin: 10px 0 8px; overflow: hidden; }
body .inv-progress-bar i { display: block; height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, #ff8a3d, #ff4d4f); }
body .inv-progress-note { font-size: 11.5px; color: #9aa0a6; }
body .inv-rules { background: #fff; margin: 10px 12px 0; border-radius: 12px; padding: 14px 16px; }
body .inv-rules-title { font-size: 14px; font-weight: 600; color: #111; margin-bottom: 8px; }
body .inv-rules p { font-size: 12.5px; color: #6b7280; line-height: 1.75; margin: 4px 0; }
body .inv-actions { display: flex; gap: 10px; margin: 16px 12px 0; }
body .inv-btn { flex: 1; height: 44px; border-radius: 22px; border: 1px solid #eceef1; background: #fff;
  color: #333; font-size: 15px; }
body .inv-btn.primary { border: 0; background: linear-gradient(120deg, #ff6b35, #ff3d68); color: #fff; }

/* 注册后活动弹窗 */
body .invite-pop { text-align: center; padding: 22px 18px 12px; position: relative;
  background: linear-gradient(180deg, #fff6ec, #fff 45%); border-radius: 14px; }
body .invite-pop-x { position: absolute; right: 8px; top: 6px; width: 30px; height: 30px; border: 0;
  background: transparent; color: #9aa0a6; font-size: 20px; line-height: 1; }
body .invite-pop-kicker { display: inline-block; font-size: 11px; color: #fff; background: #ff5a3c;
  padding: 2px 10px; border-radius: 10px; letter-spacing: 1px; }
body .invite-pop-title { font-size: 23px; font-weight: 700; color: #1f2329; line-height: 1.4; margin: 12px 0 8px; }
body .invite-pop-title em { font-style: normal; color: #ff4d4f; font-size: 30px; }
body .invite-pop-desc { font-size: 12.5px; color: #6b7280; line-height: 1.7; margin: 0 auto 16px; max-width: 300px; }
body .invite-pop-go { width: 100%; height: 44px; border: 0; border-radius: 22px;
  background: linear-gradient(120deg, #ff6b35, #ff3d68); color: #fff; font-size: 16px; }
body .invite-pop-later { width: 100%; height: 36px; border: 0; background: transparent;
  color: #9aa0a6; font-size: 13px; margin-top: 4px; }

/* 提示框文字排版更紧凑好看 */
body .sheet-note { font-size: 13.5px; line-height: 1.7; color: #50565e; }
body .sheet-title { letter-spacing: .3px; }
body .sheet-body { padding: 4px 2px; }
body .sheet-row-main { line-height: 1.45; }

/* ============================================================
   v4.5 邀请活动视觉重做（浅色高级感）
   ============================================================ */
body .invite-card { position: relative; margin: 10px 12px 2px; border-radius: 14px; overflow: hidden;
  background: linear-gradient(135deg, #fff7ee, #ffe9dd); border: 1px solid #ffe0cc;
  box-shadow: 0 4px 14px rgba(255,106,61,.08); }
body .invite-card-main { display: flex; align-items: center; gap: 10px; width: 100%; border: 0;
  background: transparent; padding: 12px 34px 12px 12px; text-align: left; }
body .invite-card-icon { width: 34px; height: 34px; flex: none; border-radius: 50%; color: #fff; font-weight: 700;
  font-size: 16px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #ff8a4c, #ff4d4f); box-shadow: 0 4px 10px rgba(255,77,79,.25); }
body .invite-card-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
body .invite-card-text b { font-size: 14px; color: #3a2b23; font-weight: 600; }
body .invite-card-text i { font-style: normal; font-size: 11.5px; color: #a4745c; }
body .invite-card-cta { flex: none; font-size: 12.5px; color: #ff4d4f; font-weight: 600; }
body .invite-card-cta::after { content: " ›"; font-weight: 400; }
body .invite-card-x { position: absolute; right: 2px; top: 2px; width: 24px; height: 24px; border: 0;
  background: transparent; color: #c8a28e; font-size: 16px; line-height: 1; }

/* 注册后弹窗（居中卡片） */
body.inv-modal-open { overflow: hidden; }
body .inv-modal-root { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; }
body .inv-modal-mask { position: absolute; inset: 0; background: rgba(17,20,24,.5); }
body .inv-modal { position: relative; width: min(320px, 84vw); border-radius: 20px; overflow: hidden;
  background: #fff; box-shadow: 0 18px 50px rgba(0,0,0,.25); animation: invPop .22s ease-out; }
@keyframes invPop { from { transform: translateY(12px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
body .inv-modal-art { position: relative; padding: 22px 20px 18px; text-align: center; color: #fff;
  background: radial-gradient(120px 80px at 85% 0%, rgba(255,255,255,.35), transparent 60%),
              linear-gradient(135deg, #ff8a4c, #ff4d6d 70%); }
body .inv-modal-x { position: absolute; right: 8px; top: 8px; width: 28px; height: 28px; border: 0;
  border-radius: 50%; background: rgba(255,255,255,.18); color: #fff; font-size: 17px; line-height: 1; }
body .inv-modal-tag { display: inline-block; font-size: 11px; letter-spacing: 2px; padding: 2px 10px;
  border-radius: 10px; background: rgba(255,255,255,.2); }
body .inv-modal-amount { font-size: 42px; font-weight: 700; letter-spacing: -.5px; line-height: 1.1; margin-top: 10px; }
body .inv-modal-amount span { font-size: 20px; font-weight: 500; margin-right: 2px; }
body .inv-modal-amount-sub { font-size: 11.5px; opacity: .9; margin-top: 4px; }
body .inv-modal-body { padding: 18px 20px 14px; text-align: center; }
body .inv-modal-heading { font-size: 16px; font-weight: 600; color: #1f2329; }
body .inv-modal-desc { font-size: 12.5px; color: #7b838e; line-height: 1.75; margin: 8px 0 16px; }
body .inv-modal-go { width: 100%; height: 44px; border: 0; border-radius: 22px; color: #fff; font-size: 15.5px;
  background: linear-gradient(120deg, #ff8a4c, #ff4d6d); box-shadow: 0 6px 16px rgba(255,77,109,.25); }
body .inv-modal-later { width: 100%; height: 34px; border: 0; background: transparent; color: #9aa0a6; font-size: 12.5px; }

/* 活动页 v2 */
body .inv2 { background: #f5f6f7; padding-bottom: 86px; }
body .inv2-hero { padding: 18px 18px 22px; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(160px 120px at 90% -10%, rgba(255,255,255,.28), transparent 60%),
              linear-gradient(140deg, #ff8f5a, #ff5a6e 60%, #f0447c); }
body .inv2-hero::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 160px; height: 160px;
  border-radius: 50%; background: rgba(255,255,255,.08); }
body .inv2-hero-top { display: flex; align-items: center; justify-content: space-between; }
body .inv2-tag { font-size: 11px; letter-spacing: 2px; padding: 2px 10px; border-radius: 10px;
  background: rgba(255,255,255,.2); }
body .inv2-hero-hint { font-size: 11px; opacity: .85; }
body .inv2-title { font-size: 14px; margin-top: 16px; opacity: .95; }
body .inv2-amount { font-size: 40px; font-weight: 700; line-height: 1.15; margin-top: 2px; }
body .inv2-currency { font-size: 20px; font-weight: 500; margin-right: 2px; }
body .inv2-unit { font-size: 12px; font-weight: 400; opacity: .85; margin-left: 6px; }
body .inv2-sub { font-size: 12px; line-height: 1.7; opacity: .9; margin-top: 6px; max-width: 92%; }
body .inv2-stats { display: flex; align-items: center; margin-top: 18px; background: rgba(0,0,0,.10);
  border-radius: 12px; padding: 10px 0; }
body .inv2-stat { flex: 1; text-align: center; }
body .inv2-stat b { display: block; font-size: 18px; line-height: 1.2; }
body .inv2-stat span { font-size: 10.5px; opacity: .8; }
body .inv2-card { background: #fff; margin: 10px 12px 0; border-radius: 14px; padding: 16px;
  box-shadow: 0 2px 10px rgba(17,24,39,.04); }
body .inv2-label { font-size: 12px; color: #8b929c; }
body .inv2-link { display: flex; gap: 8px; margin-top: 8px; }
body .inv2-input { flex: 1; min-width: 0; border: 1px solid #eef0f3; border-radius: 9px; background: #f8f9fb;
  padding: 9px 10px; font-size: 12px; color: #4b5563; }
body .inv2-copy { flex: none; border: 0; background: transparent; color: #ff4d4f; font-size: 13px;
  font-weight: 600; padding: 0 6px; }
body .inv2-code { margin-top: 10px; font-size: 12px; color: #8b929c; }
body .inv2-code b { color: #2f3542; letter-spacing: 2px; margin-left: 4px; }
body .inv2-qr { display: flex; justify-content: center; padding: 14px 0 6px; }
body .inv2-qr img { width: 128px; height: 128px; border-radius: 10px; border: 1px solid #f1f2f4; padding: 6px; }
body .inv2-qr-loading { font-size: 12px; color: #9aa0a6; }
body .inv2-qr-tip { text-align: center; font-size: 11px; color: #9aa0a6; }
body .inv2-progress-head { display: flex; justify-content: space-between; font-size: 13px; color: #2f3542; }
body .inv2-progress-head b { color: #ff4d4f; }
body .inv2-dots { display: flex; gap: 6px; margin: 12px 0 8px; }
body .inv2-dots i { flex: 1; height: 6px; border-radius: 3px; background: #f1f2f4; }
body .inv2-dots i.is-on { background: linear-gradient(90deg, #ff8a4c, #ff4d6d); }
body .inv2-progress-note { font-size: 11px; color: #9aa0a6; }
body .inv2-rules-title { font-size: 14px; font-weight: 600; color: #2f3542; margin-bottom: 10px; }
body .inv2-rule { display: flex; gap: 10px; margin: 8px 0; }
body .inv2-rule i { flex: none; width: 16px; height: 16px; border-radius: 50%; font-style: normal; font-size: 10px;
  color: #ff6a3d; background: #fff1e9; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
body .inv2-rule p { font-size: 12.5px; color: #7b838e; line-height: 1.75; margin: 0; }
body .inv2-gap { height: 10px; }
body .inv2-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96);
  border-top: 1px solid #f0f1f3; backdrop-filter: blur(8px); }
body .inv2-bar-ghost { flex: 1; height: 44px; border-radius: 22px; border: 1px solid #e8eaee; background: #fff;
  color: #4b5563; font-size: 14.5px; }
body .inv2-bar-primary { flex: 2; height: 44px; border-radius: 22px; border: 0; color: #fff; font-size: 15px;
  background: linear-gradient(120deg, #ff8a4c, #ff4d6d); box-shadow: 0 6px 16px rgba(255,77,109,.22); }

/* ============================================================
   余额提现
   ============================================================ */
body .bal-actions { display: flex; gap: 10px; margin: 14px 12px 0; }
body .bal-btn { flex: 1; height: 44px; border-radius: 22px; font-size: 15px; border: 1px solid #e8eaee;
  background: #fff; color: #2f3542; }
body .bal-btn.primary { border: 0; background: linear-gradient(120deg, #ff8a4c, #ff4d6d); color: #fff; }
body .bal-records { background: #fff; margin: 12px 12px 30px; border-radius: 12px; padding: 14px 16px; }
body .bal-records-title { font-size: 13.5px; font-weight: 600; color: #2f3542; margin-bottom: 8px; }
body .bal-empty { font-size: 12.5px; color: #9aa0a6; padding: 6px 0 2px; }
body .bal-record { display: flex; align-items: center; justify-content: space-between; padding: 9px 0;
  border-bottom: 1px solid #f4f5f7; }
body .bal-record:last-child { border-bottom: 0; }
body .bal-record-main b { font-size: 15px; color: #111; }
body .bal-record-time { display: block; font-size: 11px; color: #9aa0a6; margin-top: 2px; }
body .bal-record-state { font-size: 12px; color: #ff9f43; }
body .bal-record-state.is-1 { color: #07c160; }
body .bal-record-state.is-2 { color: #9aa0a6; }
body .withdraw-balance { font-size: 13px; color: #6b7280; margin-bottom: 12px; }
body .withdraw-balance b { color: #111; font-size: 16px; }
body .withdraw-input-row { display: flex; align-items: center; gap: 6px; border-bottom: 1px solid #eef0f3; padding: 6px 0 10px; }
body .withdraw-input-row span { font-size: 22px; color: #111; }
body .withdraw-input { flex: 1; border: 0; outline: none; font-size: 26px; font-weight: 600; color: #111; background: transparent; }
body .withdraw-quick { text-align: right; margin: 8px 0 4px; }
body .withdraw-quick button { border: 0; background: transparent; color: #576b95; font-size: 12.5px; }

/* ============================================================
   公告：独立列表页 + 详情页
   ============================================================ */
body .ann2-list { padding: 10px 12px 24px; }
body .ann2-item { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; background: #fff;
  border-radius: 12px; padding: 14px; margin-bottom: 10px; text-align: left;
  box-shadow: 0 2px 10px rgba(17,24,39,.04); }
body .ann2-item-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
body .ann2-item-title { font-size: 15.5px; font-weight: 600; color: #1f2329; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
body .ann2-item-snippet { font-size: 12.5px; color: #8b929c; line-height: 1.55; }
body .ann2-item-time { font-size: 11px; color: #b2b7bf; }
body .ann2-item-thumb { flex: none; width: 64px; height: 64px; border-radius: 8px; overflow: hidden; background: #f2f3f5; }
body .ann2-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
body .ann2-empty { text-align: center; color: #9aa0a6; font-size: 13px; padding: 60px 0; }

body .ann2-detail { background: #fff; min-height: 100%; padding: 22px 18px 40px; }
body .ann2-kicker { font-size: 11.5px; color: #ff6a3d; letter-spacing: 2px; }
body .ann2-title { font-size: 22px; line-height: 1.45; font-weight: 700; color: #1b1f24; margin: 8px 0 6px; }
body .ann2-meta { font-size: 12px; color: #9aa0a6; padding-bottom: 14px; border-bottom: 1px solid #f2f3f5; }
body .ann2-cover { margin: 16px 0 4px; border-radius: 12px; overflow: hidden; background: #f2f3f5; }
body .ann2-cover img { display: block; width: 100%; height: auto; }
body .ann2-body { padding-top: 12px; }
body .ann2-body p { font-size: 15px; line-height: 1.9; color: #2f3542; margin: 0 0 12px; letter-spacing: .2px; }
body .ann2-body p.is-warn { background: #fff8f1; border-left: 3px solid #ff8a4c; border-radius: 4px;
  padding: 10px 12px; color: #8a4b22; }
body .ann2-sign { margin-top: 26px; text-align: right; font-size: 13.5px; color: #6b7280; }
body .ann2-copy { margin-top: 6px; text-align: right; font-size: 11px; color: #c2c7cf; }

/* ============================================================
   登录页协议 + 法律文档页
   ============================================================ */
body .login-foot { font-size: 12px; color: #9aa0a6; line-height: 1.9; text-align: center; }
body .login-foot .legal-link { border: 0; background: transparent; padding: 0 1px; font: inherit;
  color: #576b95; }
body .legal-page { background: #fff; min-height: 100%; padding: 24px 20px 40px; }
body .legal-title { font-size: 23px; font-weight: 700; color: #1b1f24; line-height: 1.4; }
body .legal-updated { font-size: 12px; color: #9aa0a6; margin: 8px 0 18px; padding-bottom: 14px;
  border-bottom: 1px solid #f2f3f5; }
body .legal-body h2 { font-size: 15.5px; font-weight: 600; color: #1f2329; margin: 18px 0 8px; }
body .legal-body p { font-size: 14.5px; line-height: 1.9; color: #2f3542; margin: 0 0 6px; }
body .legal-foot { margin-top: 28px; text-align: right; font-size: 12px; color: #b2b7bf; }

/* 登录页协议：两行对齐、底部固定感 */
body .login-agree { margin-top: 18px; text-align: center; color: #9aa0a6; font-size: 12px; line-height: 1.9; }
body .login-agree-line { display: block; }
body .login-agree .legal-link { border: 0; background: transparent; padding: 0; font: inherit; color: #576b95; }
body .login-agree-and { margin: 0 2px; }

/* 法律文档页：阅读提示 + 章节层次 */
body .legal-notice { background: #f7f8fa; border-radius: 10px; padding: 12px 14px; font-size: 12.5px;
  line-height: 1.8; color: #6b7280; margin-bottom: 6px; }
body .legal-body h2 { position: relative; padding-left: 12px; }
body .legal-body h2::before { content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 3px;
  border-radius: 2px; background: #07c160; }
body .legal-page { padding-top: 20px; }
body .legal-title { font-size: 24px; }

/* 登录页协议勾选 + 法律页目录 */
body .login-agree { margin-top: 16px; color: #9aa0a6; font-size: 12px; line-height: 1.8; }
body .login-agree-check { display: flex; align-items: center; justify-content: center; gap: 6px; }
body .login-agree-check input { width: 15px; height: 15px; margin: 0; accent-color: #07c160; }
body .login-agree-links { text-align: center; margin-top: 2px; }
body .login-agree .legal-link { border: 0; background: transparent; padding: 0; font: inherit; color: #576b95; }
body .legal-toc { background: #fff; border: 1px solid #f0f1f3; border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; }
body .legal-toc-title { font-size: 13px; font-weight: 600; color: #1f2329; margin-bottom: 10px; }
body .legal-toc-links { display: flex; flex-wrap: wrap; gap: 8px; }
body .legal-toc-link { border: 0; background: #f5f6f8; color: #4b5563; font-size: 12.5px; padding: 6px 10px;
  border-radius: 8px; }
body .legal-body h2 { scroll-margin-top: 12px; }

/* ============================================================
   聊天设置独立页
   ============================================================ */
body .cs-page { background: #ededed; min-height: 100%; padding-bottom: 24px; }
body .cs-head { display: flex; align-items: center; gap: 12px; background: #fff; padding: 16px; }
body .cs-head-info { flex: 1; min-width: 0; }
body .cs-head-name { font-size: 17px; font-weight: 600; color: #111; display: flex; align-items: center; gap: 4px; }
body .cs-head-sub { font-size: 12px; color: #9aa0a6; margin-top: 2px; }
body .cs-group { background: #fff; margin-top: 10px; }
body .cs-row { display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 0 16px;
  border-bottom: 1px solid #f2f2f2; }
body .cs-group .cs-row:last-child { border-bottom: 0; }
body .cs-row-btn { width: 100%; border: 0; background: #fff; text-align: left; }
body .cs-row-label { flex: 1; font-size: 15.5px; color: #111; }
body .cs-row-btn.is-danger .cs-row-label { color: #e5484d; }
body .cs-switch { width: 46px; height: 27px; border-radius: 14px; border: 0; background: #e5e7eb;
  position: relative; flex: none; padding: 0; transition: background .18s; }
body .cs-switch i { position: absolute; top: 2px; left: 2px; width: 23px; height: 23px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .18s; }
body .cs-switch.is-on { background: #07c160; }
body .cs-switch.is-on i { transform: translateX(19px); }

/* 举报截图上传 */
body .report-image-box { margin: 8px 0 2px; }
body .report-image-list { display: flex; gap: 8px; flex-wrap: wrap; }
body .report-image-item { position: relative; width: 64px; height: 64px; border-radius: 8px; overflow: hidden; background: #f2f3f5; }
body .report-image-item img { width: 100%; height: 100%; object-fit: cover; }
body .report-image-del { position: absolute; right: 0; top: 0; width: 20px; height: 20px; border: 0; border-radius: 0 0 0 8px;
  background: rgba(0,0,0,.55); color: #fff; font-size: 12px; line-height: 1; padding: 0; }
body .report-add-image { width: 100%; margin-top: 8px; border: 1px dashed #d8dbe0; background: #fafbfc; color: #6b7280;
  height: 38px; border-radius: 8px; font-size: 13px; }

/* ============================================================
   v5.0 引用/撤回/菜单/独立设置页/举报/朋友圈/参考微信
   ============================================================ */
body .cx-toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%) translateY(8px);
  background: rgba(28,32,38,.86); color: #fff; font-size: 13px; padding: 9px 16px; border-radius: 8px;
  opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; z-index: 120; max-width: 80vw; text-align: center; }
body .cx-toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* 引用条（输入框上方） */
body .quote-bar { background: #fff; border-top: 1px solid #eef0f3; border-left: 3px solid #07c160;
  margin: 6px 10px; border-radius: 8px; padding: 8px 10px; display: flex; align-items: center; gap: 8px; }
body .quote-bar-main { flex: 1; min-width: 0; }
body .quote-bar-name { display: block; font-size: 12px; color: #576b95; margin-bottom: 2px; }
body .quote-bar-text { display: block; font-size: 12.5px; color: #7b838e; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body .quote-bar-close { border: 0; background: transparent; color: #b2b7bf; padding: 4px; }

/* 气泡里的引用块 */
body .quote-block { background: #f2f3f5; border-left: 3px solid #d4d7dc; border-radius: 4px;
  padding: 6px 8px; margin-bottom: 6px; font-size: 12.5px; line-height: 1.5; color: #7b838e; }
body .quote-block .quote-name { color: #576b95; }
body .quote-block .quote-text { display: block; margin-top: 2px; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; }

/* 长按消息菜单：浅色卡片 */
body .msg-menu { background: #fff; color: #1f2329; border-radius: 12px; box-shadow: 0 8px 28px rgba(17,24,39,.18);
  padding: 6px; display: flex; gap: 2px; }
body .msg-menu-item { display: flex; flex-direction: column; align-items: center; gap: 4px; border: 0;
  background: transparent; color: #333; padding: 8px 10px; border-radius: 8px; min-width: 52px; }
body .msg-menu-item:active { background: #f2f3f5; }
body .msg-menu-ic { color: #4b5563; display: flex; }
body .msg-menu-txt { font-size: 11.5px; color: #4b5563; }
body .msg-menu-arrow { display: none; }

/* 独立设置页（备注/朋友权限/举报） */
body .set-page { background: #ededed; min-height: 100%; padding: 12px 12px 30px; }
body .set-card { background: #fff; border-radius: 12px; margin-bottom: 10px; overflow: hidden; }
body .set-card-title { font-size: 12.5px; color: #8b929c; padding: 12px 16px 0; }
body .set-row { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid #f2f2f2; }
body .set-card .set-row:last-child { border-bottom: 0; }
body .set-key { flex: none; width: 96px; font-size: 15px; color: #111; }
body .set-val { flex: 1; text-align: right; color: #9aa0a6; font-size: 13.5px; }
body .set-input { flex: 1; border: 0; outline: none; font-size: 15px; text-align: right; color: #333; background: transparent; }
body .set-tip { font-size: 12.5px; color: #8b929c; line-height: 1.7; padding: 0 4px 14px; }
body .set-btn { width: 100%; height: 46px; border-radius: 8px; border: 0; background: #07c160; color: #fff; font-size: 16px; }
body .set-btn.danger { background: linear-gradient(120deg,#ff6b6b,#e5484d); }

/* 举报独立页 */
body .rp-reasons { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px 14px; }
body .rp-reason { border: 1px solid #e8eaee; background: #fff; color: #4b5563; font-size: 13.5px;
  padding: 7px 14px; border-radius: 16px; }
body .rp-reason.is-on { border-color: #07c160; background: #e9f9ef; color: #07a054; }
body .rp-textarea { width: calc(100% - 32px); margin: 10px 16px 0; min-height: 110px; border: 1px solid #eef0f3;
  background: #f8f9fb; border-radius: 8px; padding: 10px 12px; font-size: 14px; line-height: 1.7; resize: none; outline: none; }
body .rp-counter { text-align: right; font-size: 11.5px; color: #9aa0a6; padding: 6px 16px 12px; }
body .rp-images { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px 16px 0; }
body .rp-image { position: relative; width: 72px; height: 72px; border-radius: 8px; overflow: hidden; background: #f2f3f5; }
body .rp-image img { width: 100%; height: 100%; object-fit: cover; }
body .rp-image button { position: absolute; right: 0; top: 0; width: 20px; height: 20px; border: 0;
  background: rgba(0,0,0,.55); color: #fff; font-size: 12px; line-height: 1; padding: 0; border-radius: 0 0 0 8px; }
body .rp-add-image { margin: 10px 16px 16px; width: calc(100% - 32px); height: 40px; border: 1px dashed #d8dbe0;
  background: #fafbfc; color: #6b7280; border-radius: 8px; font-size: 13.5px; }
body .report-page .set-tip { padding: 0 4px 10px; }

/* 用户朋友圈独立页 */
body .um-page { background: #ededed; min-height: 100%; padding-bottom: 20px; }
body .um-head { position: relative; height: 160px; background: linear-gradient(140deg,#1f5fbf,#6b3fa0); background-size: cover; background-position: center; }
body .um-head-mask { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.12), rgba(0,0,0,.02)); }
body .um-head-main { position: absolute; left: 16px; bottom: 12px; display: flex; align-items: center; gap: 10px; }
body .um-head-name { color: #fff; font-size: 17px; font-weight: 600; text-shadow: 0 1px 4px rgba(0,0,0,.25); }
body .um-list { background: #fff; margin-top: 10px; }
body .um-item { padding: 14px 16px; border-bottom: 1px solid #f2f2f2; }
body .um-item:last-child { border-bottom: 0; }
body .um-item-head { display: flex; align-items: center; gap: 8px; }
body .um-item-name { font-size: 14px; color: #576b95; }
body .um-item-text { font-size: 15px; color: #111; line-height: 1.7; margin: 8px 0; }
body .um-item-foot { font-size: 11.5px; color: #b2b7bf; margin-top: 8px; }

/* 聊天背景自定义上传 */
body .theme-upload { display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 1px dashed #d8dbe0; background: #fafbfc; color: #6b7280; border-radius: 10px; }
body .theme-upload-ic { font-size: 26px; line-height: 1; margin-bottom: 6px; }

/* 资料保存按钮 */
body .profile-save-bar { padding: 18px 16px 30px; }

/* 底部导航：微信式居中标签 */
body .tabbar { display: flex; align-items: flex-end; }
body .tabbar-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; padding-top: 4px; }
body .tabbar-text { font-size: 10.5px; line-height: 1.2; text-align: center; }

/* 我页微信布局 */
body .wx-me { background: #ededed; }
body .wx-me-head { display: flex; align-items: center; gap: 14px; background: #fff; padding: 22px 16px 18px; margin-bottom: 10px; }
body .wx-me-avatar { border: 0; background: transparent; padding: 0; flex: none; }
body .wx-me-info { flex: 1; min-width: 0; }
body .wx-me-name { font-size: 21px; font-weight: 600; color: #111; display: flex; align-items: center; gap: 4px; }
body .wx-me-no { font-size: 13px; color: #9aa0a6; margin-top: 6px; }
body .wx-me-pills { display: flex; gap: 10px; margin-top: 12px; }
body .wx-me-pill { border: 1px solid #f0f1f3; background: #f7f8fa; color: #576b95; font-size: 11.5px;
  padding: 4px 12px; border-radius: 14px; }
body .wx-me-qr { border: 0; background: transparent; color: #4b5563; flex: none; padding: 0 2px; }

/* 首页标题：微信式居中「畅信(N)」 */
body .nav-home .nav-main { visibility: visible !important; flex: 1; text-align: center; }
body .nav-home .nav-title { display: inline-block; font-size: 17px; font-weight: 600; color: #111;
  text-align: center; letter-spacing: .5px; }
body.tab-chats #main-nav { display: flex !important; }
body .nav-home #main-search, body .nav-home #main-add { width: 44px; }

/* 标题真正居中（搜索/加号右侧布局不影响） */
body #main-nav { position: relative; justify-content: flex-end; }
body #main-nav .nav-main { position: absolute; left: 0; right: 0; top: 0; bottom: 0; display: flex;
  align-items: center; justify-content: center; margin: 0; pointer-events: none; }
body #main-nav #main-title { font-size: 17px; font-weight: 600; letter-spacing: .5px; }
body #main-nav .nav-btn { position: relative; z-index: 2; }

/* 设置页去掉小图标（保留文字） */
body .settings-page .cell-ic { display: none !important; }
body .settings-page .cell { padding-left: 16px; }
/* 免打扰小图标 */
body .mute-ic { display: inline-flex; align-items: center; margin-left: 4px; color: #9aa0a6; vertical-align: middle; }
body .conv-name .mute-ic { color: #b2b7bf; }
/* 用户操作页 */
body .ua-head { display: flex; align-items: center; gap: 12px; padding: 16px; }
body .ua-head-info { flex: 1; min-width: 0; }
body .ua-head-name { font-size: 16px; font-weight: 600; color: #111; }
body .ua-head-sub { font-size: 12px; color: #9aa0a6; margin-top: 2px; }
body .ua-row { border: 0; background: #fff; width: 100%; text-align: left; }
body .ua-row.is-danger .set-key { color: #e5484d; }
