/* 私域即时聊天系统 · 样式表（微信风浅色主题，移动优先） */
:root {
  --bg: #ededed; /* 聊天区背景（微信那种灰） */
  --bg-soft: #f7f7f7; /* 顶栏 / 底栏 */
  --bg-elev: #f2f2f2;
  --line: #e3e3e3;
  --text: #191919;
  --text-dim: #9a9a9a;
  --brand: #07c160; /* 微信绿 */
  --brand-2: #06ad56;
  --me: #95ec69; /* 自己发的气泡 */
  --them: #ffffff; /* 对方发的气泡 */
  --warn: #fa5151;
  --ok: #07c160;
  --radius: 8px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
/* 带 display 的元素会盖过 [hidden] 的默认样式，这里统一兜底，避免隐藏层挡住点击 */
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  overscroll-behavior-y: none;
}
a { color: var(--brand); text-decoration: none; }
button { font: inherit; color: inherit; }
input, textarea { font: inherit; color: inherit; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }
.hint { color: var(--text-dim); font-size: 12.5px; margin-top: 6px; line-height: 1.6; }
.empty { color: var(--text-dim); padding: 22px 16px; text-align: center; font-size: 13.5px; }

/* ---------------- 访客端布局 ---------------- */
.visitor-body { display: flex; flex-direction: column; height: 100dvh; }
.topbar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; padding-top: calc(10px + env(safe-area-inset-top, 0px));
  background: var(--bg-soft); border-bottom: 1px solid var(--line); flex: 0 0 auto;
}
.topbar-main { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.avatar {
  width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(135deg, #2f8fe0, #6a5cff);
  display: grid; place-items: center; font-weight: 700; flex: 0 0 auto; overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.topbar-text { min-width: 0; }
.topbar-text .title { font-weight: 600; font-size: 15.5px; }
.topbar-text .sub { color: var(--text-dim); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn {
  background: transparent; border: 0; font-size: 20px; line-height: 1; padding: 6px 10px; border-radius: 10px;
}
.icon-btn:active { background: var(--bg-elev); }

/* 顶栏那几个文字小按钮（相册 / 下载APP / 发现 / 设置）：挤一点也要塞得下 */
.topbar { gap: 6px; }
.topbar .icon-btn {
  font-size: 12.5px; padding: 6px 8px; border-radius: 999px;
  background: var(--bg-elev); color: var(--text); white-space: nowrap; flex: 0 0 auto;
}
.topbar .icon-btn.album-btn { color: var(--text); }
.topbar .icon-btn.dl-btn {
  background: linear-gradient(135deg, #2fd07a, #16a34a);
  color: #04160c; font-weight: 700;
}
@media (max-width: 370px) {
  .topbar .icon-btn { font-size: 11.5px; padding: 6px 6px; }
}

.env-tip {
  background: #3a2c12; color: #ffd479; font-size: 12.5px; line-height: 1.6;
  padding: 10px 14px; border-bottom: 1px solid #4d3a15;
}
.env-tip > div + div { margin-top: 4px; }

.chat-scroll { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 12px 0; }
.chat-inner { display: flex; flex-direction: column; gap: 10px; padding: 4px 12px 12px; }
.sys-note {
  align-self: center; background: var(--bg-elev); color: var(--text-dim); font-size: 12px;
  padding: 5px 12px; border-radius: 999px; margin: 6px auto;
}
.msg { display: flex; gap: 8px; align-items: flex-start; max-width: 88%; }
.msg.me { align-self: flex-end; flex-direction: row-reverse; }
.msg.them { align-self: flex-start; }
/* 微信那种方头像 */
.msg-av {
  width: 36px; height: 36px; border-radius: 6px; flex: 0 0 auto; overflow: hidden;
  background: #d8d8d8; display: flex; align-items: center; justify-content: center;
}
.msg-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.msg-av .av-txt { font-size: 16px; color: #fff; line-height: 1; }
.msg-col { display: flex; flex-direction: column; min-width: 0; max-width: 100%; }
.msg.me .msg-col { align-items: flex-end; }
.bubble {
  padding: 8px 12px; border-radius: var(--radius); background: var(--them);
  word-break: break-word; white-space: pre-wrap; position: relative;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
  max-width: 100%;
}
.msg.them .bubble::before {
  content: ''; position: absolute; left: -5px; top: 11px;
  border: 5px solid transparent; border-right-color: var(--them); border-left: 0;
}
.msg.me .bubble { background: var(--me); color: #191919; }
.msg.me .bubble::after {
  content: ''; position: absolute; right: -5px; top: 11px;
  border: 5px solid transparent; border-left-color: var(--me); border-right: 0;
}
.bubble .txt a { text-decoration: underline; color: #576b95; }
.bubble.loc { background: transparent; padding: 0; box-shadow: none; }
.bubble.loc::before, .bubble.loc::after { display: none; }
/* 欢迎卡里的两个大按钮：立即咨询 / 查看相册 */
.wc-cta-row { display: flex; gap: 8px; margin: 10px 0 8px; }
.wc-cta-row .wc-cta { flex: 1; margin: 0; }
.wc-cta.main {
  font-weight: 700;
  background: linear-gradient(135deg, #07c160, #06ad56);
  color: #fff;
}
.wc-cta.main.ghost {
  background: #fff;
  border: 1px solid #07c160;
  color: #07c160;
}
/* 宫格资料卡自己带白底，气泡层只当容器 */
.bubble.card-bubble,
.msg.me .bubble.card-bubble { background: transparent; padding: 0; color: var(--text); box-shadow: none; }
.bubble.card-bubble::before, .bubble.card-bubble::after { display: none; }
.bubble.card-bubble .wcard-wrap { display: block; }
.loc-card {
  display: block; overflow: hidden; background: var(--them); color: var(--text);
  border-radius: var(--radius); border: 1px solid var(--line); text-decoration: none;
}
.loc-map {
  position: relative; display: block; width: min(72vw, 256px); height: 192px; overflow: hidden;
  background: #e8e8e8;
}
.loc-tile { position: absolute; width: 256px; height: 256px; max-width: none; pointer-events: none; }
.loc-card { width: min(72vw, 256px); }
.loc-pin {
  position: absolute; left: 128px; top: 96px; width: 14px; height: 14px; margin: -14px 0 0 -7px;
  background: var(--warn); border: 2px solid #fff; border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg); box-shadow: 0 2px 6px rgba(0,0,0,.35);
}
.loc-open {
  position: absolute; right: 6px; bottom: 6px; padding: 3px 8px; border-radius: 999px;
  background: rgba(0,0,0,.55); color: #fff; font-size: 11px;
}
.loc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 9px 12px; }
.loc-ico { font-size: 18px; line-height: 1; }
.loc-t { font-weight: 600; font-size: 14px; }
.loc-s { color: var(--text-dim); font-size: 12px; }
.loc-c { margin-left: auto; font-variant-numeric: tabular-nums; }
.loc-alt { margin-top: 4px; font-size: 12px; }
.img-msg { display: block; max-width: 240px; max-height: 300px; border-radius: 12px; }
.vid-msg { display: block; width: 220px; height: 165px; max-width: 100%; object-fit: contain; border-radius: 12px; background: #000; }
.file-card {
  display: flex; gap: 10px; align-items: center; background: var(--bg-elev); border: 1px solid var(--line);
  padding: 10px 12px; border-radius: 12px; color: var(--text); min-width: 190px;
}
.msg.me .file-card { background: #d6f5c1; border-color: #c3ecaa; }
.file-card.gone { opacity: 0.6; }
/* 链接卡片：像正常聊天里发出去的一条链接，点一下直接跳转 */
.link-card {
  display: flex; gap: 10px; align-items: center; background: var(--bg-elev); border: 1px solid var(--line);
  padding: 10px 12px; border-radius: 12px; color: var(--text); min-width: 200px; max-width: 74vw;
  text-decoration: none;
}
.msg.me .link-card { background: #d6f5c1; border-color: #c3ecaa; color: #191919; }
.lc-ico { font-size: 20px; flex: 0 0 auto; }
.lc-main { min-width: 0; flex: 1 1 auto; }
.lc-t { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-u { font-size: 11.5px; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg.me .lc-u { color: #6b8a58; }
.lc-go { font-size: 12px; color: #576b95; flex: 0 0 auto; }
.fc-ico { font-size: 22px; }
.fc-n { font-size: 13.5px; font-weight: 600; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-s { font-size: 11.5px; color: var(--text-dim); }
.msg.me .fc-s { color: #6b8a58; }
.fc-expire { font-size: 11.5px; color: #c98b00; margin-top: 4px; }
.meta { font-size: 11px; color: var(--text-dim); margin: 3px 4px 0; display: flex; gap: 6px; }
.meta .read { color: var(--ok); }
.upload-card { min-width: 180px; }
.up-n { font-size: 13px; margin-bottom: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-bar { height: 5px; border-radius: 999px; background: rgba(0, 0, 0, 0.12); overflow: hidden; }
.up-bar i { display: block; height: 100%; background: var(--brand); width: 0; transition: width 0.15s; }
.up-s { font-size: 11.5px; margin-top: 5px; opacity: 0.85; }

.typing-line { font-size: 12px; color: var(--text-dim); padding: 0 18px 4px; }

.composer {
  flex: 0 0 auto; border-top: 1px solid var(--line); background: var(--bg-soft);
  padding: 8px 10px calc(8px + var(--safe-b));
}
.composer-row { display: flex; align-items: flex-end; gap: 8px; }
.round-btn {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg-elev);
  font-size: 20px; line-height: 1; flex: 0 0 auto;
}
.input-wrap { flex: 1; background: var(--bg-elev); border: 1px solid var(--line); border-radius: 20px; padding: 6px 12px; }
.input-wrap textarea {
  width: 100%; background: transparent; border: 0; outline: none; resize: none; max-height: 120px;
  padding: 4px 0; line-height: 1.45;
}
.send-btn {
  border: 0; border-radius: 6px; padding: 9px 16px; background: var(--brand); color: #fff;
  font-weight: 700; flex: 0 0 auto;
}
.send-btn:disabled { background: var(--bg-elev); color: var(--text-dim); }
.composer-tip { font-size: 11.5px; color: var(--text-dim); margin-top: 6px; padding-left: 4px; display: flex; gap: 12px; align-items: center; }

/* ---------------- 面板 / 抽屉 ---------------- */
.sheet-mask { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.55); z-index: 40; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; background: var(--bg-soft);
  border-top-left-radius: 18px; border-top-right-radius: 18px; border-top: 1px solid var(--line);
  max-height: 82dvh; overflow-y: auto; padding-bottom: calc(12px + var(--safe-b));
  animation: sheetUp 0.18s ease-out;
}
.sheet-wide { max-height: 88dvh; }
@keyframes sheetUp { from { transform: translateY(24px); opacity: 0.6; } to { transform: none; opacity: 1; } }
.sheet-head {
  display: flex; justify-content: space-between; align-items: center; padding: 14px 16px 8px;
  font-weight: 600; position: sticky; top: 0; background: var(--bg-soft); z-index: 1;
}
.sheet-close { color: var(--text-dim); font-size: 22px; cursor: pointer; padding: 0 6px; }
.sheet-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 8px 14px 16px; }
.sheet-item {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: 14px; padding: 14px 6px;
  display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12.5px;
}
.sheet-item .emo { font-size: 22px; }
.sheet-block { padding: 4px 16px 16px; }
.sheet-body { padding: 0 16px 16px; }
.sheet-label { font-size: 12.5px; color: var(--text-dim); margin-bottom: 8px; }
.ttl-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.chip {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px; font-size: 12.5px;
}
.chip.active { background: var(--brand); border-color: var(--brand); color: #04121f; font-weight: 600; }
.menu-list { padding: 4px 12px 12px; }
.menu-item {
  display: block; width: 100%; text-align: left; background: transparent; border: 0; padding: 13px 6px;
  border-bottom: 1px solid var(--line); font-size: 14.5px;
}
.menu-item.danger { color: var(--warn); }
.menu-item .v-sub {
  float: right; color: var(--text-dim); font-size: 12.5px; font-weight: 400;
}

/* ==========================================================================
   访客端「发现」：朋友圈 / 听一听
   ========================================================================== */
.v-page {
  position: fixed; inset: 0; z-index: 55;
  background: var(--bg); display: flex; flex-direction: column;
}
.v-page-head {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between;
  height: calc(48px + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) 8px 0;
  background: var(--bg-soft); border-bottom: 1px solid var(--line);
}
.v-page-title { font-size: 16px; font-weight: 600; }
.v-back {
  width: 44px; height: 40px; border: 0; background: none; color: var(--text);
  font-size: 26px; line-height: 1; font-family: inherit;
}
.v-page-body {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 10px 12px calc(24px + env(safe-area-inset-bottom, 0px));
}
.vm-cover {
  height: 130px; border-radius: 12px; margin-bottom: 10px;
  background: linear-gradient(135deg, #2f4a63 0%, #64798f 60%, #9fb0c6 100%);
  position: relative;
}
.vm-cover .vmm {
  position: absolute; left: 14px; bottom: 10px; color: #fff; font-size: 15px; font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}
.vm-item { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.vm-item:last-child { border-bottom: 0; }
.vm-av {
  width: 40px; height: 40px; border-radius: 10px; flex: 0 0 auto; overflow: hidden;
  background: var(--bg-elev); display: grid; place-items: center; font-size: 20px;
}
.vm-av img { width: 100%; height: 100%; object-fit: cover; }
.vm-main { flex: 1; min-width: 0; }
.vm-name { color: #6a9bd8; font-size: 14.5px; font-weight: 600; }
.vm-text { font-size: 14.5px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; margin-top: 4px; }
.vm-media { display: grid; gap: 4px; margin-top: 8px; }
.vm-media.g1 { grid-template-columns: minmax(0, 64%); }
.vm-media.g2 { grid-template-columns: repeat(2, 1fr); }
.vm-media.g3 { grid-template-columns: repeat(3, 1fr); }
.vm-media img, .vm-media video {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 6px; background: #000; display: block;
}
.vm-media.g1 img, .vm-media.g1 video { aspect-ratio: auto; max-height: 280px; object-fit: contain; }
/* 朋友圈视频：第一帧 + 播放按钮，点一下全屏播 */
.vm-vid { position: relative; display: block; border-radius: 6px; overflow: hidden; background: #000; cursor: pointer; }
.vm-media.g1 .vm-vid video { aspect-ratio: auto; max-height: 280px; object-fit: contain; }
.vm-vid .vm-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(0, 0, 0, 0.42); border: 1.5px solid rgba(255, 255, 255, 0.9);
  display: grid; place-items: center; pointer-events: none;
}
.vm-vid .vm-play svg { margin-left: 3px; }
.vm-loc { margin-top: 8px; color: #6a9bd8; font-size: 13px; }
.vm-time { margin-top: 8px; color: var(--text-dim); font-size: 12px; }
.vm-empty { text-align: center; color: var(--text-dim); font-size: 14px; padding: 60px 20px; line-height: 2; }
.va-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line);
}
.va-row .va-cover {
  width: 50px; height: 50px; border-radius: 10px; flex: 0 0 auto; overflow: hidden;
  background: linear-gradient(135deg, #07c160, #0a8f4c); color: #fff;
  display: grid; place-items: center; font-size: 22px;
}
.va-row .va-cover img { width: 100%; height: 100%; object-fit: cover; }
.va-row .va-info { flex: 1; min-width: 0; }
.va-row .va-t { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.va-row .va-s { font-size: 12px; color: var(--text-dim); margin-top: 3px; }
.va-row .va-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 0; flex: 0 0 auto;
  background: var(--bg-elev); color: #07c160; font-size: 16px;
}
.va-row.playing .va-btn { background: #07c160; color: #fff; }
.detect-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--warn); margin-left: 6px; }

/* 朋友圈：点赞 / 评论 */
.vm-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.vm-time { color: var(--text-dim); font-size: 12px; }
.vm-acts { display: flex; align-items: center; gap: 14px; }
.vm-act {
  display: inline-flex; align-items: center; gap: 4px; border: 0; background: none;
  font-family: inherit; font-size: 12.5px; color: var(--text-dim); padding: 2px;
}
.vm-act.on { color: #6a9bd8; font-weight: 500; }
.vm-inter { margin-top: 8px; background: var(--bg-elev); border-radius: 8px; padding: 7px 9px; }
.vm-like-line { color: #6a9bd8; font-size: 13px; line-height: 1.7; }
.vm-cmts:not(:empty) { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--line); }
.vm-cmt { padding: 3px 0; }
.vm-cmt-b { font-size: 13.5px; line-height: 1.7; word-break: break-word; }
.vm-cmt-b b { color: #6a9bd8; font-weight: 500; }
.vm-cmt-img { display: block; margin-top: 4px; width: 84px; height: 84px; object-fit: cover; border-radius: 6px; background: #000; }
.v-cmt-bar {
  flex: 0 0 auto; display: flex; align-items: center; gap: 8px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
  background: var(--bg-soft); border-top: 1px solid var(--line);
}
.v-cmt-bar input {
  flex: 1; min-width: 0; height: 36px; border: 1px solid var(--line); border-radius: 8px;
  padding: 0 10px; background: var(--bg-elev); color: var(--text); font-size: 15px; font-family: inherit; outline: none;
}
.v-cmt-ico { border: 0; background: none; font-size: 22px; line-height: 1; padding: 2px; }
.v-cmt-send { border: 0; background: var(--brand); color: #04121f; border-radius: 8px; height: 34px; padding: 0 14px; font-size: 14.5px; font-family: inherit; font-weight: 600; }
.v-cmt-emoji {
  flex: 0 0 auto; max-height: 180px; overflow-y: auto; display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px;
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
  background: var(--bg-soft); border-top: 1px solid var(--line);
}
.v-cmt-emoji button { border: 0; background: none; font-size: 22px; line-height: 1.5; padding: 0; }

.lightbox { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.92); z-index: 60; display: grid; place-items: center; }
.lightbox img { max-width: 96vw; max-height: 92vh; }
.lightbox video { max-width: 96vw; max-height: 92vh; background: #000; border-radius: 8px; }
.lb-close { position: absolute; top: 16px; right: 22px; font-size: 30px; color: #fff; }

.toast {
  position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 70;
  background: rgba(28, 32, 41, 0.96); border: 1px solid var(--line); color: var(--text);
  padding: 9px 16px; border-radius: 999px; font-size: 13px; max-width: 84vw; text-align: center;
}

/* ---------------- 管理端布局 ---------------- */
.admin-body { height: 100dvh; overflow: hidden; }
.login-wrap { display: grid; place-items: center; height: 100dvh; padding: 20px; }
.login-card {
  width: min(360px, 92vw); background: var(--bg-soft); border: 1px solid var(--line); border-radius: 18px;
  padding: 26px 22px; display: flex; flex-direction: column; gap: 12px;
}
.login-logo { font-size: 21px; font-weight: 700; text-align: center; }
.login-sub { color: var(--text-dim); font-size: 13px; text-align: center; margin-bottom: 6px; }
.login-card input {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; outline: none;
}
.primary-btn {
  background: var(--brand); color: #04121f; border: 0; border-radius: 12px; padding: 12px 14px; font-weight: 700;
}
.primary-btn:active { background: var(--brand-2); }
.login-err { color: var(--warn); font-size: 13px; text-align: center; }

.admin-app { display: grid; grid-template-columns: 340px 1fr; height: 100dvh; }
.side { display: flex; flex-direction: column; border-right: 1px solid var(--line); background: var(--bg-soft); min-height: 0; }
.side-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px 8px; }
.side-title { font-weight: 600; display: flex; align-items: center; gap: 8px; }
.pill { background: var(--bg-elev); color: var(--text-dim); font-size: 11.5px; padding: 2px 8px; border-radius: 999px; }
.side-search { padding: 0 12px 8px; }
.side-search input { width: 100%; background: var(--bg-elev); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; outline: none; }
.side-filters { display: flex; gap: 6px; padding: 0 12px 8px; }
.side-stats { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 14px 8px; font-size: 11.5px; color: var(--text-dim); }
.side-stats .warn { color: #ffcf6b; }
.conv-list { flex: 1 1 auto; overflow-y: auto; min-height: 0; }
/* App 用户（账号版）面板顶部的一排按钮 */
.app-tools-row { display: flex; gap: 6px; padding: 4px 12px 10px; flex-wrap: wrap; }
.app-tools-row .mini-btn { flex: 1 1 auto; white-space: nowrap; }
.conv-avatar .online-dot {
  position: absolute; right: -2px; bottom: -2px; width: 11px; height: 11px;
  border-radius: 50%; background: var(--ok); border: 2px solid var(--bg);
}
.conv-avatar { position: relative; }
.sel-bar {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  padding: 8px 12px; margin: 0 12px 8px; border-radius: 10px;
  background: #1d2634; border: 1px solid var(--brand);
}
.sel-count { font-size: 12px; color: var(--brand); flex: 1 1 100%; }
.sel-bar .mini-btn { padding: 5px 9px; font-size: 12px; }
.mini-btn.danger { color: var(--warn); border-color: #5a2b2b; }
.conv { display: flex; gap: 8px; padding: 10px 12px; border-bottom: 1px solid rgba(38, 43, 54, 0.6); cursor: pointer; }
.conv:hover { background: var(--bg-elev); }
.conv.current { background: #1d2634; }
.conv-check { display: flex; align-items: center; }
.conv-body { flex: 1; min-width: 0; }
.conv-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.conv-name { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dot-on { display: inline-block; width: 7px; height: 7px; background: var(--ok); border-radius: 50%; margin-left: 6px; vertical-align: middle; }
.conv-time { font-size: 11px; color: var(--text-dim); flex: 0 0 auto; }
.conv-bottom { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.conv-prev { font-size: 12.5px; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge { background: var(--warn); color: #fff; font-size: 11px; border-radius: 999px; padding: 1px 7px; flex: 0 0 auto; }
.conv-tags { font-size: 11px; color: var(--brand); margin-top: 2px; }
.side-foot { display: flex; gap: 6px; padding: 10px 12px calc(10px + var(--safe-b)); border-top: 1px solid var(--line); }
.ghost-btn {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: 10px; padding: 8px 6px;
  font-size: 11.5px; flex: 1 1 0; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.chat { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.chat-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.chat-peer { flex: 1; min-width: 0; }
.chat-peer .title { font-weight: 600; }
.chat-peer .sub { color: var(--text-dim); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-actions { display: flex; gap: 2px; }
/* 聊天页的返回键：任何屏幕上都显示（管理端要能随时回到会话列表换人聊） */
.back-btn {
  display: inline-grid !important;
  place-items: center;
  font-size: 22px;
  padding: 6px 12px;
  margin-right: 2px;
  border-radius: 12px;
  background: var(--bg-elev);
}
.back-btn:active { transform: scale(0.96); }

/* 手机上聊天页：占满列表区域，底部导航仍然保留，随时能换人 / 换标签 */
.m-pane .chat-head { flex: 0 0 auto; }
.m-chat-pane .chat-scroll { flex: 1 1 auto; }
@media (max-width: 820px) {
  .m-chat-pane { z-index: 4; }
  .m-chat-pane .chat-head { padding-top: calc(8px + env(safe-area-inset-top, 0px)); }
}

.kv { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.kv span { color: var(--text-dim); }
.field { margin: 12px 0; }
.field label { display: block; font-size: 12.5px; color: var(--text-dim); margin-bottom: 6px; }
.field input[type='text'], .field input:not([type]), .field textarea {
  width: 100%; background: var(--bg-elev); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; outline: none;
}
.field input[type='file'] { width: 100%; font-size: 12.5px; color: var(--text-dim); }
.file-list { margin-top: 10px; }
.file-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.fr-main { flex: 1; min-width: 0; }
.fr-n { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fr-s { font-size: 11.5px; color: var(--text-dim); }
.mini-btn { background: var(--bg-elev); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-size: 12px; }
.invite-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.invite-text { flex: 1; font-size: 13px; color: var(--text); }

/* 管理端消息气泡沿用访客端样式（me=自己=管理员） */
.admin-body .chat-scroll { padding: 14px 0; }
.admin-body .chat-inner { max-width: 900px; margin: 0 auto; width: 100%; }

/* ---------------- 素材分享页 /a/<code> ---------------- */
.asset-body { min-height: 100dvh; background: radial-gradient(120% 80% at 50% 0%, #1a2130 0%, var(--bg) 60%); display: flex; }
.asset-wrap { margin: auto; width: min(720px, 94vw); padding: 24px 0 calc(24px + var(--safe-b)); }
.asset-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45); }
.asset-head { padding: 18px 20px 12px; }
.asset-title { font-size: 17px; font-weight: 650; }
.asset-meta { color: var(--text-dim); font-size: 12.5px; margin-top: 4px; }
.asset-body { padding: 0 20px; }
.asset-img, .asset-video { width: 100%; max-height: 70dvh; object-fit: contain; border-radius: 14px; background: #000; display: block; }
.asset-linkbox { display: flex; flex-direction: column; gap: 12px; }
.asset-text { padding: 14px 20px 0; color: var(--text); font-size: 14px; line-height: 1.7; white-space: pre-wrap; }
.asset-foot { display: flex; gap: 10px; padding: 16px 20px 20px; }
.asset-foot .ghost-btn { flex: 1; }
.file-card.wide { min-width: 0; width: 100%; }
.empty-state { text-align: center; padding: 46px 22px; }
.es-ico { font-size: 38px; }
.es-t { font-size: 17px; font-weight: 650; margin-top: 10px; }
.es-s { color: var(--text-dim); font-size: 13px; margin-top: 6px; }

/* ---------------- 管理后台扩展：标签页 / 素材库 / 自动回复 ---------------- */
.side-tabs { display: flex; gap: 6px; padding: 0 12px 8px; }
.side-tabs .chip { flex: 1; text-align: center; }
.asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.asset-tile { background: var(--bg-elev); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.asset-tile .thumb {
  height: 110px; background: #0a0c11 center/cover no-repeat; display: grid; place-items: center;
  font-size: 26px; color: var(--text-dim);
}
.asset-tile .thumb img, .asset-tile .thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.asset-tile .info { padding: 8px 10px 10px; }
.asset-tile .n { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asset-tile .s { font-size: 11px; color: var(--text-dim); margin-top: 2px; }
.asset-tile .ops { display: flex; gap: 6px; margin-top: 8px; }
.asset-tile .ops .mini-btn { flex: 1; padding: 5px 4px; font-size: 11.5px; }
.asset-tile.hidden-asset { opacity: 0.5; }
.rule-row { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 10px; background: var(--bg-elev); }
.rule-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.rule-title { font-weight: 600; font-size: 14px; }
.rule-sub { color: var(--text-dim); font-size: 12px; margin-top: 4px; }
.rule-switch { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-dim); }
.rule-ops { display: flex; gap: 6px; margin-top: 10px; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg .chip { flex: 1 1 auto; }
.dropzone {
  border: 1.5px dashed var(--line); border-radius: 14px; padding: 22px 14px; text-align: center;
  color: var(--text-dim); font-size: 13px; cursor: pointer;
}
.dropzone.hot { border-color: var(--brand); color: var(--brand); background: rgba(62, 166, 255, 0.06); }
.progress { height: 6px; background: var(--bg-elev); border-radius: 999px; overflow: hidden; margin-top: 10px; }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), #6a5cff); transition: width 0.15s; }

/* ---------------- 微交互与动效（保持轻量，避免卡顿） ---------------- */
.msg, .conv, .asset-tile, .rule-row { will-change: transform; }
.msg { animation: msgIn 0.18s ease-out; }
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.conv { transition: background 0.14s ease; }
.chip, .mini-btn, .ghost-btn, .primary-btn { transition: background 0.14s ease, border-color 0.14s ease, transform 0.08s ease; }
.chip:active, .mini-btn:active, .ghost-btn:active, .primary-btn:active { transform: scale(0.97); }
.chat-scroll { scrollbar-width: thin; scrollbar-color: #2c3340 transparent; }
.chat-scroll::-webkit-scrollbar, .conv-list::-webkit-scrollbar, .file-list::-webkit-scrollbar { width: 8px; }
.chat-scroll::-webkit-scrollbar-thumb, .conv-list::-webkit-scrollbar-thumb, .file-list::-webkit-scrollbar-thumb {
  background: #2c3340; border-radius: 999px;
}
.pill.off { color: var(--text-dim); }

/* 自动回复：多内容编辑 */
.ar-items { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.ar-item {
  display: flex; gap: 8px; align-items: flex-start; background: var(--bg-elev);
  border: 1px solid var(--line); border-radius: 12px; padding: 10px;
}
.ar-item .ar-kind {
  flex: 0 0 auto; font-size: 11.5px; color: var(--brand); border: 1px solid var(--line);
  border-radius: 8px; padding: 2px 7px; margin-top: 2px;
}
.ar-item .ar-main { flex: 1; min-width: 0; }
.ar-item textarea, .ar-item input[type='text'] {
  width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 9px;
  padding: 8px 10px; outline: none; resize: vertical;
}
.ar-item .ar-file { font-size: 12.5px; color: var(--text-dim); word-break: break-all; }
.ar-item .ar-del { flex: 0 0 auto; }
.ar-add { display: flex; gap: 6px; flex-wrap: wrap; }
.ar-add .mini-btn { flex: 1 1 auto; }
.ar-preview-card {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: 12px;
  padding: 10px; display: flex; gap: 10px; align-items: center;
}
.ar-preview-card img, .ar-preview-card video {
  width: 96px; height: 68px; object-fit: cover; border-radius: 8px; background: #000;
}
.ar-preview-card .pc-ico { font-size: 26px; width: 96px; text-align: center; }

/* 访客端：公开内容横幅 */
.pub-strip { margin: 4px 12px 10px; }
.pub-strip-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: 12.5px; color: var(--text-dim); margin-bottom: 6px;
}
.pub-strip-head b { color: var(--text); font-weight: 600; }
.pub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
.pub-card {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; cursor: pointer; transition: transform 0.12s ease, border-color 0.12s ease;
}
.pub-card:active { transform: scale(0.97); }
.pub-card:hover { border-color: var(--brand); }
.pub-card .pc-media { height: 84px; background: #0a0c11 center/cover no-repeat; display: grid; place-items: center; font-size: 24px; }
.pub-card .pc-media img, .pub-card .pc-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.pub-card .pc-name {
  font-size: 11.5px; padding: 6px 8px 8px; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pub-more { font-size: 12px; color: var(--brand); background: none; border: 0; }

/* ================================================================
   手机 App 风格外壳（管理端）
   ================================================================ */
.m-app {
  display: flex; flex-direction: column;
  height: 100dvh; max-width: 560px; margin: 0 auto;
  background: var(--bg); position: relative; overflow: hidden;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}
.m-header {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 10px;
  background: linear-gradient(180deg, #1a1f2b 0%, var(--bg-soft) 100%);
  border-bottom: 1px solid var(--line);
}
.m-title { font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.m-head-actions { display: flex; gap: 2px; }
.m-body { flex: 1 1 auto; min-height: 0; position: relative; overflow: hidden; }
.m-pane {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  min-height: 0; animation: paneIn 0.16s ease-out;
}
@keyframes paneIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.m-pane .conv-list { flex: 1 1 auto; overflow-y: auto; min-height: 0; -webkit-overflow-scrolling: touch; }
.m-chat-pane { background: var(--bg); z-index: 3; }
.m-pane-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px 6px; flex: 0 0 auto;
}
.m-pane-head b { font-size: 16px; }
.m-hint { font-size: 12px; color: var(--text-dim); padding: 0 14px 8px; line-height: 1.6; flex: 0 0 auto; }
.primary-mini { background: var(--brand); border-color: var(--brand); color: #04121f; font-weight: 600; }

/* ── 更多页：功能直接铺在页面里（不再弹悬浮层）── */
.tools-scroll {
  flex: 1 1 auto; min-height: 0; overflow-y: auto;
  -webkit-overflow-scrolling: touch; padding: 0 0 24px;
}
.tools-group { padding: 6px 12px 2px; }
.tools-title {
  font-size: 12px; color: var(--text-dim); font-weight: 600;
  padding: 10px 4px 6px; letter-spacing: 0.03em;
}
.tools-item {
  display: flex; align-items: center; gap: 12px; width: 100%;
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 14px; margin-bottom: 8px; text-align: left; color: var(--text);
  font-family: inherit; cursor: pointer; transition: transform 0.12s ease, background 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}
.tools-item:active { transform: scale(0.985); background: var(--bg-elev-2, var(--bg-elev)); }
.tools-item .ti-ico { font-size: 21px; flex: 0 0 auto; width: 26px; text-align: center; }
.tools-item .ti-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tools-item .ti-main b { font-size: 14.5px; font-weight: 600; }
.tools-item .ti-main i { font-size: 11.5px; color: var(--text-dim); font-style: normal; }
.tools-item .ti-go { color: var(--text-dim); font-size: 18px; flex: 0 0 auto; }
.tools-item.danger .ti-main b { color: var(--warn); }
.tools-foot {
  font-size: 11.5px; color: var(--text-dim); text-align: center;
  padding: 18px 16px 6px; line-height: 1.8; word-break: break-all;
}
/* 自动回复条目上的「第 N 条」小标 */
.ar-order {
  display: block; font-size: 10px; font-style: normal; opacity: 0.75;
  font-weight: 400; margin-top: 2px;
}

.m-tabbar {
  flex: 0 0 auto; display: flex; align-items: stretch;
  background: rgba(22, 25, 34, 0.96); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.m-tab {
  flex: 1; background: none; border: 0; display: flex; flex-direction: column;
  align-items: center; gap: 3px; padding: 8px 2px 7px; font-size: 11px;
  color: var(--text-dim); position: relative;
}
.m-tab .m-tab-ico { font-size: 19px; line-height: 1; }
.m-tab.active { color: var(--brand); font-weight: 600; }
.m-tab.active::after {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 26px; height: 3px; border-radius: 0 0 3px 3px; background: var(--brand);
}
.m-badge {
  position: absolute; top: 4px; right: 50%; margin-right: -22px;
  background: var(--warn); color: #fff; font-style: normal; font-size: 10px;
  border-radius: 999px; padding: 1px 5px; font-weight: 700;
}

/* 手机端列表项更“卡片化” */
.conv { border-radius: 12px; margin: 4px 10px; border: 1px solid transparent; }
.conv.current { border-color: var(--brand); }
.m-pane .side-search, .m-pane .side-filters, .m-pane .side-stats,
.m-pane .sel-bar, .m-pane .m-pane-head, .m-pane .m-hint { flex: 0 0 auto; }

/* 手机上的抽屉：底部整宽 + 拖拽把手 */
@media (max-width: 820px) {
  .sheet { left: 0; right: 0; bottom: 0; width: auto; border-radius: 18px 18px 0 0; }
  .sheet-wide { width: auto; }
}
.sheet::before {
  content: ''; display: block; width: 40px; height: 4px; border-radius: 999px;
  background: #3a4152; margin: 8px auto 0;
}

/* 访客端：公开内容横向滑动条 */
.pub-strip { overflow: hidden; }
.pub-scroll { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x mandatory; }
.pub-scroll::-webkit-scrollbar { display: none; }
.pub-scroll .pub-card { flex: 0 0 118px; scroll-snap-align: start; }
.pub-card .pc-sub { font-size: 10.5px; color: var(--text-dim); padding: 0 8px 8px; }
.pub-card .pc-text {
  height: 84px; padding: 8px; font-size: 11.5px; color: var(--text); overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; white-space: pre-wrap;
}
.link-domain { font-size: 12.5px; color: var(--brand); margin-bottom: 6px; word-break: break-all; }
.asset-text-big { font-size: 15px; line-height: 1.75; white-space: pre-wrap; padding: 6px 0 4px; }

/* 手机端访客页：更像聊天软件 */
@media (max-width: 820px) {
  .visitor-body .chat-inner { padding: 4px 10px 12px; }
  .msg { max-width: 86%; }
  .bubble { border-radius: 16px; }
  .composer { border-top-left-radius: 16px; border-top-right-radius: 16px; }
}

/* ================================================================
   访客端：设置面板 / 表情 / 安装引导
   ================================================================ */
.settings-btn,
.discover-btn {
  font-size: 13.5px !important;
  padding: 6px 12px !important;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-elev);
  color: var(--text-dim);
  white-space: nowrap;
}
.set-block { padding: 12px 0; border-bottom: 1px solid var(--line); }
.set-block:last-child { border-bottom: 0; }
.set-label { font-size: 12.5px; color: var(--text-dim); margin-bottom: 8px; }
.set-inline { display: flex; gap: 8px; align-items: center; }
.set-inline input {
  flex: 1; min-width: 0; background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 12px; outline: none;
}
.set-switch { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; }
.set-switch input { width: 46px; height: 26px; appearance: none; background: var(--bg-elev); border: 1px solid var(--line); border-radius: 999px; position: relative; transition: background 0.15s; }
.set-switch input::after {
  content: ''; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: #6b7688; transition: transform 0.15s, background 0.15s;
}
.set-switch input:checked { background: var(--brand); border-color: var(--brand); }
.set-switch input:checked::after { transform: translateX(20px); background: #fff; }
.avatar-row { display: flex; flex-wrap: wrap; gap: 8px; }
.avatar-pick {
  width: 44px; height: 44px; border-radius: 14px; font-size: 22px; line-height: 1;
  background: var(--bg-elev); border: 1.5px solid var(--line);
}
.avatar-pick.active { border-color: var(--brand); background: rgba(62, 166, 255, 0.14); }
.site-avatar-preview {
  width: 44px; height: 44px; border-radius: 14px; overflow: hidden;
  background: linear-gradient(135deg, #2f8fe0, #6a5cff); color: #fff;
  display: grid; place-items: center; font-size: 20px; font-weight: 700;
}
.site-avatar-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.inline-avatar { width: 20px; height: 20px; border-radius: 6px; vertical-align: -4px; object-fit: cover; }
.sound-row { display: flex; gap: 6px; flex-wrap: wrap; }

.emoji-grid {
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px;
  padding: 6px 14px 18px; max-height: 46dvh; overflow-y: auto;
}
.emoji-item {
  background: none; border: 0; font-size: 24px; line-height: 1; padding: 8px 0; border-radius: 10px;
}
.emoji-item:active { background: var(--bg-elev); transform: scale(0.94); }
.emoji-btn { font-size: 19px !important; }

.install-banner {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  z-index: 55; display: flex; align-items: center; gap: 10px;
  background: rgba(24, 30, 42, 0.97); border: 1px solid var(--brand);
  color: var(--text); padding: 10px 14px; border-radius: 14px;
  font-size: 13px; max-width: 92vw; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.install-banner button { flex: 0 0 auto; }

/* 访客头像（会话列表 & 聊天头部） */
.conv-avatar {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 12px;
  background: linear-gradient(135deg, #2f8fe0, #6a5cff); color: #fff;
  display: grid; place-items: center; font-size: 19px; font-weight: 700;
}
.peer-avatar {
  flex: 0 0 auto; width: 36px; height: 36px; border-radius: 12px;
  background: linear-gradient(135deg, #2f8fe0, #6a5cff); color: #fff;
  display: grid; place-items: center; font-size: 18px; font-weight: 700;
}

/* 渠道标签 / 自动清空标签 / 危险按钮 */
.conv-channel, .conv-ac {
  display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 999px;
  background: rgba(62, 166, 255, 0.14); color: #7cc0ff; margin-right: 6px;
}
.conv-ac { background: rgba(255, 176, 62, 0.14); color: #ffbe5c; }
.danger-btn { background: linear-gradient(135deg, #e0483f, #b8322a) !important; border-color: transparent !important; }
.danger-btn:active { filter: brightness(0.92); }
/* 发布指南面板 */
.pub-table { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.pub-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 9px 10px; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.pub-row:last-child { border-bottom: 0; }
.pub-p { flex: 1 1 120px; font-weight: 600; }
.pub-cell { padding: 1px 8px; border-radius: 999px; font-size: 11.5px; white-space: nowrap; }
.pub-cell.ok { background: rgba(62, 196, 122, 0.16); color: #6fd39a; }
.pub-cell.mid { background: rgba(255, 176, 62, 0.16); color: #ffbe5c; }
.pub-cell.bad { background: rgba(224, 72, 63, 0.16); color: #ff8b82; }
.pub-note { flex: 1 1 100%; color: var(--text-dim); font-size: 11.5px; }
.pub-item { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
.pub-item summary { cursor: pointer; font-size: 13.5px; }
.pub-item[open] summary { margin-bottom: 8px; }
.risk { font-size: 11px; padding: 1px 7px; border-radius: 999px; margin-left: 6px; }
.risk.r-low { background: rgba(62, 196, 122, 0.16); color: #6fd39a; }
.risk.r-mid { background: rgba(255, 176, 62, 0.16); color: #ffbe5c; }
.risk.r-high { background: rgba(224, 72, 63, 0.16); color: #ff8b82; }
/* ================================================================
   像真 App 一样：禁止缩放/双击放大、固定视口、不出现横向滚动
   ================================================================ */
* { -webkit-tap-highlight-color: transparent; }
html, body {
  touch-action: manipulation;          /* 去掉双击放大 */
  -webkit-text-size-adjust: 100%;      /* 横竖屏切换不改字号 */
  text-size-adjust: 100%;
  overscroll-behavior: none;           /* 去掉橡皮筋回弹 */
  max-width: 100vw;
  overflow-x: hidden;
}
body { position: fixed; inset: 0; }    /* 固定视口，页面本身不滚动 */
.m-app, .visitor-body > .topbar, .chat-scroll, .m-body, .composer { -webkit-overflow-scrolling: touch; }
.composer textarea, .composer input, #textInput { font-size: 16px !important; }  /* 只让输入框 16px（iOS 不放大），别的地方保持紧凑 */
img, video, canvas, svg { max-width: 100%; }
/* 顶栏「多选」按钮 */
.mini-btn.active { background: var(--brand) !important; color: #fff !important; border-color: transparent !important; }
/* 会话头：昵称和副标题必须能完整显示，不挤压 */
.chat-head { gap: 8px; }
.chat-peer { flex: 1 1 auto; min-width: 0; overflow: hidden; }
.chat-peer .title {
  font-weight: 600; font-size: 15px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.chat-peer .sub {
  font-size: 11.5px; color: var(--text-dim); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.chat-head .back-btn { flex: 0 0 auto; }
.chat-head .peer-avatar { flex: 0 0 auto; }
.chat-head .chat-actions { flex: 0 0 auto; display: flex; gap: 4px; }
.chat-head .chat-actions .icon-btn { padding: 6px 8px; font-size: 16px; }
/* 素材库：像聊天消息一样一条一条 */
.msg-list { display: flex; flex-direction: column; gap: 10px; }
.msg-row {
  display: flex; gap: 10px; padding: 10px; border-radius: 14px;
  background: var(--bg-elev); border: 1px solid var(--line); cursor: pointer;
}
.msg-row:active { transform: scale(0.995); }
.msg-row-off { opacity: 0.55; }
.msg-avatar {
  flex: 0 0 auto; width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, #2f8fe0, #6a5cff); color: #fff;
  display: grid; place-items: center; font-size: 17px;
}
.msg-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.msg-head { display: flex; flex-direction: column; gap: 2px; }
.msg-name { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-meta { font-size: 11.5px; color: var(--text-dim); }
.msg-thumb {
  max-width: 100%; max-height: 220px; border-radius: 10px; object-fit: cover;
  background: #0b0e14; display: block;
}
.msg-textbox { background: rgba(255, 255, 255, 0.04); border-radius: 10px; padding: 9px 11px; }
.msg-text { font-size: 13.5px; line-height: 1.65; color: var(--text); white-space: pre-wrap; word-break: break-word; }
.msg-link { font-size: 12px; color: #7cc0ff; word-break: break-all; margin-bottom: 4px; }
.msg-filebox { display: grid; place-items: center; padding: 14px; background: rgba(255, 255, 255, 0.04); border-radius: 10px; }
.msg-fileicon { font-size: 30px; }
/* 访客端「站长分享」：竖着一条一条（像聊天内容） */
.pub-list { display: flex; flex-direction: column; gap: 10px; padding: 2px 0 4px; }
.pub-list .pub-card { width: auto; flex: 0 0 auto; }
.pub-list .pub-media img, .pub-list .pub-media video { max-height: 240px; width: auto; max-width: 100%; border-radius: 10px; }
.pub-list .pub-media { background: transparent; display: block; }
/* 公告 */
.ann-thumb { max-width: 100%; max-height: 200px; border-radius: 10px; display: block; margin: 6px 0; }
.rule-ops { display: flex; gap: 8px; margin-top: 8px; }
/* 访客端顶部公告条 */
.ann-bar {
  display: flex; align-items: center; gap: 8px; margin: 6px 12px;
  background: linear-gradient(135deg, rgba(255,176,62,0.18), rgba(224,72,63,0.14));
  border: 1px solid rgba(255,176,62,0.35); color: #ffd9a0;
  padding: 9px 12px; border-radius: 12px; font-size: 13px;
}
.ann-bar .ann-ico { flex: 0 0 auto; font-size: 15px; }
.ann-bar .ann-text { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ann-bar .ann-more { flex: 0 0 auto; color: #ffbe5c; font-size: 12px; }
.ann-media { max-width: 100%; border-radius: 12px; margin-top: 10px; }
/* 素材库 / 访客分享：像「收到的聊天消息」 */
.msg-list { gap: 14px; }
.msg-row {
  display: flex; gap: 8px; padding: 0; border: 0; background: transparent;
  border-radius: 0; align-items: flex-start;
}
.msg-avatar {
  width: 36px; height: 36px; border-radius: 10px; flex: 0 0 auto;
  background: linear-gradient(135deg, #4a90e2, #6a5cff); color: #fff;
  display: grid; place-items: center; font-size: 16px;
}
.msg-main {
  flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px;
  padding: 10px 13px; border-radius: 4px 14px 14px 14px;
  background: #1b2130; border: 1px solid rgba(255, 255, 255, 0.07);
  max-width: calc(100% - 46px);
}
.msg-row-off .msg-main { opacity: 0.5; }
.msg-head { display: flex; flex-direction: row; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.msg-name { font-weight: 600; font-size: 13.5px; }
.msg-meta { font-size: 11px; color: var(--text-dim); }
.msg-thumb {
  max-width: 100%; max-height: 260px; border-radius: 10px;
  object-fit: cover; background: #0b0e14; display: block; margin-top: 2px;
}
.msg-textbox { background: transparent; padding: 0; }
.msg-text { font-size: 13.5px; line-height: 1.7; color: var(--text); white-space: pre-wrap; word-break: break-word; }
.msg-link { font-size: 12px; color: #7cc0ff; word-break: break-all; margin-bottom: 4px; }
.msg-filebox { display: grid; place-items: center; padding: 16px; background: rgba(255, 255, 255, 0.05); border-radius: 10px; }

/* 访客端「站长分享」也一样 */
.pub-list .pub-card {
  display: flex; flex-direction: column; gap: 6px;
  background: #1b2130; border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 4px 14px 14px 14px; padding: 10px 13px; cursor: pointer;
}
.pub-list .pub-card .pc-media { background: transparent; display: block; }
.pub-list .pub-card .pc-name { font-weight: 600; font-size: 13.5px; }
.pub-list .pub-card .pc-sub { font-size: 11px; color: var(--text-dim); }
.pub-list .pub-card .pc-media img, .pub-list .pub-card .pc-media video {
  max-height: 260px; width: auto; max-width: 100%; border-radius: 10px;
}
.pub-list .pub-card .pc-text {
  font-size: 13.5px; line-height: 1.7; white-space: pre-wrap; color: var(--text);
  background: transparent; padding: 0;
}
/* ---------------- 移动端适配 ---------------- */
@media (max-width: 820px) {
  .admin-app { grid-template-columns: 1fr; position: relative; overflow: hidden; }
  .side { position: absolute; inset: 0; z-index: 2; }
  .chat { position: absolute; inset: 0; z-index: 3; background: var(--bg); transform: translateX(100%); transition: transform 0.2s ease-out; }
  body.chat-open .chat { transform: none; }
  .back-btn { display: block; }
  .msg { max-width: 88%; }
}
@media (min-width: 821px) {
  .sheet { left: auto; right: 18px; bottom: 18px; width: 460px; border-radius: 16px; border: 1px solid var(--line); }
  .sheet-wide { width: 560px; }
}

/* 短链 / 长链 对照 */
.link-pair { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; background: var(--bg-soft); }
.lp-head { font-size: 12px; color: var(--text-dim); font-weight: 600; padding-bottom: 8px; }
/* ── 清理数据：三张大卡片，一看就懂 ── */
.clean-stat {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 14px; font-size: 13px; line-height: 1.9; color: var(--text);
}
.clean-note { font-size: 12px; color: var(--ok); padding: 8px 2px 10px; line-height: 1.7; }
.clean-card {
  display: flex; align-items: center; gap: 12px; width: 100%;
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: 16px;
  padding: 14px; margin-bottom: 10px; text-align: left; color: var(--text);
  font-family: inherit; cursor: pointer; transition: transform 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}
.clean-card:active { transform: scale(0.985); }
.clean-card .cc-ico { font-size: 24px; flex: 0 0 auto; width: 30px; text-align: center; }
.clean-card .cc-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.clean-card .cc-main b { font-size: 15px; font-weight: 600; }
.clean-card .cc-main i { font-size: 12px; color: var(--text-dim); font-style: normal; line-height: 1.6; }
.clean-card .cc-main u { text-decoration: none; border-bottom: 1px solid currentColor; }
.clean-card .cc-go { color: var(--text-dim); font-size: 18px; flex: 0 0 auto; }
.clean-card.danger { border-color: rgba(255, 107, 107, 0.45); }
.clean-card.danger .cc-main b { color: var(--warn); }
/* 会话列表上的「提醒开关」小标 */
.conv-push, .conv-nopush {
  display: inline-block; font-size: 10px; line-height: 1.6;
  padding: 0 6px; border-radius: 999px; margin-right: 5px;
}
.conv-push { color: #7ee2a8; background: rgba(53, 196, 106, 0.14); }
.conv-nopush { color: #ffb3b3; background: rgba(255, 107, 107, 0.14); }
/* 桌面图标主题选择 */
.icon-pick-row { display: flex; flex-wrap: wrap; gap: 10px; padding: 6px 0; }
.icon-pick {
  width: 56px; height: 56px; padding: 0; border-radius: 14px; overflow: hidden;
  border: 2px solid transparent; background: transparent; cursor: pointer; line-height: 0;
  -webkit-tap-highlight-color: transparent;
}
.icon-pick img { width: 100%; height: 100%; border-radius: 12px; display: block; }
.icon-pick.active { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(62, 166, 255, 0.22); }
/* ── 访客欢迎卡：第一眼拉住人 ── */
.welcome-card {
  position: relative; margin: 10px 12px 14px; padding: 16px 16px 14px;
  border-radius: 18px; border: 1px solid var(--line);
  background: linear-gradient(160deg, #ffffff, #f6fffa 55%, #f2f7ff);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
  animation: paneIn 0.25s ease-out;
}
.wc-close {
  position: absolute; top: 8px; right: 10px; width: 26px; height: 26px;
  border-radius: 50%; border: 0; background: rgba(0, 0, 0, 0.05); color: var(--text-dim);
  font-size: 15px; line-height: 1; cursor: pointer;
}
.wc-top { display: flex; align-items: center; gap: 12px; }
.wc-avatar {
  width: 52px; height: 52px; border-radius: 50%; overflow: hidden; flex: 0 0 auto;
  background: var(--bg-elev); display: flex; align-items: center; justify-content: center;
  font-size: 24px; box-shadow: 0 0 0 2px rgba(7, 193, 96, 0.3);
}
.wc-avatar img { width: 100%; height: 100%; object-fit: cover; }
.wc-name { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.wc-name b { font-size: 17px; }
.wc-online { font-size: 12px; color: var(--ok); display: flex; align-items: center; gap: 5px; }
.wc-online i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); display: inline-block; }
.wc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 4px; }
.wc-chips span {
  font-size: 11px; color: var(--text-dim); border: 1px solid var(--line);
  border-radius: 999px; padding: 3px 9px; background: #fff;
}
.wc-cta {
  display: block; width: 100%; margin-top: 9px; padding: 12px 14px;
  border-radius: 13px; border: 0; cursor: pointer; font-family: inherit;
  font-size: 14.5px; font-weight: 600; text-align: center;
  background: linear-gradient(135deg, var(--brand), #06ad56); color: #fff;
  -webkit-tap-highlight-color: transparent;
}
.wc-cta:active { transform: scale(0.985); }
.wc-cta.ghost {
  background: #fff; border: 1px solid var(--line); color: var(--text);
  font-weight: 500; font-size: 13.5px;
}
.wc-foot { font-size: 11.5px; color: var(--text-dim); text-align: center; margin-top: 10px; }
/* 欢迎卡里"已经在 App 内"的状态徽标 */
.wc-badge {
  margin-top: 12px; padding: 11px 14px; border-radius: 13px; text-align: center;
  font-size: 13.5px; font-weight: 600; color: #9ff3c0;
  background: rgba(53, 196, 106, 0.13); border: 1px solid rgba(53, 196, 106, 0.28);
}
/* ==========================================================================
   访客页聊天上方那条「查看相册选人」——和 App 端保持一致，会呼吸跳动
   ========================================================================== */
.pick-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #f3fff7, #e9fbef);
  color: #07a04f;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: 0.5px;
  cursor: pointer;
  animation: pickGlow 2s ease-in-out infinite;
  -webkit-tap-highlight-color: transparent;
}
.pick-bar:active {
  background: #dcf6e6;
}
.pick-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #07c160;
  flex: none;
  animation: pickDot 1.2s ease-in-out infinite;
}
.pick-txt {
  flex: 1;
  text-align: left;
}
.pick-ar {
  font-size: 18px;
  line-height: 1;
  opacity: 0.6;
}
@keyframes pickDot {
  0% { transform: translateY(0) scale(1); box-shadow: 0 0 0 0 rgba(7,193,96,.55); }
  50% { transform: translateY(-4px) scale(1.15); box-shadow: 0 0 0 7px rgba(7,193,96,0); }
  100% { transform: translateY(0) scale(1); box-shadow: 0 0 0 0 rgba(7,193,96,0); }
}
@keyframes pickGlow {
  0%, 100% { background: linear-gradient(180deg, #f3fff7, #e9fbef); }
  50% { background: linear-gradient(180deg, #e4fbee, #d6f7e4); }
}
/* ==========================================================================
   访客页「发送位置」面板里的搜索框（和 App 端一致的做法）
   ========================================================================== */
.loc-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 14px 0;
  padding: 0 12px;
  height: 42px;
  background: var(--bg-elev);
  border-radius: 10px;
}
.loc-search-wrap input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  -webkit-appearance: none;
}
.loc-search-wrap input::-webkit-search-cancel-button { display: none; }
.loc-search-wrap button { border: 0; background: transparent; font-size: 15px; color: var(--text-dim); padding: 4px; cursor: pointer; }
.loc-sug {
  margin: 8px 14px 0;
  max-height: 40vh;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  -webkit-overflow-scrolling: touch;
}
.loc-sug .lsg { padding: 12px 14px; border-bottom: 1px solid #f2f2f2; cursor: pointer; }
.loc-sug .lsg:last-child { border-bottom: 0; }
.loc-sug .lsg:active { background: #f5f5f5; }
.loc-sug .lsg-t { font-size: 15px; color: var(--text); }
.loc-sug .lsg-s { font-size: 12.5px; color: var(--text-dim); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.loc-sug .lsg-empty { padding: 16px 14px; font-size: 13.5px; color: var(--text-dim); text-align: center; }
.loc-here {
  display: block;
  width: calc(100% - 28px);
  margin: 12px 14px 18px;
  padding: 13px;
  border: 0;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
}
.loc-here:active { background: var(--bg-elev); }
/* 访客页发位置：地图选点（和 App 端一致） */
.loc-map-wrap {
  position: relative;
  margin: 10px 14px 0;
  height: 210px;
  border-radius: 12px;
  overflow: hidden;
  background: #e8e8e8;
}
.loc-map { position: absolute; inset: 0; overflow: hidden; cursor: grab; }
.loc-map.dragging { cursor: grabbing; }
.loc-map img { position: absolute; width: 256px; height: 256px; max-width: none; pointer-events: none; -webkit-user-drag: none; }
.loc-map-pin {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -100%);
  pointer-events: none;
  filter: drop-shadow(0 3px 4px rgba(0,0,0,.3));
}
.loc-map-locate {
  position: absolute; right: 10px; bottom: 10px;
  width: 38px; height: 38px; border-radius: 50%;
  border: 0; background: #fff; color: #07c160;
  font-size: 18px; line-height: 1;
  box-shadow: 0 3px 10px rgba(0,0,0,.18);
  cursor: pointer;
}
.loc-coord {
  margin: 8px 14px 0;
  font-size: 12.5px;
  color: var(--text-dim);
  text-align: center;
}
.loc-send {
  display: block;
  width: calc(100% - 28px);
  margin: 12px 14px 0;
  padding: 14px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #07c160, #06ad56);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}
.loc-send:active { opacity: .85; }
/* ==========================================================================
   相册页里每张卡下面的那个按钮
   基础样式原来只写在 App 的 appchat.css 里，网页相册页加载的是 app.css，
   结果网页端那个按钮是浏览器默认样式（又小又灰）—— 这里补齐，和 App 端逐字一致。
   ========================================================================== */
.alb-go {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 11px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #07c160, #06ad56);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.alb-go:active {
  opacity: 0.8;
}
/* 选人模式：橙色，和「和她聊」区分开 */
.alb-go.pick-me {
  background: linear-gradient(135deg, #ff9a34, #ff7a18);
  font-size: 16px;
  letter-spacing: 1px;
}
/* ==========================================================================
   访客一直在找「下载 App」和「相册」——把这两个按钮做成一眼就能看见
   --------------------------------------------------------------------------
   原来四个按钮都是灰白小方块（相册 / 下载APP / 发现 / 设置），访客根本注意不到。
   现在：
     · 下载APP → 绿色实心 + 轻轻跳动（和「查看相册选人」那根条一个套路）
     · 相册    → 橙色实心 + 右上角小红点
   ========================================================================== */
.visitor-top .dl-btn,
.topbar .dl-btn,
header .dl-btn {
  background: #07c160 !important;
  color: #fff !important;
  border-color: #07c160 !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(7, 193, 96, 0.35);
  animation: dlPulse 1.8s ease-in-out infinite;
}
.visitor-top .album-btn,
.topbar .album-btn,
header .album-btn {
  background: #ff8f1f !important;
  color: #fff !important;
  border-color: #ff8f1f !important;
  font-weight: 700 !important;
  position: relative;
}
.visitor-top .album-btn::after,
.topbar .album-btn::after,
header .album-btn::after {
  content: '';
  position: absolute;
  top: -3px;
  right: -3px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fa5151;
  box-shadow: 0 0 0 2px #fff;
}
@keyframes dlPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

/* 相册页：橙按钮下面再放一个「下载 APP 看更多」（做小做精致，别像广告块） */
.alb-appcta {
  display: block;
  width: 100%;
  margin: 6px 0 0;
  padding: 7px 10px;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(135deg, #07c160, #05a352);
  color: #fff;
  text-align: center;
  cursor: pointer;
}
.alb-appcta b {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}
.alb-appcta i {
  display: block;
  font-style: normal;
  font-size: 10px;
  opacity: 0.88;
  line-height: 1.3;
}
/* ==========================================================================
   诱惑访客下载 App 的三件套（站长要求：客户都是男性，要抓住心理）
   ========================================================================== */
/* ① 顶部那条「在内置浏览器里打开」的提示条：不再显示 */
.env-tip { display: none !important; }

/* ② 聊天页底部常驻提示条（做窄一点，别像广告横幅） */
.dl-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 6px 12px;
  background: linear-gradient(135deg, #07c160, #04a04e);
  color: #fff;
  text-decoration: none;
  flex: 0 0 auto;
}
.dl-bar-ico { font-size: 13px; line-height: 1; }
.dl-bar-txt { flex: 1 1 auto; min-width: 0; }
.dl-bar-txt b { display: inline; font-size: 12.5px; font-weight: 600; }
.dl-bar-txt i { display: inline; margin-left: 6px; font-style: normal; font-size: 10.5px; opacity: 0.85; }
.dl-bar-go { font-size: 16px; opacity: 0.85; }

/* ③ 相册照片角标：APP 内看原图 */
.wg-app {
  position: absolute;
  left: 0;
  top: 0;
  padding: 2px 6px;
  border-radius: 0 0 8px 0;
  background: rgba(255, 143, 31, 0.92);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.5;
  pointer-events: none;
}
.wg-cell { position: relative; }

/* ④ 第一次进来弹一次的「装 App」引导 */
.dl-mask {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.dl-card {
  width: 100%;
  max-width: 320px;
  background: #fff;
  border-radius: 16px;
  padding: 20px 18px 14px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.dl-card-emoji { font-size: 34px; line-height: 1; }
.dl-card-t { display: block; margin-top: 8px; font-size: 17px; font-weight: 700; color: #191919; }
.dl-card-sub { margin-top: 6px; font-size: 12px; color: #888; line-height: 1.5; }
.dl-card-ok {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 13px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #07c160, #05a352);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(7, 193, 96, 0.3);
}
.dl-card-no {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 10px;
  border: 0;
  background: transparent;
  color: #999;
  font-size: 13px;
}
/* 相册页底部浮出的下载条（翻到底才出现，能关掉） */
.alb-float {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.16);
  animation: albFloatIn 0.22s ease-out;
}
@keyframes albFloatIn {
  from { transform: translateY(14px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.alb-float-txt { flex: 1 1 auto; min-width: 0; }
.alb-float-txt b { display: block; font-size: 13px; font-weight: 600; color: #191919; }
.alb-float-txt i { display: block; font-style: normal; font-size: 10.5px; color: #999; }
.alb-float-go {
  flex: 0 0 auto;
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #07c160, #05a352);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.alb-float-x {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f2f2f2;
  color: #999;
  font-size: 13px;
  line-height: 22px;
}