/* 子比聊天室 2.0 · 蓝色主题 — SkyFortTech LLC */
.zc {
  --zc-primary: #2563eb;
  --zc-primary-2: #3b82f6;
  --zc-primary-dark: #1d4ed8;
  --zc-soft: #eff6ff;
  --zc-soft-2: #dbeafe;
  --zc-border: #e2e8f0;
  --zc-bg: #f8fafc;
  --zc-card: #ffffff;
  --zc-text: #0f172a;
  --zc-muted: #64748b;
  --zc-red: #ef4444;
  --zc-radius: 14px;
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 10px 0 20px;
  border: 1px solid var(--zc-border);
  border-radius: var(--zc-radius);
  background: var(--zc-card);
  color: var(--zc-text);
  box-shadow: 0 10px 30px rgba(37, 99, 235, .08);
  overflow: hidden;
  font-size: 14px;
  line-height: 1.6;
}
.dark-theme .zc {
  --zc-soft: rgba(59, 130, 246, .12);
  --zc-soft-2: rgba(59, 130, 246, .25);
  --zc-border: rgba(148, 163, 184, .18);
  --zc-bg: rgba(15, 23, 42, .35);
  --zc-card: #1e2533;
  --zc-text: #e2e8f0;
  --zc-muted: #94a3b8;
  box-shadow: none;
}
.zc [hidden] { display: none !important; }
.zc button { font-family: inherit; }

/* ---------- 图标（CSS mask，颜色随文字） ---------- */
.zc-ico, .zc-title-icon, .zc-upload-ico, .zc-rp-icon, .zib-chat-scroll-btn:before {
  display: inline-block; width: 16px; height: 16px; flex: none;
  background: currentColor;
  -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat;
}
.zc-ico-notice { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 10v4a1 1 0 0 0 1 1h3l5 4V5L7 9H4a1 1 0 0 0-1 1zm13.5 2A4.5 4.5 0 0 0 14 8v8a4.5 4.5 0 0 0 2.5-4zM14 3.2v2.1a7 7 0 0 1 0 13.4v2.1a9 9 0 0 0 0-17.6z'/%3E%3C/svg%3E"); }
.zc-ico-share { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18 16a3 3 0 0 0-2.4 1.2l-6.7-3.4a3 3 0 0 0 0-1.6l6.7-3.4A3 3 0 1 0 15 7l-6.7 3.4a3 3 0 1 0 0 3.2L15 17a3 3 0 1 0 3-1z'/%3E%3C/svg%3E"); }
.zc-ico-mic { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 14a3 3 0 0 0 3-3V5a3 3 0 0 0-6 0v6a3 3 0 0 0 3 3zm5-3a5 5 0 0 1-10 0H5a7 7 0 0 0 6 6.9V21h2v-3.1A7 7 0 0 0 19 11h-2z'/%3E%3C/svg%3E"); }
.zc-ico-file { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16.5 6.5v10a4.5 4.5 0 0 1-9 0V5a3 3 0 0 1 6 0v10.5a1.5 1.5 0 0 1-3 0V6.5H9v9a3 3 0 0 0 6 0V5a4.5 4.5 0 0 0-9 0v11.5a6 6 0 0 0 12 0v-10h-1.5z'/%3E%3C/svg%3E"); }
.zc-ico-redpack, .zc-rp-icon { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 2h12a2 2 0 0 1 2 2v3.2l-8 4.3-8-4.3V4a2 2 0 0 1 2-2zm-2 7.5 8 4.3 8-4.3V20a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V9.5zM12 15.5a2 2 0 1 0 0 4 2 2 0 0 0 0-4z'/%3E%3C/svg%3E"); }
.zc-title-icon { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H8l-4 4V6a2 2 0 0 1 0 0 2 2 0 0 1 0-2zm3 6v2h2v-2H7zm4 0v2h2v-2h-2zm4 0v2h2v-2h-2z'/%3E%3C/svg%3E"); }
.zc-upload-ico { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 15v4H5v-4H3v4a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-4h-2zM12 3 6.5 8.5l1.4 1.4L11 6.8V16h2V6.8l3.1 3.1 1.4-1.4L12 3z'/%3E%3C/svg%3E"); }

/* ---------- 头部 ---------- */
.zc-header {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding: 14px 16px;
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 45%, #3b82f6 100%);
  color: #fff;
}
.zc-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.zc-title-icon { width: 34px; height: 34px; padding: 8px; box-sizing: border-box; border-radius: 10px; background: rgba(255,255,255,.95); -webkit-mask: none; mask: none; position: relative; }
.zc-title-icon:after { content: ""; position: absolute; inset: 8px; background: #2563eb; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.zc-title h3 { margin: 0; font-size: 16px; font-weight: 700; color: #fff; line-height: 1.3; }
.zc-subtitle { font-size: 12px; opacity: .8; }
.zc-header-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.zc-chip {
  display: inline-flex; align-items: center; gap: 5px;
  height: 30px; padding: 0 11px; border: 0; border-radius: 15px; cursor: pointer;
  background: rgba(255,255,255,.18); color: #fff; font-size: 12.5px;
  transition: background .2s;
}
.zc-chip:hover { background: rgba(255,255,255,.3); }
.zc-chip b { font-weight: 700; }
.zc-mute-btn:not(.is-clickable) { cursor: default; }
.zc-dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgba(74,222,128,.25); }
.zc-icon-btn {
  position: relative; width: 30px; height: 30px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.18); color: #fff; display: inline-flex; align-items: center; justify-content: center;
}
.zc-icon-btn:hover { background: rgba(255,255,255,.3); }
.zc-icon-btn.has-new:after { content: ""; position: absolute; top: 4px; right: 4px; width: 7px; height: 7px; border-radius: 50%; background: #f87171; border: 1.5px solid #2563eb; }

/* ---------- 公告条 ---------- */
.zc-notice-bar {
  display: flex; align-items: center; gap: 8px; padding: 8px 14px; cursor: pointer;
  background: var(--zc-soft); color: var(--zc-primary-dark); border-bottom: 1px solid var(--zc-soft-2); font-size: 13px;
}
.dark-theme .zc-notice-bar { color: #93c5fd; }
.zc-notice-text { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.zc-notice-more { border: 0; background: none; color: inherit; font-size: 12px; cursor: pointer; opacity: .8; }
.zc-notice-bar.is-flash { animation: zcFlash 1.2s ease 2; }
@keyframes zcFlash { 50% { background: var(--zc-soft-2); } }

/* ---------- 提醒条 ---------- */
.zc-toast {
  position: absolute; left: 50%; top: 74px; transform: translateX(-50%); z-index: 5;
  display: flex; align-items: center; gap: 10px; padding: 7px 8px 7px 14px; border-radius: 20px;
  background: var(--zc-primary); color: #fff; font-size: 13px; box-shadow: 0 6px 18px rgba(37,99,235,.35); cursor: pointer; white-space: nowrap;
}
.zc-toast button { border: 0; border-radius: 14px; padding: 2px 10px; background: rgba(255,255,255,.22); color: #fff; font-size: 12px; cursor: pointer; }
.zib-chat-newbar { top: auto; bottom: 150px; }

/* ---------- 消息区 ---------- */
.zib-chat-messages {
  height: 480px; max-height: 65vh; overflow-y: auto; padding: 14px 14px 6px;
  background: var(--zc-bg); scroll-behavior: auto; overscroll-behavior: contain;
}
.zib-chat-messages.is-disabled { opacity: .55; pointer-events: none; }
.zib-chat-messages::-webkit-scrollbar { width: 6px; }
.zib-chat-messages::-webkit-scrollbar-thumb { background: rgba(100,116,139,.3); border-radius: 3px; }
.zib-chat-history { text-align: center; margin-bottom: 8px; }
.zib-chat-load-history { border: 1px solid var(--zc-soft-2); background: var(--zc-card); color: var(--zc-primary); border-radius: 14px; padding: 3px 14px; font-size: 12px; cursor: pointer; }
.zib-chat-history-status { display: block; font-size: 12px; color: var(--zc-muted); margin-top: 4px; }

.zib-chat-message { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 14px; }
.zib-chat-message.is-self { flex-direction: row-reverse; }
.zib-chat-avatar { position: relative; flex: none; width: 38px; height: 38px; border-radius: 50%; box-shadow: 0 0 0 2px var(--zc-card); }
/* 用户状态小点（子比用户中心增强）：聊天背景色描边，右下角稍微外移贴着圆边 */
.zib-chat-avatar .zuc-st-dot { right: -1px; bottom: -1px; width: 11px; height: 11px; min-width: 0; min-height: 0; border-width: 2px; border-color: var(--zc-bg, var(--zc-card)); }
.zib-chat-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
.zib-chat-bubble { max-width: min(72%, 560px); min-width: 0; display: flex; flex-direction: column; }
.is-self .zib-chat-bubble { align-items: flex-end; }
.zib-chat-meta { display: flex; gap: 8px; align-items: baseline; margin: 0 4px 3px; font-size: 12px; color: var(--zc-muted); }
.is-self .zib-chat-meta { flex-direction: row-reverse; }
.zib-chat-user { font-weight: 600; color: var(--zc-text); opacity: .85; }
.zib-chat-content {
  position: relative; padding: 9px 13px; border-radius: 4px 14px 14px 14px;
  background: var(--zc-card); border: 1px solid var(--zc-border); word-break: break-word; overflow-wrap: anywhere;
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
}
.is-self .zib-chat-content {
  border-radius: 14px 4px 14px 14px; border-color: transparent; color: #fff;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
}
.is-self .zib-chat-content a { color: #fff; text-decoration: underline; }
/* 子比全局有 .smilie-icon{width:30px !important}（只改宽不改高），这里宽高一起锁定，避免表情被压扁 */
.zc .zib-chat-content img.smilie-icon, .zc .zib-chat-quote img.smilie-icon {
  width: 24px !important; height: 24px !important; max-width: none; object-fit: contain; vertical-align: -6px; display: inline-block; margin: 0 1px;
}
/* 表情面板（子比原生下拉）：保持正方形 */
.zc .dropdown-smilie .smilie-icon img { width: 100% !important; height: auto !important; aspect-ratio: 1 / 1; object-fit: contain; }
.zib-chat-mention-tag { color: var(--zc-primary); font-weight: 600; }
.zib-chat-mention-tag.has-avatar, .zib-chat-mention-tag.is-all {
  display: inline-flex; align-items: center; gap: 3px; max-width: 100%; margin: 0 1px; padding: 0 7px 0 2px; border-radius: 12px;
  background: var(--zc-soft); color: var(--zc-primary) !important; text-decoration: none !important; line-height: 22px; vertical-align: -3px; white-space: nowrap;
}
.zib-chat-mention-tag.has-avatar:hover { background: var(--zc-soft-2); }
.zc-at-avatar { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; flex: none; display: inline-block; }
.zc-at-all { width: 18px; height: 18px; border-radius: 50%; background: var(--zc-primary); color: #fff; font-size: 10px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.is-self .zib-chat-mention-tag { color: #fff; }
.is-self .zib-chat-mention-tag.has-avatar, .is-self .zib-chat-mention-tag.is-all { background: rgba(255,255,255,.22); color: #fff !important; }
.is-self .zc-at-all { background: #fff; color: var(--zc-primary); }
.zib-chat-message.is-mention-highlight .zib-chat-content { box-shadow: 0 0 0 3px rgba(59,130,246,.45); transition: box-shadow .3s; }

/* 图片 / 文件 / 语音不要气泡底色 */
.zc-type-image .zib-chat-content, .zc-type-redpack .zib-chat-content, .zc-type-file .zib-chat-content { padding: 0; background: none !important; border: 0; box-shadow: none; }
.zc-msg-img { display: block; max-width: 240px; max-height: 260px; border-radius: 12px; object-fit: cover; border: 1px solid var(--zc-border); background: var(--zc-soft); }
.zc-inline-img { display: block; max-width: 220px; max-height: 220px; border-radius: 10px; margin: 4px 0; }

.zc-file {
  display: flex; align-items: center; gap: 10px; width: 250px; max-width: 100%; padding: 10px 12px; text-decoration: none !important;
  background: var(--zc-card); border: 1px solid var(--zc-border); border-radius: 12px; color: var(--zc-text) !important;
}
.zc-file:hover { border-color: var(--zc-primary-2); }
.zc-file-icon { flex: none; width: 40px; height: 46px; border-radius: 6px; background: linear-gradient(160deg,#3b82f6,#1d4ed8); color: #fff; font-size: 10px; font-weight: 700; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 6px; box-sizing: border-box; }
.zc-file-info { min-width: 0; display: flex; flex-direction: column; }
.zc-file-name { font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zc-file-size { font-size: 12px; color: var(--zc-muted); }

.zc-voice { display: flex; align-items: center; gap: 8px; cursor: pointer; min-width: 90px; max-width: 100%; user-select: none; }
.is-self .zc-voice { flex-direction: row-reverse; }
.zc-voice-play { flex: none; width: 26px; height: 26px; border: 0; border-radius: 50%; cursor: pointer; background: var(--zc-soft); color: var(--zc-primary); display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.is-self .zc-voice-play { background: rgba(255,255,255,.25); color: #fff; }
.zc-voice-icon { width: 0; height: 0; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent currentColor; margin-left: 2px; }
.zc-voice.is-playing .zc-voice-icon { width: 8px; height: 10px; border: 0; margin: 0; border-left: 3px solid currentColor; border-right: 3px solid currentColor; box-sizing: border-box; }
.zc-voice-wave { flex: 1; display: flex; align-items: center; gap: 3px; height: 18px; }
.zc-voice-wave i { width: 3px; border-radius: 2px; background: currentColor; opacity: .55; height: 6px; }
.zc-voice-wave i:nth-child(2) { height: 12px; } .zc-voice-wave i:nth-child(3) { height: 16px; } .zc-voice-wave i:nth-child(4) { height: 10px; }
.zc-voice.is-playing .zc-voice-wave i { animation: zcWave .9s ease-in-out infinite; opacity: .9; }
.zc-voice.is-playing .zc-voice-wave i:nth-child(2) { animation-delay: .1s; } .zc-voice.is-playing .zc-voice-wave i:nth-child(3) { animation-delay: .2s; }
.zc-voice.is-playing .zc-voice-wave i:nth-child(4) { animation-delay: .3s; } .zc-voice.is-playing .zc-voice-wave i:nth-child(5) { animation-delay: .4s; }
@keyframes zcWave { 50% { transform: scaleY(.4); } }
.zc-voice-dur { font-size: 12px; opacity: .85; }

/* ---------- 积分红包卡片 ---------- */
.zc-redpack {
  width: 232px; max-width: 100%; border-radius: 12px; overflow: hidden; cursor: pointer; color: #fff; outline: none;
  background: linear-gradient(135deg, #f97316, #ef4444); box-shadow: 0 6px 16px rgba(239,68,68,.25); transition: transform .15s;
}
.zc-redpack:hover, .zc-redpack:focus-visible { transform: translateY(-1px); }
.zc-redpack.is-claimed, .zc-redpack.is-empty, .zc-redpack.is-expired, .zc-redpack.is-gone { background: linear-gradient(135deg, #fdba74, #fca5a5); box-shadow: none; }
.zc-rp-top { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.zc-rp-icon { width: 34px; height: 34px; color: #fde68a; }
.zc-rp-txt { min-width: 0; }
.zc-rp-greet { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zc-rp-status { font-size: 12px; opacity: .9; }
.zc-rp-foot { padding: 4px 14px; font-size: 11px; background: rgba(255,255,255,.95); color: #b45309; }
.dark-theme .zc-rp-foot { background: rgba(255,255,255,.12); color: #fed7aa; }

/* ---------- 系统消息 / 分割线 / 撤回 ---------- */
.zib-chat-system { justify-content: center; margin: 4px 0 12px; }
.zib-chat-system-text { max-width: 86%; padding: 3px 12px; border-radius: 12px; background: rgba(100,116,139,.1); color: var(--zc-muted); font-size: 12px; text-align: center; }
.zib-chat-divider { display: flex; align-items: center; gap: 10px; margin: 6px 0 14px; color: var(--zc-primary); font-size: 12px; }
.zib-chat-divider:before, .zib-chat-divider:after { content: ""; flex: 1; height: 1px; background: var(--zc-soft-2); }
.is-retracted .zib-chat-content { background: transparent !important; border: 1px dashed var(--zc-border); color: var(--zc-muted) !important; font-size: 12.5px; }
.zib-chat-retracted-note { margin-top: 6px; font-size: 11px; color: var(--zc-primary); }
.zib-chat-retracted-content { margin-top: 2px; padding: 6px 8px; border-radius: 8px; background: var(--zc-soft); color: var(--zc-text); }

/* ---------- 引用 ---------- */
.zib-chat-quote { margin: 0 0 6px; padding: 5px 9px; border-left: 3px solid var(--zc-primary-2); border-radius: 6px; background: var(--zc-soft); color: var(--zc-text); font-size: 12.5px; cursor: pointer; }
.is-self .zib-chat-quote { background: rgba(255,255,255,.18); border-left-color: #fff; color: #fff; }
.zib-chat-quote-name { font-weight: 600; opacity: .8; }
.zib-chat-quote-content { max-height: 3.2em; overflow: hidden; opacity: .85; }

/* ---------- 滚动按钮 ---------- */
.zib-chat-scroll-tools { position: absolute; right: 14px; bottom: 150px; z-index: 4; display: flex; flex-direction: column; gap: 6px; }
.zib-chat-scroll-btn { width: 32px; height: 32px; border: 1px solid var(--zc-soft-2); border-radius: 50%; cursor: pointer; background: var(--zc-card); color: var(--zc-primary); display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(15,23,42,.08); opacity: .85; }
.zib-chat-scroll-btn:hover { opacity: 1; }
.zib-chat-scroll-btn:before { content: ""; width: 14px; height: 14px; --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 7.4 5.3 14.1l1.4 1.4 5.3-5.3 5.3 5.3 1.4-1.4z'/%3E%3C/svg%3E"); }
.zib-chat-scroll-btn.is-down:before { transform: rotate(180deg); }

/* ---------- 关闭 / 禁言提示 ---------- */
.zib-chat-closed { padding: 12px; text-align: center; color: var(--zc-muted); background: var(--zc-bg); border-top: 1px solid var(--zc-border); }
.zib-chat-muted { display: flex; align-items: center; gap: 10px; margin: 0 12px; padding: 9px 12px; border-radius: 10px; background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; font-size: 13px; }
.dark-theme .zib-chat-muted { background: rgba(239,68,68,.12); border-color: rgba(239,68,68,.3); color: #fca5a5; }
.zib-chat-muted-icon { width: 24px; height: 24px; border-radius: 50%; background: #ef4444; color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: none; }
.zib-chat-muted-title { font-weight: 600; }
.zib-chat-muted-desc { font-size: 12px; opacity: .9; }

/* ---------- 输入区 ---------- */
.zib-chat-form { padding: 10px 12px 12px; border-top: 1px solid var(--zc-border); background: var(--zc-card); }
.zib-chat-form.is-hidden { display: none; }
.zib-chat-form.is-disabled textarea, .zib-chat-form.is-disabled .zib-chat-tools { opacity: .5; pointer-events: none; }
.zib-chat-form textarea {
  width: 100%; box-sizing: border-box; min-height: 64px; max-height: 180px; resize: vertical; padding: 10px 12px;
  border: 1px solid var(--zc-border); border-radius: 12px; background: var(--zc-bg); color: var(--zc-text); font-size: 14px; line-height: 1.6; outline: none; transition: border .2s, box-shadow .2s;
}
.zib-chat-form textarea:focus { border-color: var(--zc-primary-2); box-shadow: 0 0 0 3px rgba(59,130,246,.15); background: var(--zc-card); }
.zib-chat-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.zib-chat-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; }
.zib-chat-tools > .dropup > .but, .zib-chat-tools > .but {
  display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 10px; border-radius: 15px;
  background: var(--zc-soft) !important; color: var(--zc-primary) !important; border: 0; font-size: 13px; cursor: pointer;
}
.zib-chat-tools .but, .zib-chat-tools .but:hover, .zib-chat-tools .but span { text-decoration: none !important; }
.dark-theme .zib-chat-tools > .dropup > .but, .dark-theme .zib-chat-tools > .but { color: #93c5fd !important; }
.zib-chat-tools > .dropup > .but:hover, .zib-chat-tools > .but:hover { background: var(--zc-soft-2) !important; }
.zib-chat-tools .zc-voice-btn.is-recording { background: #fee2e2 !important; color: #dc2626 !important; animation: zcPulse 1.2s infinite; }
.zib-chat-tools .zc-redpack-btn { color: #ea580c !important; background: #fff7ed !important; }
.dark-theme .zib-chat-tools .zc-redpack-btn { background: rgba(249,115,22,.12) !important; color: #fdba74 !important; }
@keyframes zcPulse { 50% { box-shadow: 0 0 0 5px rgba(220,38,38,.15); } }
.zib-chat-actions-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.zc-send-btn {
  height: 34px; padding: 0 22px; border: 0; border-radius: 17px; cursor: pointer; color: #fff; font-weight: 600; font-size: 14px;
  background: linear-gradient(135deg, #2563eb, #3b82f6); box-shadow: 0 4px 12px rgba(37,99,235,.3);
}
.zc-send-btn:hover { background: linear-gradient(135deg, #1d4ed8, #2563eb); }
.zib-chat-status { font-size: 12px; color: var(--zc-muted); }
.zib-chat-status.is-error { color: #dc2626; }

/* 文件上传下拉（子比 mini-upload 组件） */
.zc-file-drop .dropdown-menu { width: 260px; padding: 12px; }
.zc-upload-drop { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px 10px; border: 2px dashed var(--zc-soft-2); border-radius: 12px; color: var(--zc-primary); text-align: center; margin: 0; }
.zc-upload-drop:hover { border-color: var(--zc-primary-2); background: var(--zc-soft); }
.zc-upload-ico { width: 26px; height: 26px; }
.zc-upload-text { font-weight: 600; font-size: 13px; }
.zc-upload-limit { font-size: 11.5px; color: var(--zc-muted); font-weight: 400; }
.zc-file-drop .miniupload-ing { font-size: 12px; }

/* 录音条 */
.zc-recorder { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 64px; padding: 10px 12px; border-radius: 12px; background: #fef2f2; color: #b91c1c; box-sizing: border-box; }
.dark-theme .zc-recorder { background: rgba(239,68,68,.12); color: #fca5a5; }
.zc-rec-dot { width: 10px; height: 10px; border-radius: 50%; background: #ef4444; animation: zcPulse 1s infinite; }
.zc-rec-time { font-size: 16px; min-width: 36px; }
.zc-rec-tip { font-size: 12px; opacity: .7; margin-right: auto; }
.zc-rec-cancel, .zc-rec-send { border: 0; border-radius: 15px; height: 30px; padding: 0 14px; cursor: pointer; font-size: 13px; }
.zc-rec-cancel { background: rgba(100,116,139,.15); color: inherit; }
.zc-rec-send { background: var(--zc-primary); color: #fff; }

/* ---------- @ 选择 / 右键菜单 ---------- */
.zib-chat-mention-box { position: absolute; left: 12px; bottom: 140px; z-index: 20; width: 240px; max-height: 280px; display: flex; flex-direction: column; padding: 8px; border-radius: 12px; background: var(--zc-card); border: 1px solid var(--zc-border); box-shadow: 0 12px 30px rgba(15,23,42,.18); }
.zib-chat-mention-head { font-size: 12px; color: var(--zc-muted); padding: 2px 4px 6px; }
.zib-chat-mention-search { height: 30px; padding: 0 10px; border: 1px solid var(--zc-border); border-radius: 8px; background: var(--zc-bg); color: var(--zc-text); margin-bottom: 6px; outline: none; }
.zib-chat-mention-list { overflow-y: auto; }
.zib-chat-mention-item { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 5px 8px; border: 0; border-radius: 8px; background: none; color: var(--zc-text); cursor: pointer; font-size: 13px; }
.zc-at-pick-avatar { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex: none; background: var(--zc-soft-2); color: var(--zc-primary); font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.zc-at-pick-avatar.is-all { background: var(--zc-primary); color: #fff; }
.zc-at-pick-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zc-at-pick-on { flex: none; font-size: 11px; color: #16a34a; }
.zib-chat-mention-item:hover { background: var(--zc-soft); color: var(--zc-primary); }
.zib-chat-mention-empty { padding: 10px; text-align: center; color: var(--zc-muted); font-size: 12px; }
.zib-chat-context-menu { position: fixed; z-index: 99999; min-width: 130px; padding: 5px; border-radius: 10px; background: var(--zc-card); border: 1px solid var(--zc-border); box-shadow: 0 12px 30px rgba(15,23,42,.2); }
.zib-chat-context-menu button, .zib-chat-context-menu a { display: block; width: 100%; box-sizing: border-box; padding: 7px 12px; border: 0; border-radius: 7px; background: none; color: var(--zc-text); text-align: left; font-size: 13px; cursor: pointer; text-decoration: none; }
.zib-chat-context-menu button:hover, .zib-chat-context-menu a:hover { background: var(--zc-soft); color: var(--zc-primary); }
.zib-chat-context-menu .is-disabled { opacity: .4; pointer-events: none; }

/* ---------- 弹窗 ---------- */
.zc-modal { position: fixed; inset: 0; z-index: 100050; display: flex; align-items: center; justify-content: center; padding: 16px; }
.zc-modal-backdrop { position: absolute; inset: 0; background: rgba(15,23,42,.5); backdrop-filter: blur(2px); }
.zc-modal-panel { position: relative; width: 100%; max-width: 440px; max-height: 84vh; display: flex; flex-direction: column; border-radius: 16px; background: var(--zc-card); color: var(--zc-text); box-shadow: 0 24px 60px rgba(15,23,42,.3); overflow: hidden; animation: zcIn .2s ease; }
@keyframes zcIn { from { transform: translateY(10px) scale(.98); opacity: 0; } }
.zc-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--zc-border); }
.zc-modal-title { font-size: 15px; }
.zc-modal-close { border: 0; background: none; font-size: 22px; line-height: 1; color: var(--zc-muted); cursor: pointer; }
.zc-modal-body { padding: 14px 16px 18px; overflow-y: auto; }
.zc-modal.is-redpack .zc-modal-panel, .zc-modal.is-redpack-send .zc-modal-panel { max-width: 380px; }
.zc-loading, .zc-empty { padding: 24px 10px; text-align: center; color: var(--zc-muted); font-size: 13px; }
.zc-muted { color: var(--zc-muted); font-size: 12.5px; }

.zc-form-row { margin-bottom: 12px; }
.zc-label { display: block; font-size: 12.5px; color: var(--zc-muted); margin-bottom: 5px; }
.zc-input { width: 100%; box-sizing: border-box; padding: 8px 11px; border: 1px solid var(--zc-border); border-radius: 10px; background: var(--zc-bg); color: var(--zc-text); font-size: 14px; outline: none; }
.zc-input:focus { border-color: var(--zc-primary-2); box-shadow: 0 0 0 3px rgba(59,130,246,.15); }
.zc-modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.zc-btn { height: 34px; padding: 0 18px; border: 1px solid var(--zc-border); border-radius: 17px; background: var(--zc-card); color: var(--zc-text); cursor: pointer; font-size: 13.5px; }
.zc-btn-primary { border: 0; color: #fff; background: linear-gradient(135deg, #2563eb, #3b82f6); }
.zc-btn-red { border: 0; color: #fff; background: linear-gradient(135deg, #f97316, #ef4444); width: 100%; height: 40px; font-size: 15px; }
.zc-btn:disabled { opacity: .6; cursor: wait; }

/* 成员列表 */
.zc-member-group + .zc-member-group { margin-top: 14px; }
.zc-group-title { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--zc-primary); margin-bottom: 6px; }
.zc-member-list { list-style: none; margin: 0; padding: 0; }
.zc-member { display: flex; align-items: center; gap: 10px; padding: 7px 4px; border-radius: 10px; }
.zc-member:hover { background: var(--zc-soft); }
.zc-member-avatar { position: relative; flex: none; width: 36px; height: 36px; }
.zc-member-avatar img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; display: block; }
.zc-member.is-online .zc-member-avatar i { position: absolute; right: 0; bottom: 0; width: 10px; height: 10px; border-radius: 50%; background: #22c55e; border: 2px solid var(--zc-card); }
.zc-member-info { flex: 1; min-width: 0; }
.zc-member-name { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zc-member-ago { font-size: 12px; color: var(--zc-muted); }
.zc-member.is-online .zc-member-ago { color: #16a34a; }
.zc-member-acts { display: flex; gap: 4px; flex: none; }
.zc-mini-btn { height: 26px; padding: 0 10px; border: 0; border-radius: 13px; background: var(--zc-soft); color: var(--zc-primary); font-size: 12px; cursor: pointer; }
.zc-mini-btn:hover { background: var(--zc-soft-2); }
.zc-badge { display: inline-block; margin-left: 5px; padding: 0 6px; border-radius: 8px; font-size: 10.5px; font-weight: 500; line-height: 16px; background: var(--zc-soft); color: var(--zc-primary); vertical-align: 1px; }
.zc-badge.is-admin { background: #2563eb; color: #fff; }
.zc-badge.is-muted { background: #fee2e2; color: #dc2626; }

/* 公告 / 分享 */
.zc-notice-full { padding: 12px 14px; border-radius: 12px; background: var(--zc-soft); line-height: 1.8; word-break: break-word; }
.zc-notice-meta { margin: 6px 2px 14px; font-size: 12px; color: var(--zc-muted); text-align: right; }
.zc-share-row { display: flex; gap: 8px; margin-top: 8px; }
.zc-share-row .zc-input { flex: 1; min-width: 0; }
.zc-share-row .zc-btn { flex: none; }

/* 红包弹窗 */
.zc-rp-tabs { display: flex; gap: 6px; padding: 4px; margin-bottom: 14px; border-radius: 12px; background: var(--zc-bg); }
.zc-rp-tabs button { flex: 1; height: 32px; border: 0; border-radius: 9px; background: none; color: var(--zc-muted); cursor: pointer; font-size: 13px; }
.zc-rp-tabs button.is-active { background: var(--zc-card); color: #ea580c; font-weight: 600; box-shadow: 0 1px 4px rgba(15,23,42,.1); }
.zc-rp-sum { text-align: center; margin: 14px 0 4px; font-size: 14px; }
.zc-rp-sum b { font-size: 26px; color: #ea580c; }
.zc-rp-open-wrap { display: flex; justify-content: center; padding: 6px 0; }
.zc-rp-open-card { position: relative; width: 260px; padding: 26px 18px 30px; border-radius: 16px; text-align: center; color: #fde68a; background: linear-gradient(180deg, #ef4444, #dc2626); box-shadow: 0 16px 36px rgba(220,38,38,.35); }
.zc-rp-open-card img { width: 52px; height: 52px; border-radius: 12px; border: 2px solid #fde68a; }
.zc-rp-open-from { margin-top: 8px; font-size: 14px; color: #fff; }
.zc-rp-open-greet { margin: 10px 0 22px; font-size: 18px; font-weight: 700; color: #fef3c7; }
.zc-rp-open-btn { width: 76px; height: 76px; border: 0; border-radius: 50%; cursor: pointer; font-size: 28px; font-weight: 700; color: #7c2d12; background: radial-gradient(circle at 35% 30%, #fef3c7, #fbbf24 60%, #f59e0b); box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.zc-rp-open-btn.is-spin { animation: zcSpin .8s linear infinite; }
@keyframes zcSpin { to { transform: rotateY(360deg); } }
.zc-rp-detail-head { text-align: center; padding: 6px 0 14px; border-bottom: 1px solid var(--zc-border); }
.zc-rp-detail-head img { width: 48px; height: 48px; border-radius: 12px; margin-bottom: 6px; }
.zc-rp-detail-greet { margin-top: 4px; color: var(--zc-muted); font-size: 13px; }
.zc-rp-got { margin-top: 10px; color: #ea580c; } .zc-rp-got b { font-size: 34px; }
.zc-rp-state { margin-top: 10px; color: var(--zc-muted); }
.zc-rp-summary { padding: 10px 2px 6px; font-size: 12.5px; color: var(--zc-muted); }
.zc-rp-list { list-style: none; margin: 0; padding: 0; }
.zc-rp-list li { display: flex; align-items: center; gap: 10px; padding: 7px 2px; border-bottom: 1px solid var(--zc-border); }
.zc-rp-list img { width: 32px; height: 32px; border-radius: 50%; }
.zc-rp-li-info { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 13px; }
.zc-rp-li-info span { font-size: 11.5px; color: var(--zc-muted); }
.zc-rp-li-pts { text-align: right; font-size: 13px; font-weight: 600; }
.zc-rp-li-pts em { display: block; font-style: normal; font-size: 11px; color: #ea580c; font-weight: 500; }

/* ---------- 小黑屋 ---------- */
.zc-banned { margin: 14px; padding: 18px; border-radius: 12px; text-align: center; background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.dark-theme .zc-banned { background: rgba(239,68,68,.12); border-color: rgba(239,68,68,.3); color: #fca5a5; }
.zc-login-notice.is-banned { background: linear-gradient(135deg, #fef2f2, #fee2e2); border-color: #fecaca; color: #991b1b; }
.zc-login-notice.is-banned .zc-login-icon { background: #ef4444; }

/* ---------- 未登录 ---------- */
.zc-login-notice { display: flex; gap: 14px; align-items: center; max-width: 520px; margin: 18px auto; padding: 18px 20px; border-radius: 14px; background: linear-gradient(135deg, #eff6ff, #dbeafe); border: 1px solid #bfdbfe; color: #1e3a8a; }
.dark-theme .zc-login-notice { background: rgba(59,130,246,.1); border-color: rgba(59,130,246,.3); color: #bfdbfe; }
.zc-login-icon { flex: none; width: 44px; height: 44px; border-radius: 12px; background: #2563eb; position: relative; }
.zc-login-icon:after { content: ""; position: absolute; inset: 11px; background: #fff; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H8l-4 4V6a2 2 0 0 1 2-2z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H8l-4 4V6a2 2 0 0 1 2-2z'/%3E%3C/svg%3E") center/contain no-repeat; }
.zc-login-title { font-size: 16px; font-weight: 700; margin-bottom: 2px; }
.zc-login-desc { font-size: 13px; opacity: .8; margin-bottom: 10px; }
.zc-login-btn { display: inline-block; padding: 6px 18px; border-radius: 16px; background: #2563eb; color: #fff !important; text-decoration: none; font-size: 13px; }

/* ---------- 手机：整体压缩，保证一屏放得下（含网站顶部导航） ---------- */
@media (max-width: 640px) {
  .zc { border-radius: 10px; margin: 4px 0 10px; font-size: 13.5px; }
  .zc-header { flex-wrap: nowrap; padding: 8px 10px; gap: 6px; }
  .zc-title { gap: 0; flex: 1; }
  .zc-title-icon, .zc-subtitle { display: none; }
  .zc-title > div { min-width: 0; }
  .zc-title h3 { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .zc-header-actions { flex-wrap: nowrap; gap: 4px; flex: none; }
  .zc-chip { height: 26px; padding: 0 8px; font-size: 11.5px; gap: 4px; }
  .zc-icon-btn { width: 26px; height: 26px; }
  .zc-icon-btn .zc-ico { width: 14px; height: 14px; }
  .zc-notice-bar { padding: 5px 10px; font-size: 12px; }
  .zc-toast { top: 48px; font-size: 12px; }

  /* 消息区高度 = 可视高度 - 网站导航 - 头部 - 输入框，限制在 220~460px */
  .zib-chat-messages { height: calc(100vh - 290px); height: calc(100svh - 290px); min-height: 220px; max-height: 460px; padding: 8px 8px 2px; }
  .zib-chat-message { gap: 7px; margin-bottom: 10px; }
  .zib-chat-avatar { width: 32px; height: 32px; }
  .zib-chat-bubble { max-width: 82%; }
  .zib-chat-meta { font-size: 11px; margin-bottom: 2px; }
  .zib-chat-content { padding: 7px 10px; }
  .zc-msg-img { max-width: 170px; max-height: 200px; }
  .zc-file, .zc-redpack { width: 210px; }

  .zib-chat-form { padding: 6px 8px 8px; }
  .zib-chat-form textarea { min-height: 38px; height: 38px; max-height: 96px; padding: 8px 10px; resize: none; font-size: 14px; border-radius: 10px; }
  .zc-recorder { min-height: 38px; padding: 6px 10px; gap: 8px; }
  .zc-rec-tip { display: none; }
  .zib-chat-actions { flex-wrap: nowrap; margin-top: 6px; gap: 6px; }
  .zib-chat-tools { flex-wrap: nowrap; overflow-x: auto; overflow-y: visible; scrollbar-width: none; min-width: 0; flex: 1; }
  .zib-chat-tools::-webkit-scrollbar { display: none; }
  .zib-chat-tools .hide-sm { display: none !important; }
  .zib-chat-tools > .dropup > .but, .zib-chat-tools > .but { height: 30px; min-width: 34px; padding: 0 9px; justify-content: center; margin-right: 4px !important; }
  .zib-chat-tools .dropdown-menu { position: fixed !important; left: 8px !important; right: 8px !important; bottom: 110px !important; top: auto !important; width: auto !important; max-width: none; }
  .zib-chat-actions-right { gap: 6px; flex: none; }
  .zib-chat-status { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .zc-send-btn { height: 30px; padding: 0 16px; font-size: 13.5px; }

  .zib-chat-scroll-btn { width: 28px; height: 28px; }
  .zib-chat-scroll-tools { right: 8px; }
  .zib-chat-mention-box { left: 8px; right: 8px; width: auto; max-height: 240px; }
  .zc-modal { align-items: flex-end; padding: 0; }
  .zc-modal-panel { max-width: none; border-radius: 16px 16px 0 0; max-height: 85vh; }
}
@media (max-width: 360px) {
  .zc-mute-btn { display: none; }
}

/* 小黑屋：只能看，底部输入区换成提示条 */
.zc-banned-bar { display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px 14px; border-top: 1px solid #fecaca; background: linear-gradient(135deg, #fef2f2, #fff1f2); color: #991b1b; font-size: 13px; line-height: 1.5; }
.zc-banned-bar[hidden] { display: none !important; }
.zc-banned-ico { flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; background: #ef4444; color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.zc-banned-text { display: flex; flex-direction: column; min-width: 0; }
.zc-banned-text b { font-size: 14px; }
.zc-banned-text span { color: #b91c1c; opacity: .85; }
.dark-theme .zc-banned-bar { background: rgba(239,68,68,.1); border-top-color: rgba(239,68,68,.3); color: #fca5a5; }
.dark-theme .zc-banned-text span { color: #fca5a5; }
.zib-chat-form[hidden] { display: none !important; }
@media (max-width: 640px) { .zc-banned-bar { padding: 10px 12px; font-size: 12px; } .zc-banned-text b { font-size: 13px; } }

/* 举报 */
.zib-chat-context-report { color: #dc2626 !important; }
/* 超过保留期限的文件 */
.zc-expired { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px; border: 1px dashed var(--zc-border); color: var(--zc-muted); font-size: 13px; }
.zc-expired em { font-style: normal; font-size: 12px; opacity: .85; }
.zc-expired-ico { font-size: 14px; }

/* 消息「⋯」更多操作（撤回 / 引用 / 举报），电脑悬停显示，手机常显 */
.zc-more { flex: none; width: 22px; height: 18px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--zc-muted); font-size: 15px; line-height: 14px; letter-spacing: 1px; cursor: pointer; opacity: 0; transition: opacity .15s, background .15s; }
.zib-chat-message:hover .zc-more, .zc-more:focus { opacity: .85; }
.zc-more:hover { background: var(--zc-soft); color: var(--zc-primary); opacity: 1; }
@media (hover: none), (max-width: 640px) { .zc-more { opacity: .6; width: 26px; height: 20px; } }
/* 长按文件 / 图片 / 语音时不弹系统的链接、存图菜单，交给聊天室菜单 */
.zib-chat-messages .zc-file, .zib-chat-messages .zc-img-link, .zib-chat-messages .zc-img-link img, .zib-chat-messages .zc-voice, .zib-chat-messages .zc-redpack { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }

/* 已读：最新消息下方的小头像条 */
.zc-readbar { display: flex; justify-content: flex-start; padding: 0 0 8px 48px; margin-top: -8px; animation: zcReadIn .25s ease; }
.zc-readbar.is-self { justify-content: flex-end; padding: 0 48px 8px 0; }
@keyframes zcReadIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.zc-read-btn { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 9px 0 4px; border: 1px solid var(--zc-border); border-radius: 14px; background: var(--zc-card); color: var(--zc-muted); font-size: 12px; cursor: pointer; box-shadow: 0 1px 3px rgba(15,23,42,.06); transition: border-color .15s, box-shadow .15s, color .15s; }
.zc-read-btn:hover { border-color: var(--zc-primary-2); color: var(--zc-primary); box-shadow: 0 3px 10px rgba(37,99,235,.15); }
.zc-read-avatars { display: inline-flex; align-items: center; padding-left: 6px; }
.zc-read-av { width: 20px; height: 20px; margin-left: -6px; border-radius: 50%; border: 2px solid var(--zc-card); object-fit: cover; background: #dbeafe; box-sizing: content-box; flex: none; transition: transform .15s; }
.zc-read-av.is-text, .zc-read-av.is-more { display: inline-flex; align-items: center; justify-content: center; font-size: 9.5px; font-weight: 600; color: #1d4ed8; }
.zc-read-av.is-more { width: auto; min-width: 20px; padding: 0 4px; border-radius: 10px; background: #eff6ff; }
.zc-read-btn:hover .zc-read-av { transform: translateY(-1px); }
.zc-read-text { white-space: nowrap; }
.zc-read-arrow { width: 5px; height: 5px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); margin-left: -1px; opacity: .7; }
.dark-theme .zc-read-av { background: #1e3a8a; }
.dark-theme .zc-read-av.is-more, .dark-theme .zc-read-av.is-text { background: rgba(59,130,246,.2); color: #93c5fd; }

/* 已读名单 */
.zc-read-list { list-style: none; margin: 0; padding: 0; }
.zc-read-list li { display: flex; align-items: center; gap: 10px; padding: 9px 2px; border-bottom: 1px solid var(--zc-border); }
.zc-read-list li:last-child { border-bottom: 0; }
.zc-read-li-av img, .zc-read-li-av span { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; display: flex; align-items: center; justify-content: center; background: #dbeafe; color: #1d4ed8; font-weight: 600; }
.zc-read-li-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.zc-read-li-info a { color: var(--zc-text); font-size: 14px; font-weight: 500; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zc-read-li-info span { font-size: 12px; color: var(--zc-muted); }
.zc-read-li-av { flex: none; text-decoration: none; }
.zc-read-li-time { flex: none; font-size: 12px; color: var(--zc-muted); }
@media (max-width: 640px) { .zc-readbar { padding-left: 39px; margin-top: -5px; } .zc-readbar.is-self { padding-left: 0; padding-right: 39px; } }
.dark-theme .zib-chat-avatar .zuc-st-dot { border-color: var(--zc-card); }

/* @ 列表：已被对方拉黑，灰显不能选 */
.zib-chat-mention-item.is-blocked { cursor: not-allowed; }
.zib-chat-mention-item.is-blocked .zc-at-pick-avatar,
.zib-chat-mention-item.is-blocked .zc-at-pick-name { opacity: .45; filter: grayscale(1); }
.zc-at-pick-blocked { flex: none; margin-left: auto; padding: 0 6px; border-radius: 10px; font-size: 11px; line-height: 16px; white-space: nowrap; color: #dc2626; background: rgba(220, 38, 38, .08); border: 1px solid rgba(220, 38, 38, .25); }
.dark-theme .zc-at-pick-blocked { color: #fca5a5; background: rgba(248, 113, 113, .12); border-color: rgba(248, 113, 113, .35); }

/* AI 用户标记 */
.zc-at-pick-ai, .zc-badge.is-ai { flex: none; margin-left: 6px; padding: 0 6px; border-radius: 10px; font-size: 11px; line-height: 16px; color: #7c3aed; background: rgba(124, 58, 237, .1); border: 1px solid rgba(124, 58, 237, .25); }
.dark-theme .zc-at-pick-ai, .dark-theme .zc-badge.is-ai { color: #c4b5fd; background: rgba(167, 139, 250, .15); border-color: rgba(167, 139, 250, .35); }

/* 成员列表：已被对方拉黑 */
.zc-mini-btn.is-blocked { color: #dc2626; border-color: rgba(220, 38, 38, .3); background: rgba(220, 38, 38, .06); cursor: not-allowed; }
.dark-theme .zc-mini-btn.is-blocked { color: #fca5a5; border-color: rgba(248, 113, 113, .35); background: rgba(248, 113, 113, .1); }

/* 对当前访客隐藏的发言（青少年防控名单） */
.zc-hidden-text { display: inline-block; font-size: 13px; color: #868e96; font-style: normal; }
.zib-chat-message.is-hidden-for-me .zib-chat-bubble { opacity: .85; }
/* 绿色提醒框（@ 了青少年）放在输入区上方 */
.zib-chat-container .zbt-tipbox, .zib-chat .zbt-tipbox { margin: 6px 10px; }
