/* ===== 消息中心 / 关注 / 咨询（移动优先） ===== */
.ms-wrap{ max-width:430px; width:100%; box-sizing:border-box; margin:0 auto; padding:12px 12px 90px; background:#f5f7f5; min-height:100vh; overflow-x:hidden; }
@media (min-width:861px){ .ms-wrap{ max-width:720px; } }

/* 顶部子导航 */
.ms-tabs{ display:flex; gap:6px; background:#fff; border-radius:12px; padding:6px; margin-bottom:12px; box-shadow:0 1px 4px rgba(0,0,0,.04); position:sticky; top:0; z-index:20; }
.ms-tabs a{ flex:1; text-align:center; padding:9px 2px; border-radius:9px; font-size:13.5px; color:#5b6b60; text-decoration:none; position:relative; white-space:nowrap; }
.ms-tabs a.on{ background:#e8f5ec; color:#176e3c; font-weight:600; }
.ms-tabs a .n{ display:inline-block; min-width:16px; height:16px; line-height:16px; padding:0 4px; border-radius:8px; background:#e24c4c; color:#fff; font-size:11px; vertical-align:top; margin-left:3px; }

/* 未读红点 */
.dot{ display:inline-block; width:8px; height:8px; border-radius:50%; background:#e24c4c; }
.ms-badge{ display:inline-block; min-width:17px; height:17px; line-height:17px; padding:0 5px; border-radius:9px; background:#e24c4c; color:#fff; font-size:11px; text-align:center; font-weight:600; }

/* 卡片 */
.ms-card{ background:#fff; border-radius:12px; padding:14px; margin-bottom:12px; box-shadow:0 1px 4px rgba(0,0,0,.04); }
.ms-card h3{ margin:0 0 10px; font-size:15px; color:#176e3c; display:flex; align-items:center; justify-content:space-between; }
.ms-card h3 a{ font-size:12.5px; color:#7d8d82; font-weight:400; text-decoration:none; }

/* 四宫格入口 */
.ms-quad{ display:grid; grid-template-columns:repeat(4,1fr); gap:8px; }
.ms-quad a{ display:block; text-align:center; padding:14px 2px 10px; background:#fff; border-radius:12px; text-decoration:none; color:#3c5145; box-shadow:0 1px 4px rgba(0,0,0,.04); position:relative; }
.ms-quad a .ic{ font-size:22px; display:block; margin-bottom:5px; }
.ms-quad a .lb{ font-size:12px; }
.ms-quad a .bd{ position:absolute; top:6px; right:8px; }

/* 列表行 */
.ms-row{ display:flex; gap:10px; padding:12px 2px; border-bottom:1px solid #f0f3f1; text-decoration:none; color:inherit; }
.ms-row:last-child{ border-bottom:0; }
.ms-row .av{ width:40px; height:40px; border-radius:50%; flex-shrink:0; background:#e8f0ea center/cover no-repeat; display:flex; align-items:center; justify-content:center; font-size:17px; color:#2c6b47; }
.ms-row .bd2{ flex:1; min-width:0; }
.ms-row .ti{ font-size:14.5px; color:#26332c; line-height:1.5; display:flex; gap:6px; align-items:center; }
.ms-row .ti b{ background:#e24c4c; color:#fff; font-size:10.5px; padding:1px 5px; border-radius:4px; font-weight:600; }
.ms-row .ds{ font-size:12.5px; color:#7d8d82; margin-top:3px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ms-row .tm{ font-size:11.5px; color:#a8b4ac; margin-top:4px; }
.ms-row.unread{ background:#fbfdfb; }
.ms-row.unread .ti{ font-weight:600; }

/* 通知类型图标 */
.ms-ico{ width:40px; height:40px; border-radius:11px; display:flex; align-items:center; justify-content:center; font-size:18px; flex-shrink:0; background:#eef6f0; }

/* 空态 */
.ms-empty{ text-align:center; color:#9aa8a0; font-size:13.5px; padding:44px 0; }
.ms-empty .ic{ font-size:34px; display:block; margin-bottom:8px; opacity:.5; }

/* 聊天 */
.chat-box{ background:#f5f7f5; min-height:calc(100vh - 220px); padding-bottom:8px; }
.ms-bubble{ display:flex; gap:8px; margin-bottom:14px; align-items:flex-start; }
.ms-bubble .av{ width:42px; height:42px; border-radius:12px; flex-shrink:0; background:#e8f0ea center/cover no-repeat; display:flex; align-items:center; justify-content:center; font-size:16px; color:#2c6b47; overflow:hidden; box-shadow:0 2px 6px rgba(28,80,50,.16), inset 0 0 0 1px rgba(255,255,255,.55); }
.ms-bubble .txt{ max-width:76%; background:#fff; border-radius:12px; padding:9px 12px; font-size:14px; line-height:1.65; color:#26332c; word-break:break-word; white-space:pre-wrap; box-shadow:0 1px 3px rgba(0,0,0,.05); }
.ms-bubble .tm{ font-size:11px; color:#a8b4ac; margin-top:4px; }
.ms-bubble.me{ flex-direction:row-reverse; }
.ms-bubble.me .txt{ background:#1f8a4c; color:#fff; }
.ms-bubble.me .tm{ text-align:right; }
.ms-bubble.notice .txt{ background:#fffbe8; border:1px solid #f2e3ac; }
/* 公告自己发的也带 .me：淡黄底必须配深色字（否则白字打在淡黄底上看不见） */
.ms-bubble.me.notice .txt{ background:#fffbe8; border:1px solid #f2e3ac; color:#26332c; }
.chat-day{ text-align:center; font-size:11.5px; color:#a8b4ac; margin:10px 0 14px; }

/* 输入栏 */
.ms-inputbar{ position:fixed; left:0; right:0; bottom:0; z-index:40; background:#fff; border-top:1px solid #e6ece8; padding:8px 10px; display:flex; gap:8px; align-items:flex-end; box-shadow:0 -2px 10px rgba(0,0,0,.04); }
.ms-inputbar .inner{ max-width:430px; margin:0 auto; width:100%; display:flex; gap:8px; align-items:flex-end; }
@media (min-width:861px){ .ms-inputbar .inner{ max-width:720px; } }
.ms-inputbar textarea{ flex:1; border:1px solid #e2e9e4; border-radius:20px; padding:9px 14px; font-size:14px; resize:none; height:40px; line-height:1.4; outline:none; font-family:inherit; background:#f7f9f8; }
.ms-inputbar textarea:focus{ border-color:#9ad0ae; background:#fff; }
.ms-inputbar button{ border:0; background:#1f8a4c; color:#fff; border-radius:20px; padding:0 18px; height:40px; font-size:14px; cursor:pointer; flex-shrink:0; }
/* ⚠️ app-shell 类挂在 <html> 上（layout.php 给 documentElement 加类），
   不能写 body.app-shell —— 之前三条规则全部失效，输入栏被底部 Tab 盖住导致无法发私信 */
.app-shell .ms-inputbar{ bottom:56px; z-index:9001; }
/* 会话页：输入栏(57) + 底部Tab(56) 之上再留余量，最后一条消息不被遮住 */
.app-shell .ms-chat{ padding-bottom:150px !important; }

/* 表单 */
.ms-field{ margin-bottom:14px; }
.ms-field label{ display:block; font-size:13.5px; color:#3c5145; margin-bottom:6px; font-weight:600; }
.ms-field input[type=text],.ms-field textarea,.ms-field select{ width:100%; box-sizing:border-box; border:1px solid #e2e9e4; border-radius:10px; padding:11px 12px; font-size:14.5px; outline:none; font-family:inherit; background:#fff; }
.ms-field textarea{ min-height:120px; resize:vertical; line-height:1.7; }
.ms-field input:focus,.ms-field textarea:focus{ border-color:#9ad0ae; }

/* 开关 */
.ms-sw{ display:flex; align-items:center; justify-content:space-between; padding:14px 2px; border-bottom:1px solid #f0f3f1; }
.ms-sw:last-child{ border-bottom:0; }
.ms-sw .lb{ display:block; font-size:14.5px; color:#26332c; }
.ms-sw .ds{ display:block; font-size:12px; color:#93a29a; margin-top:3px; line-height:1.5; }
.ms-sw input[type=checkbox]{ appearance:none; -webkit-appearance:none; width:46px; height:26px; border-radius:13px; background:#d8e1da; position:relative; outline:none; transition:.2s; flex-shrink:0; cursor:pointer; }
.ms-sw input[type=checkbox]:checked{ background:#1f8a4c; }
.ms-sw input[type=checkbox]::after{ content:''; position:absolute; top:3px; left:3px; width:20px; height:20px; border-radius:50%; background:#fff; transition:.2s; box-shadow:0 1px 3px rgba(0,0,0,.2); }
.ms-sw input[type=checkbox]:checked::after{ left:23px; }
.ms-sw input[type=checkbox]:disabled{ opacity:.45; }

/* 状态标签 */
.ms-tag{ display:inline-block; font-size:11.5px; padding:2px 8px; border-radius:10px; background:#eef2ef; color:#66786c; }
.ms-tag.wait{ background:#fff3e0; color:#a86a00; }
.ms-tag.ok{ background:#e8f5ec; color:#1f8a4c; }
.ms-tag.urgent{ background:#fdeaea; color:#d33; font-weight:600; }
.ms-tag.done{ background:#eef2ef; color:#7d8d82; }

/* 关注按钮 */
.ms-follow{ display:inline-flex; align-items:center; gap:4px; border:1px solid #1f8a4c; color:#1f8a4c; background:#fff; border-radius:18px; padding:6px 16px; font-size:13px; cursor:pointer; text-decoration:none; }
.ms-follow.on{ background:#eef6f0; border-color:#cfe3d6; color:#5f7261; }
.ms-follow.solid{ background:#1f8a4c; color:#fff; border-color:#1f8a4c; }

/* 用户主页头部 */
.ms-hero{ background:linear-gradient(135deg,#1f8a4c,#14572f); border-radius:14px; padding:18px; color:#fff; display:flex; gap:14px; align-items:center; }
.ms-hero .av{ width:60px; height:60px; border-radius:50%; background:#fff3 center/cover no-repeat; flex-shrink:0; display:flex; align-items:center; justify-content:center; font-size:24px; color:#1f8a4c; overflow:hidden; }
.ms-hero .nm{ font-size:18px; font-weight:700; }
.ms-hero .sub{ font-size:12.5px; color:#c8e6d5; margin-top:4px; }
.ms-nums{ display:flex; gap:18px; margin-top:10px; font-size:12.5px; color:#d9eee1; }
.ms-nums b{ font-size:15px; color:#fff; }

/* 底部固定操作（咨询提问） */
.ms-cta{ position:fixed; left:0; right:0; bottom:0; z-index:40; background:#fff; border-top:1px solid #e6ece8; padding:10px 12px; }
.ms-cta .inner{ max-width:430px; margin:0 auto; }
.app-shell .ms-cta{ bottom:56px; z-index:9001; }

/* 横幅提示 */
.ms-banner{ display:flex; align-items:center; gap:10px; background:#fff7e6; border:1px solid #f2dcaa; color:#8a5b00; border-radius:12px; padding:12px 14px; margin-bottom:12px; font-size:13px; line-height:1.6; }
.ms-banner a{ color:#8a5b00; font-weight:600; }

/* ===== App 顶栏消息/版本入口 ===== */
.app-msg{ display:flex; align-items:center; justify-content:center; width:32px; height:32px; flex-shrink:0; color:#3c5145; position:relative; text-decoration:none; }
.app-msg .hh-dot{ box-shadow:none; }

/* 2026-11-15：新版本提示弹层 / 安装到桌面引导条样式已按用户要求整体删除。 */

/* 底部 tab 上的红点 */
.hh-dot.tabdot{ top:-3px; right:-10px; box-shadow:none; min-width:15px; height:15px; line-height:15px; font-size:10px; }
.hh-dot.tabdot-mini{ min-width:0; width:8px; height:8px; padding:0; line-height:0; border-radius:50%; top:-2px; right:-4px; }

/* 未读红点基础样式（App 壳页面不输出 layout 内联样式，必须在这里兜底） */
.hh-dot{ position:absolute; top:-2px; right:-8px; min-width:16px; height:16px; line-height:16px; padding:0 4px; border-radius:8px; background:#e24c4c; color:#fff; font-size:10.5px; font-weight:600; text-align:center; box-shadow:0 0 0 2px #14572f; }
.hh-dot-mini{ min-width:0; width:9px; height:9px; padding:0; font-size:0; line-height:0; border-radius:50%; top:-3px; right:-2px; }

/* ==================================================================
   2026-11-06 p5 · 找人聊聊大按钮 / 更多管理折叠 / 微信风格找人页 / 极简聊天页
   ⚠️ .hh-chat-page 由 layout.php 挂在 <html>（documentElement）上，
      选择器一律以 .hh-chat-page 开头，不要把类挂到 body 上再写后代选择器。
   ================================================================== */
:root{
  /* 本次新增组件统一 token，沿用全站绿主题；组件规则内部不出现硬编码色值 */
  --hh-chat-green:       #1f8a4c;
  --hh-chat-green-deep:  #176e3c;
  --hh-chat-green-light: #3cb873;
  --hh-chat-surface:     #ffffff;
  --hh-chat-bg:          #f5f7f5;
  --hh-chat-bg-soft:     #eef3ef;
  --hh-chat-field:       #f1f3f2;
  --hh-chat-ink:         #26332c;
  --hh-chat-sub:         #8a9a90;
  --hh-chat-line:        #edf1ee;
  --hh-chat-focus:       #9ad0ae;
  --hh-chat-on-grad:     rgba(255,255,255,.18);
  --hh-chat-grad:        linear-gradient(135deg,#3cb873 0%,#1f8a4c 52%,#0c6b36 100%);
  --hh-chat-shadow:      0 10px 24px rgba(23,110,60,.28);
  --hh-chat-shadow-press:0 6px 16px rgba(23,110,60,.24);
  --hh-chat-shadow-soft: 0 1px 4px rgba(20,60,38,.06);
  --hh-chat-fs-name:     15.5px;
  --hh-chat-fs-last:     12.5px;
  --hh-chat-r:           16px;
  --hh-chat-gap:         12px;
}

/* ---------- 纯净页：隐藏全站外壳 ----------
   聊天室 (Msg&a=chat) 全屏纯净；找人页 (User&a=search) 保留 App 顶栏
   （logo/站内搜索/头像 + 第二行滚动广告语），与其它页面顶部一致（2026-11-07）。 */
.hh-chat-page .hh-utilbar,
.hh-chat-page .hh-top,
.hh-chat-page .hh-hbad,
.hh-chat-page .hh-homead,
.hh-chat-page .hh-foot,
.hh-chat-page .hh-mnav{ display:none!important; }
/* App 顶栏（含滚动广告语）：仅聊天室隐藏；找人页正常显示 */
.hh-chat-room #hhAppTopbar,
.hh-chat-room .app-channels,
.hh-chat-room .hh-marquee{ display:none!important; }
/* 底部 Tab 栏：仅「聊天室」(Msg&a=chat) 隐藏；找人页(User&a=search) 保留底部 Tab（首页/活动/发布/资讯/我的） */
.hh-chat-room #hhTabbar,
.hh-chat-room .hh-tabbar{ display:none!important; }
/* 找人页保留底部 Tab：给内容留 56px 底部间距，避免被固定 Tab 盖住 */
.hh-chat-page:not(.hh-chat-room) body{ padding-bottom:56px!important; }
.hh-chat-page:not(.hh-chat-room) .content{ padding-bottom:56px; }
/* 2026-11-15：安装引导条已整体删除，此隐藏规则一并移除。 */
.hh-chat-page body{ background:#fff; padding-bottom:0!important; }
.hh-chat-page .content{ max-width:430px; margin:0 auto; padding:0; box-shadow:none; min-height:100vh; }
.hh-chat-page .content.us-page{ background:var(--hh-chat-surface); }
.hh-chat-page .content.ms-chat{ background:var(--hh-chat-bg); }
/* 原 150px 是为底部 Tab 留的余量；纯净页 Tab 已隐藏，输入栏改为 bottom:0 */
.hh-chat-page .ms-inputbar{ bottom:0!important; z-index:9001; }
.hh-chat-page .ms-chat{ padding-top:52px; padding-bottom:100px!important; }
@supports (padding: env(safe-area-inset-bottom)){
  .hh-chat-page .ms-chat{ padding-bottom:calc(100px + env(safe-area-inset-bottom))!important; }
}
/* iOS「添加到主屏幕」：状态栏绿条仍在，顶栏/消息区把内容压回安全区 */
.hh-chat-page.hh-standalone.app-shell .hh-chat-topbar{ height:auto; min-height:48px; padding-top:var(--hh-sb, env(safe-area-inset-top, 0px)); }
.hh-chat-page.hh-standalone.app-shell .ms-chat{ padding-top:calc(52px + var(--hh-sb, env(safe-area-inset-top, 0px)))!important; }

/* ---------- 会员中心：💬 找人聊聊 大按钮 ---------- */
.hh-chat-cta{ display:flex; align-items:center; gap:14px; min-height:78px; margin-bottom:14px; padding:14px 16px; border-radius:18px; background:var(--hh-chat-grad); color:var(--hh-chat-surface); text-decoration:none; box-shadow:var(--hh-chat-shadow); }
.hh-chat-cta:hover,.hh-chat-cta:focus-visible{ color:var(--hh-chat-surface); }
.hh-chat-cta:focus-visible{ outline:3px solid var(--hh-chat-green-light); outline-offset:3px; }
.hh-chat-cta:active{ transform:translateY(1px); box-shadow:var(--hh-chat-shadow-press); }
.hh-chat-cta-ico{ flex:0 0 46px; width:46px; height:46px; border-radius:15px; background:var(--hh-chat-on-grad); display:flex; align-items:center; justify-content:center; font-size:24px; line-height:1; }
.hh-chat-cta-tx{ flex:1; min-width:0; }
.hh-chat-cta-tx b{ display:block; font-size:19px; font-weight:700; letter-spacing:.5px; line-height:1.4; }
.hh-chat-cta-tx small{ display:block; font-size:12.5px; opacity:.92; margin-top:2px; line-height:1.5; }
.hh-chat-cta-arrow{ flex-shrink:0; font-size:28px; line-height:1; opacity:.85; }

/* ---------- 会员中心：更多管理 ▾（原生 details，默认收起、键盘可操作） ---------- */
.hh-more{ margin-bottom:14px; }
.hh-more-sum{ list-style:none; display:flex; align-items:center; gap:10px; min-height:52px; padding:12px 16px; border:1px solid var(--hh-chat-line); border-radius:14px; background:var(--hh-chat-surface); color:var(--hh-chat-green-deep); font-size:15.5px; font-weight:700; cursor:pointer; box-shadow:var(--hh-chat-shadow-soft); }
.hh-more-sum::-webkit-details-marker{ display:none; }
.hh-more-sum::marker{ content:''; }
.hh-more-sum:focus-visible{ outline:3px solid var(--hh-chat-green-light); outline-offset:2px; }
.hh-more-ico{ width:28px; height:28px; flex-shrink:0; border-radius:9px; background:var(--hh-chat-bg-soft); display:flex; align-items:center; justify-content:center; font-size:15px; }
.hh-more-tx{ flex:1; min-width:0; }
.hh-more-arrow{ flex-shrink:0; font-size:13px; color:var(--hh-chat-sub); transition:transform .2s ease; }
.hh-more[open] .hh-more-arrow{ transform:rotate(180deg); }
.hh-more[open] .hh-more-sum{ border-radius:14px 14px 0 0; border-bottom:0; box-shadow:none; }
.hh-more-bd{ padding:12px; border:1px solid var(--hh-chat-line); border-top:0; border-radius:0 0 14px 14px; background:var(--hh-chat-bg); }
.hh-more-bd .grid{ gap:10px; }
.hh-more-bd .grid .g-cell{ min-height:88px; }

/* ---------- 找人页：微信风格顶部（小返回 + 简洁 🔍 搜索框） ---------- */
.us-bar{ display:flex; align-items:center; gap:8px; padding:8px 12px 10px; background:var(--hh-chat-surface); border-bottom:1px solid var(--hh-chat-line); }
.us-back{ flex:0 0 40px; width:40px; height:40px; display:flex; align-items:center; justify-content:center; font-size:28px; line-height:1; color:var(--hh-chat-ink); text-decoration:none; border-radius:12px; }
.us-back:hover,.us-back:focus-visible{ background:var(--hh-chat-bg-soft); }
.us-back:focus-visible{ outline:2px solid var(--hh-chat-focus); outline-offset:-2px; }
.us-search{ position:relative; flex:1; min-width:0; display:flex; align-items:center; }
.us-sr{ position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.us-search-ico{ position:absolute; left:8px; top:50%; transform:translateY(-50%); width:34px; height:34px; padding:7px; border:0; border-radius:8px; background:transparent; color:var(--hh-chat-sub); cursor:pointer; display:flex; align-items:center; justify-content:center; z-index:1; }
.us-search-ico svg{ width:18px; height:18px; display:block; }
.us-search-ico:focus-visible{ outline:2px solid var(--hh-chat-focus); outline-offset:-2px; }
.us-search-input{ width:100%; height:38px; box-sizing:border-box; border:0; border-radius:19px; background:var(--hh-chat-field); color:var(--hh-chat-ink); font-size:14px; font-family:inherit; padding:0 14px 0 42px; outline:none; -webkit-appearance:none; appearance:none; }
.us-search-input::placeholder{ color:var(--hh-chat-sub); }
.us-search-input:focus{ background:var(--hh-chat-bg-soft); box-shadow:inset 0 0 0 1px var(--hh-chat-focus); }
.us-search-input::-webkit-search-cancel-button{ -webkit-appearance:none; }

/* ---------- 找人页：白底细分割线列表行 ---------- */
.us-list{ background:var(--hh-chat-surface); min-height:calc(100vh - 58px); }
.us-row{ display:flex; align-items:center; gap:13px; padding:11px 14px; min-height:80px; border-bottom:1px solid var(--hh-chat-line); text-decoration:none; color:inherit; }
.us-row:last-child{ border-bottom:0; }
.us-row:hover,.us-row:focus-visible{ background:var(--hh-chat-bg-soft); }
.us-row:focus-visible{ outline:2px solid var(--hh-chat-focus); outline-offset:-2px; }
.us-av{ width:56px; height:56px; flex-shrink:0; border-radius:10px; overflow:hidden; background:var(--hh-chat-bg-soft); display:flex; align-items:center; justify-content:center; font-size:22px; color:var(--hh-chat-green); box-shadow:0 2px 6px rgba(28,80,50,.16), inset 0 0 0 1px rgba(255,255,255,.55); }
.us-av img{ width:100%; height:100%; border-radius:inherit; object-fit:cover; display:block; }
/* 头像徽章：会员标识（右上角）+ 星级（左下角），叠在头像框内侧 */
.us-vip{ position:absolute; top:1px; right:1px; z-index:2; background:linear-gradient(135deg,#f6b91a,#e8920a); color:#3a2a00; font-size:11px; font-weight:800; line-height:1; padding:2px 5px; border-radius:8px; box-shadow:0 1px 2px rgba(0,0,0,.25); }
.us-star{ position:absolute; left:1px; bottom:1px; z-index:2; background:rgba(0,0,0,.45); color:#ffd54a; font-size:11px; line-height:1; padding:2px 4px; border-radius:8px; white-space:nowrap; }
/* 昵称后的在线 / 不在线标签 */
.us-online{ flex:0 0 auto; font-size:11px; line-height:1; padding:2px 6px; border-radius:9px; font-weight:600; white-space:nowrap; }
.us-online.on{ background:rgba(31,138,76,.12); color:#1f8a4c; border:1px solid rgba(31,138,76,.35); }
.us-online.off{ background:rgba(0,0,0,.05); color:#9aa8a0; border:1px solid rgba(0,0,0,.08); }
.us-bd{ flex:1; min-width:0; display:block; }
.us-name{ display:flex; align-items:center; gap:6px; font-size:var(--hh-chat-fs-name); font-weight:500; color:var(--hh-chat-ink); line-height:1.5; }
.us-name-tx{ min-width:0; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
/* 在线状态以昵称颜色呈现：在线=红 / 离线=灰（2026-11-08 起不再显示「不在线」标签） */
.us-name-tx.on{ color:#e23c3c; font-weight:700; }
.us-name-tx.off{ color:#9aa8a0; }
/* 关系标识（图标版）：已互相关注 🔗 / 已发出关注 ➤ */
.us-state.usc-ico{ font-size:13px; padding:2px 8px; line-height:1.2; }
.us-heart{ width:15px; height:15px; flex-shrink:0; fill:var(--hh-chat-green); display:block; }
.us-last{ display:block; font-size:var(--hh-chat-fs-last); color:var(--hh-chat-sub); line-height:1.6; margin-top:2px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.us-empty{ text-align:center; color:var(--hh-chat-sub); font-size:13.5px; padding:60px 16px; }

/* ---------- 聊天页：极简返回条 ---------- */
/* 聊天室顶栏：底色与滚动广告条一致（深绿），返回按钮风格与其它返回箭头统一（白色 ‹） */
.hh-chat-topbar{ position:fixed; top:0; left:0; right:0; z-index:30; height:48px; display:flex; align-items:center; background:var(--hh-chat-green-deep); border-bottom:0; }
.hh-chat-topin{ width:100%; max-width:430px; margin:0 auto; padding:0 8px; display:flex; align-items:center; }
.hh-chat-back{ width:44px; height:44px; display:flex; align-items:center; justify-content:center; font-size:32px; line-height:1; color:#fff; text-decoration:none; border-radius:12px; }
.hh-chat-back:hover,.hh-chat-back:focus-visible{ background:rgba(255,255,255,.15); }
/* 顶栏右侧滚动提示（文明聊天）：与广告条同一套无缝滚动（两份内容 translateX(-50%)） */
.chat-mq{ flex:1 1 auto; min-width:0; overflow:hidden; display:flex; align-items:center; height:100%; }
.chat-mq-track{ display:inline-flex; align-items:center; gap:30px; white-space:nowrap; will-change:transform; animation:hhChatMq 22s linear infinite; }
.chat-mq-item{ display:inline-flex; align-items:center; gap:6px; color:#fff; opacity:.95; font-size:13.5px; font-weight:600; letter-spacing:.2px; white-space:nowrap; }
@keyframes hhChatMq{ from{ transform:translateX(0); } to{ transform:translateX(-50%); } }
@media (hover:hover){ .chat-mq:hover .chat-mq-track{ animation-play-state:paused; } }
@media (prefers-reduced-motion:reduce){ .chat-mq-track{ animation:none; } }
.hh-chat-back:focus-visible{ outline:2px solid var(--hh-chat-focus); outline-offset:-2px; }
.hh-chat-page .chat-box{ padding-left:12px; padding-right:12px; }
/* 气泡文字列：.txt 的 max-width:76% 是相对外层匿名 div（flex 子项会被压到约 84px），
   导致纯净页气泡只剩 ~64px、文字竖着断行。这里给文字列解宽，并把上限交回这一层。 */
.hh-chat-page .ms-bubble > div{ min-width:0; max-width:calc(100% - 42px); }
.hh-chat-page .ms-bubble .txt{ max-width:100%; }

/* ---------- 聊天页：输入栏 + 表情条（覆盖 .app-shell 的 bottom:56px 与按钮默认绿色） ---------- */
.hh-chat-page .ms-inputbar{ flex-direction:column; align-items:stretch; gap:0; padding:6px 10px calc(4px + env(safe-area-inset-bottom, 0px)); background:var(--hh-chat-surface); }
.hh-chat-page .ms-inputbar .inner{ max-width:430px; }
.hh-emoji-bar{ max-width:430px; width:100%; margin:4px auto 0; display:flex; gap:2px; overflow-x:auto; -webkit-overflow-scrolling:touch; scrollbar-width:none; }
.hh-emoji-bar::-webkit-scrollbar{ display:none; }
.hh-chat-page .ms-inputbar .hh-emoji{ flex:0 0 auto; min-width:44px; height:44px; padding:0; border:0; border-radius:10px; background:transparent; color:var(--hh-chat-ink); font-size:20px; line-height:1; cursor:pointer; -webkit-tap-highlight-color:transparent; }
.hh-chat-page .ms-inputbar .hh-emoji:hover,.hh-chat-page .ms-inputbar .hh-emoji:focus-visible{ background:var(--hh-chat-bg-soft); }
.hh-chat-page .ms-inputbar .hh-emoji:focus-visible{ outline:2px solid var(--hh-chat-focus); outline-offset:-2px; }

/* ---------- 三档宽度：平板/桌面统一收成 430px 微信列，手机流式铺满 ---------- */
@media (min-width:431px){
  .hh-chat-page .content,.hh-chat-page .ms-inputbar .inner,.hh-emoji-bar,.hh-chat-topin{ max-width:430px; }
  /* 固定顶栏/输入栏也收成同宽居中列，否则桌面会出现「430px 内容 + 通栏底条」的错位 */
  .hh-chat-page .ms-inputbar,.hh-chat-topbar{
    left:50%; right:auto; width:430px; max-width:100%; transform:translateX(-50%);
    border-left:1px solid var(--hh-chat-line); border-right:1px solid var(--hh-chat-line);
  }
}
@media (max-width:359px){
  .hh-chat-cta{ gap:10px; padding:12px; }
  .hh-chat-cta-ico{ flex-basis:40px; width:40px; height:40px; font-size:21px; }
  .hh-chat-cta-tx b{ font-size:17px; }
  .us-row{ gap:10px; padding:10px; }
  .hh-more-bd{ padding:8px; }
  .hh-more-bd .grid{ gap:8px; }
}

/* ============================================================
   2026-11-06 聊天升级
   ① 聊天页改为 flex 全屏：顶栏 / 消息区 / 提示条 / 输入栏依次排列，
      输入栏不再 fixed，消息区占满其上方全部高度并可滚动、内容始终贴底。
   ② 头像右上角按「未读条数」画红圈（找人页 / 会话列表 / 顶栏头像）。
   ③ 附件、提示音、互关 gate、工具弹层等新 UI。
   放在文件末尾以覆盖上面的 fixed 布局与 431px 断点规则。
   ============================================================ */
html.hh-chat-room,html.hh-chat-room body{ height:100%; overflow:hidden; }
html.hh-chat-room body{ display:flex; flex-direction:column; padding:0!important; }
.hh-chat-page .hh-chat-topbar{
  position:relative!important; top:auto!important; left:auto!important; right:auto!important;
  transform:none!important; width:100%!important; max-width:430px!important;
  margin:0 auto; flex:0 0 auto; height:48px;
}
html.hh-chat-page.hh-standalone.app-shell .hh-chat-topbar{ height:auto; min-height:48px; }
.hh-chat-page .content.ms-chat{
  flex:1 1 auto; min-height:0; height:auto; overflow-y:auto; -webkit-overflow-scrolling:touch;
  overscroll-behavior:contain; padding:0 0 10px!important; margin:0 auto;
  width:100%; max-width:430px; background:var(--hh-chat-bg);
}
.hh-chat-page .content.ms-chat .chat-box{
  min-height:100%; padding-left:12px; padding-right:12px; padding-bottom:8px;
  display:flex; flex-direction:column; background:transparent;
}
.hh-chat-page .chat-stream{ margin-top:auto; width:100%; }
.hh-chat-page .chat-day{ flex:0 0 auto; }
.hh-chat-page .ms-bubble{ flex:0 0 auto; }
.hh-chat-page .hh-gate{
  position:relative!important; bottom:auto!important; left:auto!important; right:auto!important;
  transform:none!important; width:100%; max-width:430px; margin:0 auto; flex:0 0 auto;
  display:flex; align-items:center; justify-content:center; gap:10px; padding:9px 12px;
  background:#fff8e6; border-top:1px solid #f2e3ac; color:#8a6a00; font-size:13px; line-height:1.5;
  box-sizing:border-box;
}
.hh-chat-page .hh-gate-tx{ flex:1; min-width:0; }
.hh-chat-page .hh-gate-btn{
  flex:0 0 auto; border:0; background:#1f8a4c; color:#fff; font-size:12.5px; font-weight:600;
  padding:6px 12px; border-radius:99px; text-decoration:none; cursor:pointer; line-height:1.3;
}
.hh-chat-page .hh-gate-btn.muted{ background:#e7ece8; color:#7d8d82; }
.hh-chat-page .ms-inputbar{
  position:relative!important; bottom:auto!important; left:auto!important; right:auto!important;
  transform:none!important; width:100%!important; max-width:430px!important; margin:0 auto!important;
  flex:0 0 auto; z-index:40; box-shadow:0 -2px 10px rgba(0,0,0,.04);
}

/* ② 头像右上角未读条数红圈 */
.us-av,.ms-avwrap,.hh-topava,.app-avawrap{ position:relative; }
.us-badge,.hh-dot.hh-ava-count{
  position:absolute; top:-5px; right:-6px; min-width:18px; height:18px; line-height:18px;
  padding:0 4px; border-radius:10px; background:#e24c4c; color:#fff; font-size:11px;
  font-weight:700; text-align:center; border:2px solid #fff; box-sizing:content-box;
  z-index:2; white-space:nowrap;
}
.hh-topava .hh-dot.hh-ava-count{ top:-3px; right:-5px; }
.us-state{
  flex:0 0 auto; margin-left:auto; font-size:11px; font-weight:500; color:#8a9a90;
  background:var(--hh-chat-bg-soft); border-radius:99px; padding:2px 8px;
}
.us-state.st-mutual{ color:#1f8a4c; background:#e8f5ec; }
.us-state.st-received{ color:#a06a00; background:#fff3d6; }
.us-state.st-sent{ color:#7d8d82; background:#eef2ef; }

/* 已发出关注（对方未同意）：头像整颗置灰；互相关注头像保持原样 */
.us-av.is-gray{ background:#e7ebe8; color:#a5b0a9; }
.us-av.is-gray img{ filter:grayscale(1); opacity:.45; }

/* 列表行右侧时间（今天 HH:MM / 昨天 / MM-DD / YYYY-MM-DD） */
.us-time{ flex:0 0 auto; align-self:flex-start; font-size:11.5px; color:#a8b4ac; margin-top:2px; }
.hh-cache-warn{ color:#d64545!important; font-weight:700; }

/* ③ 输入栏：原生文件控件（不隐藏、不 JS 触发，避免 MIUI/App 权限静默失败） */
.hh-chat-page .ms-inputbar .inner{ gap:6px; max-width:none; }
.hh-file-native{
  flex:0 0 40px; width:40px; height:40px; font-size:0; color:transparent; overflow:hidden;
  border:0; background:transparent; cursor:pointer; -webkit-tap-highlight-color:transparent;
}
.hh-file-native::file-selector-button{
  width:40px; height:40px; padding:0; border:1px solid #cfe3d5; border-radius:12px;
  background:#eef7f1 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f8a4c' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center/21px no-repeat;
  color:transparent; font-size:0; cursor:pointer;
}
.hh-file-native:disabled{ opacity:.4; }
.hh-more-btn{
  flex:0 0 34px; width:34px; height:40px; border:0; border-radius:12px; background:#f1f3f2;
  color:#5b6b60; font-size:20px; line-height:1; cursor:pointer;
}
.hh-chat-page .ms-inputbar textarea:disabled{ background:#f1f3f2; color:#9aa8a0; }
.hh-chat-page .ms-inputbar #chatSend:disabled{ background:#b9c8bf; }
.hh-tool{
  display:grid; grid-template-columns:repeat(2,1fr); gap:7px; padding:2px 0 8px;
}
.hh-tool[hidden]{ display:none!important; }
.hh-tool button{
  border:1px solid var(--hh-chat-line); border-radius:10px; background:var(--hh-chat-bg);
  color:var(--hh-chat-ink); font-size:12.5px; padding:9px 4px; cursor:pointer; font-family:inherit;
}
.hh-tool button:active{ background:var(--hh-chat-bg-soft); }
.hh-tool-note{ grid-column:1/-1; font-size:11.5px; color:var(--hh-chat-sub); line-height:1.6; padding:2px 2px 0; }
.hh-attach-preview{ padding:0 0 6px; }
.hh-attach-preview[hidden]{ display:none!important; }
.hh-at-item{ display:flex; align-items:center; gap:8px; background:var(--hh-chat-bg); border-radius:10px; padding:5px 8px; }
.hh-at-item img{ width:34px; height:34px; object-fit:cover; border-radius:7px; }
.hh-at-ico{ width:34px; height:34px; display:flex; align-items:center; justify-content:center; font-size:18px; }
.hh-at-nm{ flex:1; min-width:0; font-size:12.5px; color:var(--hh-chat-ink); overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.hh-at-x{ border:0; background:transparent; font-size:20px; color:var(--hh-chat-sub); cursor:pointer; }
/* ↺ 转正（2026-11-10）：横拍存歪的照片，发送前一键旋转 90° 后重传替换 */
.hh-at-rot{ border:1px solid var(--hh-chat-sub); background:transparent; color:var(--hh-chat-sub); width:24px; height:24px; line-height:22px; border-radius:50%; font-size:14px; cursor:pointer; padding:0; flex:0 0 24px; -webkit-tap-highlight-color:transparent; }
.hh-at-rot:active{ background:rgba(127,127,127,.18); }

/* 附件气泡 */
.hh-chat-page .ms-bubble .av img{ width:100%; height:100%; object-fit:cover; display:block; border-radius:inherit; }
.hh-chat-page .ms-bubble .txt.att-img,.hh-chat-page .ms-bubble .txt.att-file{ padding:5px; background:transparent!important; box-shadow:none; border:0; }
.hh-chat-page .ms-bubble.me .txt.att-img,.hh-chat-page .ms-bubble.me .txt.att-file{ background:transparent!important; }
.hh-chat-page .txt.att-img img,.hh-chat-page .txt.att-img video,.hh-chat-page img.att-local{
  display:block; max-width:100%; max-height:210px; width:auto; height:auto;
  border-radius:10px; background:#eef2ef;
}
.hh-chat-page .txt.att-file a{ display:flex; align-items:center; gap:8px; background:#fff; border-radius:10px; padding:9px 10px; text-decoration:none; color:var(--hh-chat-ink); }
.hh-chat-page .txt.att-file .ic{ font-size:19px; }
.hh-chat-page .txt.att-file .nm{ flex:1; min-width:0; font-size:12.5px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.hh-chat-page .txt.att-file small{ font-size:11px; color:var(--hh-chat-sub); }
.hh-chat-page .att-local-tip{ font-size:12.5px; color:var(--hh-chat-sub); background:#fff; border-radius:10px; padding:9px 11px; }

/* 工具弹层 / 轻提示 */
.hh-sheet{
  position:fixed; inset:0; z-index:9997; background:rgba(10,26,18,.42);
  display:flex; align-items:flex-end; justify-content:center; padding:14px;
}
.hh-sheet[hidden]{ display:none!important; }
.hh-sheet-bd{
  width:100%; max-width:430px; background:#fff; border-radius:16px; padding:16px 15px 14px;
  box-shadow:0 14px 40px rgba(0,0,0,.2); animation:hhSheetIn .18s ease-out;
}
@keyframes hhSheetIn{ from{ transform:translateY(18px); opacity:.6; } to{ transform:none; opacity:1; } }
.hh-sheet-bd h3{ margin:0 0 8px; font-size:16px; color:var(--hh-chat-green-deep); }
.hh-sheet-bd p{ margin:0 0 12px; font-size:12.5px; color:var(--hh-chat-sub); line-height:1.7; }
.hh-sheet-list{ display:flex; flex-direction:column; gap:7px; }
.hh-sheet-list button{
  border:1px solid var(--hh-chat-line); border-radius:10px; background:var(--hh-chat-bg);
  padding:11px 12px; font-size:14px; color:var(--hh-chat-ink); text-align:left; cursor:pointer; font-family:inherit;
}
.hh-sheet-list button.on{ border-color:var(--hh-chat-green); color:var(--hh-chat-green-deep); background:#e8f5ec; font-weight:600; }
.hh-sheet-list button.danger{ color:#c0392b; border-color:#f3c9c4; background:#fff5f3; }
.hh-sheet-x{ margin-top:11px; width:100%; border:0; border-radius:10px; background:#f1f3f2; padding:11px; font-size:14px; color:var(--hh-chat-ink); cursor:pointer; font-family:inherit; }
.hh-toast{
  position:fixed; left:50%; top:64px; transform:translateX(-50%); z-index:2147483100;
  max-width:min(88vw,360px); padding:9px 14px; border-radius:12px;
  background:rgba(28,48,36,.92); color:#fff; font-size:13px; line-height:1.6;
  text-align:center; box-shadow:0 8px 24px rgba(0,0,0,.22); pointer-events:none;
  opacity:0; transition:opacity .2s ease;
}
.hh-toast.on{ opacity:1; }
.hh-toast[hidden]{ display:none!important; }

/* 通知设置：提示音列表 / 附件说明；互关请求页 */
.tn-list{ margin:2px 0 4px; }
.tn-item{ display:flex; align-items:center; gap:10px; padding:10px 2px; border-bottom:1px solid #f0f3f1; cursor:pointer; }
.tn-item:last-child{ border-bottom:0; }
.tn-item input[type=radio]{ appearance:none; -webkit-appearance:none; width:19px; height:19px; flex:0 0 19px; border:2px solid #cfd8d2; border-radius:50%; outline:none; }
.tn-item input[type=radio]:checked{ border-color:#1f8a4c; background:radial-gradient(circle,#1f8a4c 0 45%,transparent 47%); }
.tn-tx{ flex:1; min-width:0; }
.tn-tx b{ display:block; font-size:14px; color:#26332c; }
.tn-tx small{ display:block; font-size:11.5px; color:#93a29a; margin-top:2px; }
.tn-try{ flex:0 0 auto; border:1px solid #cfe3d5; background:#eef7f1; color:#176e3c; font-size:12px; padding:6px 12px; border-radius:99px; cursor:pointer; }
.tn-note{ font-size:12px; color:#8a9a90; line-height:1.7; padding:9px 2px 2px; }
.rq-row{ display:flex; align-items:center; gap:8px; padding:10px 0; border-bottom:1px solid #f0f3f1; }
.rq-row:last-child{ border-bottom:0; }
.rq-av{ width:42px; height:42px; flex:0 0 42px; border-radius:50%; object-fit:cover; background:#eef2ef; }
.rq-bd{ flex:1; min-width:0; }
.rq-bd b{ display:block; font-size:14px; color:#26332c; }
.rq-bd small{ display:block; font-size:11.5px; color:#93a29a; margin-top:3px; }
.rq-btn{ flex:0 0 auto; border:0; border-radius:99px; padding:7px 13px; font-size:12.5px; cursor:pointer; }
.rq-btn.ok{ background:#1f8a4c; color:#fff; }
.rq-btn.no{ background:#eef2ef; color:#6b7b70; }
.rq-wait{ flex:0 0 auto; font-size:12px; color:#a8b4ac; }
/* App 壳头像红圈：压过 appshell.css 里绿色描边的旧角标规则 */
.app-shell .app-avawrap .hh-dot.hh-ava-count{ top:-4px; right:-5px; box-shadow:0 0 0 2px #fff; }

/* 未互关：明确锁定输入区，不再出现「看着能打字、点了却发不出去」的矛盾 */
.hh-chat-page .ms-inputbar.is-locked .hh-emoji-bar{ display:none; }
.hh-chat-page .ms-inputbar.is-locked .inner{ opacity:.74; }
.hh-chat-page .ms-inputbar.is-locked .hh-more-btn{ opacity:.5; }
.hh-chat-page .ms-inputbar.is-locked textarea{ background:#f1f3f2; color:#9aa8a0; cursor:not-allowed; }
.hh-chat-page .ms-inputbar.is-locked #chatSend{ background:#c4d0c8; color:#fff; cursor:not-allowed; }
.hh-chat-page .hh-gate-btn{ white-space:nowrap; }
.hh-chat-page .hh-gate-tx{ font-size:12.5px; line-height:1.45; }

/* ============ 2026-11-07 前台作者名片 / 提示音音量 / 互关请求红圈 ============ */
[data-author-id]{ cursor:pointer; }
[data-author-id]:active{ opacity:.72; }
.ha-mask{ position:fixed; inset:0; z-index:12000; background:rgba(18,32,24,.46); display:flex; align-items:center; justify-content:center; padding:18px; }
.ha-mask[hidden]{ display:none; }
.ha-card{ position:relative; width:100%; max-width:330px; background:#fff; border-radius:18px; padding:20px 18px 16px; box-shadow:0 18px 48px rgba(0,0,0,.22); text-align:center; animation:haIn .18s ease-out; }
@keyframes haIn{ from{ transform:translateY(12px) scale(.97); opacity:0; } to{ transform:none; opacity:1; } }
.ha-x{ position:absolute; right:10px; top:6px; border:0; background:none; font-size:24px; line-height:1; color:#93a29a; cursor:pointer; padding:4px 8px; }
.ha-top{ display:flex; align-items:center; gap:12px; text-align:left; margin:6px 0 12px; }
.ha-ava{ width:56px; height:56px; flex:0 0 56px; border-radius:50%; object-fit:cover; background:#eef2ef; border:1px solid #e2ece6; }
.ha-tx{ min-width:0; }
.ha-name{ display:block; font-size:16px; color:#26332c; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ha-sub{ display:block; font-size:12px; color:#93a29a; margin-top:4px; }
.ha-state{ font-size:12.5px; color:#6b7b70; line-height:1.6; background:#f4f8f5; border-radius:10px; padding:9px 10px; margin-bottom:12px; }
.ha-ok{ color:#1f8a4c; font-weight:600; }
.ha-btns{ display:flex; gap:8px; }
.ha-btn{ flex:1; min-width:0; display:inline-flex; align-items:center; justify-content:center; padding:10px 6px; border-radius:99px; font-size:13.5px; text-decoration:none; cursor:pointer; border:1px solid #cfe3d5; background:#fff; color:#1f8a4c; }
.ha-btn.pri{ background:#1f8a4c; border-color:#1f8a4c; color:#fff; }
.ha-btn:disabled{ background:#f1f3f2; border-color:#e8eeea; color:#a8b4ac; cursor:default; }
.ha-profile{ display:block; margin-top:12px; font-size:12.5px; color:#8a9a90; text-decoration:none; }
.ha-toast{ position:fixed; left:50%; top:12%; transform:translate(-50%,-8px); z-index:13000; max-width:82vw; padding:10px 16px; border-radius:10px; background:rgba(28,48,36,.92); color:#fff; font-size:13px; line-height:1.5; opacity:0; pointer-events:none; transition:opacity .2s,transform .2s; }
.ha-toast.on{ opacity:1; transform:translate(-50%,0); }

/* 音量滑动条（通知设置 / 聊天页提示音弹层共用） */
.hh-vol{ padding:10px 2px 2px; }
.hh-vol-row{ display:flex; align-items:center; gap:10px; }
.hh-vol-row input[type=range]{ flex:1; min-width:0; -webkit-appearance:none; appearance:none; height:6px; border-radius:99px; background:#e2e9e4; outline:none; }
.hh-vol-row input[type=range]::-webkit-slider-thumb{ -webkit-appearance:none; appearance:none; width:22px; height:22px; border-radius:50%; background:#fff; border:2px solid #1f8a4c; box-shadow:0 1px 4px rgba(0,0,0,.16); cursor:pointer; }
.hh-vol-row input[type=range]::-moz-range-thumb{ width:20px; height:20px; border-radius:50%; background:#fff; border:2px solid #1f8a4c; cursor:pointer; }
.hh-vol-num{ flex:0 0 48px; text-align:right; font-size:14px; font-weight:700; color:#1f8a4c; }
.hh-vol-mark{ display:flex; justify-content:space-between; font-size:11px; color:#a8b4ac; padding:4px 58px 0 2px; }
.hh-vol-tip{ font-size:11.5px; color:#93a29a; line-height:1.6; padding:2px 2px 0; }

/* 找人页：互关请求区（收到的可一键同意，发出的显示「已请求」） */
.us-req{ margin:0 0 10px; background:#fff; border:1px solid #eef2ef; border-radius:14px; padding:10px 12px 6px; }
.us-req h4{ margin:0 0 4px; font-size:13px; color:#1f8a4c; display:flex; align-items:center; gap:6px; }
.us-req h4 .us-req-n{ background:#e14b3b; color:#fff; font-size:11px; min-width:18px; height:18px; border-radius:9px; display:inline-flex; align-items:center; justify-content:center; padding:0 5px; }
.us-req .rq-row{ padding:8px 0; }
.us-req-empty{ font-size:12px; color:#a8b4ac; padding:6px 0 8px; }
/* 会员中心「找人聊聊」按钮占位（已移除绿色横幅，保留类名语义不破坏其它引用） */
.hh-chat-cta{ position:relative; }

/* 2026-11-08：全站返回箭头统一换成用户提供的弯尾左箭头（白色透明 / 无底色），
   只影响移动端（PC 仍输出原来的 ‹）。 */
.hh-chat-back .hh-back-arw{ width:30px; height:30px; flex:0 0 30px; }
.us-back .hh-back-arw{ width:26px; height:26px; flex:0 0 26px; color:#1f8a4c; }
.hh-chat-back:focus-visible .hh-back-arw,
.us-back:focus-visible .hh-back-arw{ opacity:.7; }

/* ============================================================
   2026-11-08 App 聊天主界面美化（所有规则都带 .app-shell，PC 端零影响）
   ① 深绿顶栏 → 浅色磨砂 + 对方头像昵称；绿色滚动公约条移到「我的 → 聊天设置」
   ② 气泡 / gate / 输入栏 / 工具面板精致化
   ③ ＋ 按钮 → 随拍同款全屏相机（相机层样式在 skin/chatcam.css）
   ============================================================ */
.app-shell.hh-chat-page .hh-chat-topbar.is-app{
  background:rgba(255,255,255,.88);
  -webkit-backdrop-filter:blur(16px) saturate(1.25); backdrop-filter:blur(16px) saturate(1.25);
  border-bottom:1px solid rgba(31,138,76,.12); box-shadow:0 2px 16px rgba(28,80,50,.07);
}
.app-shell.hh-chat-page .hh-chat-topbar.is-app .hh-chat-back{ color:#1f6b3f; }
.app-shell.hh-chat-page .hh-chat-topbar.is-app .hh-chat-back:hover,
.app-shell.hh-chat-page .hh-chat-topbar.is-app .hh-chat-back:focus-visible{ background:rgba(31,138,76,.09); }
.app-shell.hh-chat-page .hh-chat-who{ flex:1 1 auto; min-width:0; display:flex; align-items:center; gap:9px; }
.app-shell.hh-chat-page .hh-chat-who-av{
  flex:0 0 40px; width:40px; height:40px; border-radius:12px; overflow:hidden;
  background-color:#e4f2e9; background-size:cover; background-position:center;
  display:flex; align-items:center; justify-content:center;
  color:#1f8a4c; font-size:15px; font-weight:700;
  box-shadow:0 2px 6px rgba(28,80,50,.20), inset 0 0 0 1px rgba(255,255,255,.55);
}
.app-shell.hh-chat-page .hh-chat-who-tx{ min-width:0; display:flex; flex-direction:column; line-height:1.25; }
.app-shell.hh-chat-page .hh-chat-who-tx b{
  font-size:15px; font-weight:700; color:#1d3b2a;
  overflow:hidden; white-space:nowrap; text-overflow:ellipsis;
}
/* 顶栏第二行：在线状态 + 互关徽章（服务端渲染，badges.js 每 30 秒刷新文字） */
.app-shell.hh-chat-page .hh-chat-sub{
  display:flex; align-items:center; gap:6px; min-width:0;
  font-size:10.5px; color:#7d9488; margin-top:3px;
  overflow:hidden; white-space:nowrap; text-overflow:ellipsis;
}
.app-shell.hh-chat-page .hh-chat-sub .hh-oline{ font-size:10.5px; padding:2px 7px; flex:0 0 auto; }
.app-shell.hh-chat-page .hh-chat-sub .hh-mutual-badge{ flex:0 0 auto; }
.app-shell.hh-chat-page .hh-chat-topbar.is-app .hh-more-btn{
  flex:0 0 36px; width:36px; height:36px; border-radius:50%;
  background:none; color:#1f8a4c; font-size:20px;
}
/* ⋯ 后的「退出聊天」：纯文字链接，回个人后台「我的」（返回靠系统返回 / 底部 Tab） */
.app-shell.hh-chat-page .hh-chat-topbar.is-app .hh-chat-exit{
  flex:0 0 auto; margin-left:2px; padding:8px 10px 8px 4px;
  font-size:13px; font-weight:600; color:#1f8a4c; text-decoration:none;
  border-radius:10px; -webkit-tap-highlight-color:transparent;
}
.app-shell.hh-chat-page .hh-chat-topbar.is-app .hh-chat-exit:active{ background:rgba(31,138,76,.09); }

/* 消息区：淡绿环保渐变 + 更精致的气泡 */
.app-shell.hh-chat-room .content.ms-chat{
  background:radial-gradient(120% 55% at 50% 0%, rgba(226,244,232,.9), rgba(255,255,255,0) 72%),
             linear-gradient(180deg,#f5fbf6 0%,#eef7f0 100%);
}
.app-shell.hh-chat-room .chat-day{
  align-self:center; margin:12px 0 16px; padding:3px 12px; border-radius:99px;
  background:rgba(255,255,255,.72); color:#8aa397; font-size:11px; letter-spacing:.3px;
  box-shadow:0 1px 5px rgba(28,80,50,.05);
}
.app-shell.hh-chat-room .ms-bubble .av{
  width:42px; height:42px; border-radius:12px; box-shadow:0 0 0 2px #fff,0 3px 9px rgba(28,80,50,.18), inset 0 0 0 1px rgba(255,255,255,.5);
}
.app-shell.hh-chat-room .ms-bubble .txt{
  border-radius:16px 16px 16px 5px; padding:9px 13px;
  background:rgba(255,255,255,.96); color:#263a2e; font-size:14px; line-height:1.6;
  box-shadow:0 3px 12px rgba(28,80,50,.08),0 1px 2px rgba(28,80,50,.05);
  border:1px solid rgba(31,138,76,.06);
}
.app-shell.hh-chat-room .ms-bubble.me .txt{
  border-radius:16px 16px 5px 16px;
  background:linear-gradient(135deg,#2ba462,#1f8a4c); color:#fff; border-color:transparent;
  box-shadow:0 4px 14px rgba(31,138,76,.24);
}
.app-shell.hh-chat-room .ms-bubble .tm{ font-size:10.5px; color:#a2b3a8; margin-top:5px; }

/* 互关提示条：黄色横条 → 柔和淡绿卡片 */
.app-shell.hh-chat-room .hh-gate{
  background:rgba(255,255,255,.9); border-top:1px solid rgba(31,138,76,.1);
  color:#4c6657; font-size:12.5px; padding:9px 14px;
}
.app-shell.hh-chat-room .hh-gate-btn{
  background:linear-gradient(135deg,#2ba462,#1f8a4c); border-radius:99px;
  box-shadow:0 2px 8px rgba(31,138,76,.22);
}

/* 输入栏：磨砂玻璃 + 圆角输入框 + 胶囊发送 */
.app-shell.hh-chat-room .ms-inputbar{
  background:rgba(255,255,255,.9);
  -webkit-backdrop-filter:blur(16px) saturate(1.2); backdrop-filter:blur(16px) saturate(1.2);
  border-top:1px solid rgba(31,138,76,.1); box-shadow:0 -4px 18px rgba(28,80,50,.07);
  padding:8px 12px calc(6px + env(safe-area-inset-bottom, 0px));
}
.app-shell.hh-chat-room .ms-inputbar textarea{
  background:#f3f8f5; border:1px solid rgba(31,138,76,.13); border-radius:9px;
  padding:9px 13px; font-size:14px; color:#263a2e;
}
.app-shell.hh-chat-room .ms-inputbar textarea:focus{ background:#fff; border-color:#8fd0a9; }
.app-shell.hh-chat-room .ms-inputbar #chatSend{
  border-radius:9px; padding:0 17px; font-weight:600; letter-spacing:.5px;
  background:linear-gradient(135deg,#2ba462,#1f8a4c); box-shadow:0 3px 10px rgba(31,138,76,.24);
}
/* ＋ 号：去掉外面的圆圈底，只留一颗图标 */
.app-shell.hh-chat-room .ms-inputbar .hh-plus-btn{
  flex:0 0 34px; width:34px; height:40px; padding:0; border-radius:0;
  border:0; background:transparent; color:#1f8a4c;
  display:flex; align-items:center; justify-content:center;
  box-shadow:none; cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}
.app-shell.hh-chat-room .ms-inputbar .hh-plus-btn svg{ width:25px; height:25px; display:block; }
.app-shell.hh-chat-room .ms-inputbar .hh-plus-btn:active{ transform:scale(.94); }
.app-shell.hh-chat-room .ms-inputbar .hh-plus-btn:disabled{ opacity:.45; }
.app-shell.hh-chat-room .hh-emoji-bar{ margin-top:6px; }
.app-shell.hh-chat-room .ms-inputbar .hh-emoji{ border-radius:12px; }

/* ⋯ 会话操作：白色卡片化（只留互关请求 / 清空本对话） */
.app-shell.hh-chat-room .hh-tool{
  background:#fff; border:1px solid rgba(31,138,76,.1); border-radius:14px;
  padding:10px; margin-bottom:8px; box-shadow:0 3px 12px rgba(28,80,50,.07);
}
.app-shell.hh-chat-room .hh-tool button{
  border-radius:11px; border:1px solid rgba(31,138,76,.12);
  background:#f4faf6; color:#2f5940; font-size:12.5px; padding:10px 4px;
}
.app-shell.hh-chat-room .hh-tool-note{ color:#8aa397; font-size:11px; padding-top:2px; }

/* 找人页（聊天入口）：搜索栏磨砂、联系人改成轻卡片 */
.app-shell.hh-chat-page:not(.hh-chat-room) .content.us-page{
  background:linear-gradient(180deg,#f3faf5 0%,#eef7f0 100%);
}
.app-shell.hh-chat-page:not(.hh-chat-room) .us-bar{
  background:rgba(255,255,255,.88);
  -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(31,138,76,.1); padding:10px 12px 12px;
}
.app-shell.hh-chat-page:not(.hh-chat-room) .us-search-input{
  background:#f1f7f3; box-shadow:inset 0 1px 3px rgba(28,80,50,.06);
  border:1px solid rgba(31,138,76,.1);
}
.app-shell.hh-chat-page:not(.hh-chat-room) .us-list{ background:transparent; padding:10px 10px 18px; }
.app-shell.hh-chat-page:not(.hh-chat-room) .us-row{
  background:rgba(255,255,255,.94); border:1px solid rgba(31,138,76,.07);
  border-radius:16px; margin-bottom:10px; padding:10px 12px; min-height:68px;
  box-shadow:0 3px 12px rgba(28,80,50,.05);
}
.app-shell.hh-chat-page:not(.hh-chat-room) .us-row:last-child{ margin-bottom:0; }
.app-shell.hh-chat-page:not(.hh-chat-room) .us-av{ box-shadow:0 2px 6px rgba(28,80,50,.16), inset 0 0 0 1px rgba(255,255,255,.55); }

/* ============================================================
   2026-11-08 聊天室背景（在「我的 → 💬 聊天设置」里选）
   ① 预设只覆盖 --hh-chat-bg / --hh-chat-bg-soft，气泡与输入栏自动跟随
   ② 相册自定义图走 --hh-chat-bg-photo，由 layout.php 首帧注入（dataURL）
   ③ 所有选择器带 .app-shell，PC 端零影响
   ============================================================ */
html.app-shell.hh-chat-bg-0{ --hh-chat-bg:#f5f7f5; --hh-chat-bg-soft:#eef3ef; }
html.app-shell.hh-chat-bg-1{ --hh-chat-bg:#fbfcfb; --hh-chat-bg-soft:#f0f3f0; }
html.app-shell.hh-chat-bg-2{ --hh-chat-bg:#eaf3fb; --hh-chat-bg-soft:#dbeaf8; }
html.app-shell.hh-chat-bg-3{ --hh-chat-bg:#faf4e8; --hh-chat-bg-soft:#f2e6d0; }
html.app-shell.hh-chat-bg-4{ --hh-chat-bg:#e6f1e9; --hh-chat-bg-soft:#d3e9da; }
html.app-shell.hh-chat-bg-5{ --hh-chat-bg:#1c2b24; --hh-chat-bg-soft:#293b30; }
html.app-shell.hh-chat-bg-custom{ --hh-chat-bg:#eef3ef; --hh-chat-bg-soft:#e3ece5; }
.app-shell.hh-chat-page .content.ms-chat{
  background-color:var(--hh-chat-bg);
  background-image:var(--hh-chat-bg-photo,none);
  background-size:cover; background-position:center; background-repeat:no-repeat;
}
/* 水墨夜：气泡仍是白底深字，只把时间戳/日期分隔符提亮，保证可读 */
.app-shell.hh-chat-bg-5.hh-chat-page .ms-bubble .tm,
.app-shell.hh-chat-bg-custom.hh-chat-page .ms-bubble .tm{ color:#b6c8ba; }
.app-shell.hh-chat-bg-5.hh-chat-page .chat-day{ color:#c7d9cc; }
/* 聊天室 ⋯ 面板里唯一的「去后台设置」链接，与按钮同款（App 专享） */
.hh-tool a.hh-tool-link{
  display:flex; align-items:center; justify-content:center; text-align:center; text-decoration:none;
  border:1px solid var(--hh-chat-line); border-radius:10px; background:var(--hh-chat-bg);
  color:var(--hh-chat-ink); font-size:12.5px; padding:9px 4px; font-family:inherit;
}
.app-shell.hh-chat-room .hh-tool a.hh-tool-link{
  border-radius:11px; border:1px solid rgba(31,138,76,.12);
  background:#f4faf6; color:#2f5940; font-size:12.5px; padding:10px 4px;
}


/* ============ 语音消息（2026-11-08） ============ */
/* 聊天语音条：窄条 ▶ + 时长，点击播放 */
.txt.att-voice{ display:inline-flex; align-items:center; gap:5px; cursor:pointer; user-select:none;
  background:rgba(31,138,76,.10); border:1px solid rgba(31,138,76,.22); border-radius:99px; padding:6px 12px; }
.ms-bubble.me .txt.att-voice{ background:rgba(255,255,255,.18); border-color:rgba(255,255,255,.35); }
.txt.att-voice .v-ic{ font-size:13px; color:#1f8a4c; line-height:1; }
.ms-bubble.me .txt.att-voice .v-ic{ color:#fff; }
.txt.att-voice .v-sec{ font-size:12.5px; opacity:.8; font-weight:600; }
.txt.att-voice.playing{ animation:hhvpulse 1s ease-in-out infinite; }
@keyframes hhvpulse{ 0%,100%{ transform:scale(1);} 50%{ transform:scale(1.02);} }
/* 输入栏麦克风按钮已移除（2026-11-08）：语音入口改为「＋ → 语音」面板 */

/* ＋ 多功能面板：照片 / 视频 / 文件 / 语音 */
.hh-plus-sheet{ position:fixed; inset:0; z-index:2147482950; background:rgba(8,26,16,.5);
  display:flex; flex-direction:column; justify-content:flex-end; backdrop-filter:blur(2px); }
.hh-plus-sheet[hidden]{ display:none; }
.hh-plus-bd{ display:grid; grid-template-columns:repeat(4,1fr); gap:10px;
  background:#fff; border-radius:18px 18px 0 0; padding:20px 14px 10px; }
.hh-ps{ position:relative; border:0; background:#f3f7f4; border-radius:14px; padding:14px 4px 12px;
  display:flex; flex-direction:column; align-items:center; gap:8px; font-size:12.5px; color:#33513f;
  font-weight:600; cursor:pointer; font-family:inherit; -webkit-tap-highlight-color:transparent; }
.hh-ps i{ font-style:normal; font-size:26px; line-height:1; }
.hh-ps:active{ background:#e7f1ea; }
.hh-ps:disabled{ opacity:.45; }
/* 「文件」用真实原生 input 铺满整格（用户直接点它，非 JS 触发，App WebView 也能弹选择器） */
.hh-ps-file input{ position:absolute; inset:0; width:100%; height:100%; opacity:0; cursor:pointer; }
.hh-ps-cancel{ border:0; background:#fff; border-top:1px solid #eef2ef; color:#5f7261;
  font-size:15px; padding:14px 14px calc(14px + env(safe-area-inset-bottom, 0px));
  cursor:pointer; font-family:inherit; -webkit-tap-highlight-color:transparent; }
.hh-ps-cancel:active{ background:#f5f8f6; }

/* 语音录音浮层（＋ → 语音） */
.hh-rec-panel{ position:fixed; inset:0; z-index:2147483000; background:rgba(10,35,22,.55);
  display:flex; align-items:center; justify-content:center; backdrop-filter:blur(3px); }
.hh-rec-panel[hidden]{ display:none; }
.hh-rec-in{ width:min(320px,86vw); background:#fff; border-radius:18px; padding:22px 18px 16px;
  text-align:center; box-shadow:0 12px 40px rgba(0,0,0,.25); }
.hh-rec-hint{ font-size:13.5px; color:#42604f; margin-bottom:16px; }
.hh-rec-btn{ width:74px; height:74px; border-radius:50%; border:0; cursor:pointer; margin:0 auto;
  background:radial-gradient(circle at 34% 30%, #37a862, #176e3c); display:flex; align-items:center; justify-content:center;
  box-shadow:0 6px 18px rgba(31,138,76,.4); }
.hh-rec-btn i{ display:block; width:24px; height:24px; border-radius:5px; background:#fff; }
.hh-rec-btn.rec i{ border-radius:50%; width:22px; height:22px; background:#ff3b5c; animation:hhrecblink 1.1s ease-in-out infinite; }
@keyframes hhrecblink{ 0%,100%{ opacity:1;} 50%{ opacity:.35;} }
.hh-rec-tm{ font-size:22px; font-weight:700; color:#176e3c; margin:14px 0 12px; font-variant-numeric:tabular-nums; }
.hh-rec-ops{ display:flex; justify-content:center; }
.hh-rec-cancel{ border:1px solid #d7e0da; background:#f5f8f6; color:#5f7261; font-size:13.5px;
  padding:8px 26px; border-radius:12px; cursor:pointer; }

/* ---------- 关系徽章（圈+箭头 SVG 版，2026-11-09）：互关 / 我关注的 / 关注我的 ---------- */
.us-state .hh-fi{ width:14px; height:14px; display:block; }
.us-state.st-mutual{ color:#1f8a4c; background:#e8f5ec; }
.us-state.st-followed{ color:#4f8a6b; background:#eef4ef; }
.us-state.st-fans{ color:#c07a00; background:#fff3d6; }

/* ---------- 找人页：搜索框下方关系筛选条 ---------- */
.us-tabs{ display:flex; gap:8px; padding:10px 14px 2px; flex-wrap:wrap; }
.us-tab{ flex:0 0 auto; font-size:13px; line-height:1; padding:7px 13px; border-radius:99px;
  background:var(--hh-chat-surface,#fff); color:#5c6f64; text-decoration:none;
  border:1px solid var(--hh-chat-line,#e2ece6); font-weight:500; white-space:nowrap; }
.us-tab:active{ transform:scale(.96); }
.us-tab.on{ background:#1f8a4c; border-color:#1f8a4c; color:#fff; font-weight:600;
  box-shadow:0 3px 10px rgba(31,138,76,.28); }

/* ---------- 黑名单行「移出」按钮 ---------- */
.us-unblk{ flex:0 0 auto; border:1px solid #f0b9b3; background:#fff; color:#c2493f;
  font-size:12.5px; font-weight:600; line-height:1; padding:7px 12px; border-radius:99px; cursor:pointer; }
.us-unblk:active{ background:#fdecea; }

/* 2026-11-10：全站停用「随机头像」兜底（avatarfix.js 已撤），角标样式一并移除 */

/* ===== 2026-11-16 恢复：升级提示弹框 + 安装引导条（九修/十修系误诊删除，真凶为 PC 弹层按钮）===== */
#hhVerMask{ display:none; position:fixed; inset:0; z-index:10001; background:rgba(9,28,17,.55);
  align-items:center; justify-content:center; padding:18px; }
#hhVerMask.on{ display:flex; }
#hhVerMask .hh-verbox{ width:100%; max-width:340px; background:#fff; border-radius:14px;
  box-shadow:0 20px 60px rgba(0,0,0,.3); overflow:hidden; text-align:center; }
#hhVerMask .hh-ver-hd{ padding:20px 20px 4px; font-size:17px; font-weight:800; color:#176e3c; }
#hhVerMask .hh-ver-bd{ padding:6px 22px 16px; font-size:13px; color:#5c6f64; line-height:1.8; }
#hhVerMask .hh-ver-ft{ display:flex; border-top:1px solid #e6efe9; }
#hhVerMask .hh-ver-ft button{ flex:1; border:0; background:#fff; font-size:15px; padding:13px 0; cursor:pointer; }
#hhVerMask .hh-ver-later{ color:#8a9a90; border-right:1px solid #e6efe9 !important; }
#hhVerMask .hh-ver-upd{ color:#fff; background:#1f8a4c !important; font-weight:700; }
#hhInstBar{ display:none; position:fixed; left:12px; right:12px; bottom:14px; z-index:9999;
  align-items:center; gap:10px; background:#fff; border:1px solid #d8e6dc; border-radius:12px;
  box-shadow:0 10px 30px rgba(10,40,20,.18); padding:10px 12px; max-width:520px; margin:0 auto; }
#hhInstBar .hh-inst-t{ flex:1; min-width:0; font-size:13px; color:#2c4237; line-height:1.5; }
#hhInstBar .hh-inst-ok{ flex:0 0 auto; border:0; background:#1f8a4c; color:#fff; font-size:13px;
  font-weight:600; padding:8px 16px; border-radius:99px; cursor:pointer; }
#hhInstBar .hh-inst-x{ flex:0 0 auto; width:26px; height:26px; line-height:24px; text-align:center;
  color:#8a9a90; font-size:14px; cursor:pointer; border-radius:50%; background:#f0f4f1; }
#hhApkVerBar{ position:fixed; left:12px; right:12px; bottom:14px; z-index:9998; display:flex;
  align-items:center; gap:10px; background:#176e3c; color:#fff; border-radius:12px;
  box-shadow:0 10px 30px rgba(0,0,0,.3); padding:11px 14px; font-size:13px; }
#hhApkVerBar .hh-apkv-t{ flex:1; min-width:0; }
#hhApkVerBar .hh-apkv-go{ flex:0 0 auto; background:#fff; color:#176e3c; font-weight:700;
  font-size:13px; padding:7px 14px; border-radius:99px; text-decoration:none; }
#hhApkVerBar .hh-apkv-x{ flex:0 0 auto; width:24px; height:24px; line-height:22px; text-align:center;
  color:rgba(255,255,255,.8); cursor:pointer; }

/* ============================================================
   2026-11-19 PC 私聊对齐 App：浅色会话头 + 淡绿消息底 + 精简输入栏
   只命中非 app-shell 的 PC 端，App 现有聊天样式零影响。
   ============================================================ */
html.hh-chat-page:not(.app-shell) .hh-chat-topbar{
  background:rgba(255,255,255,.92);
  -webkit-backdrop-filter:blur(16px) saturate(1.25); backdrop-filter:blur(16px) saturate(1.25);
  border-bottom:1px solid rgba(31,138,76,.12); box-shadow:0 2px 16px rgba(28,80,50,.07);
}
html.hh-chat-page:not(.app-shell) .hh-chat-topbar .hh-chat-back{ color:#1f6b3f; }
html.hh-chat-page:not(.app-shell) .hh-chat-topbar .hh-chat-back:hover,
html.hh-chat-page:not(.app-shell) .hh-chat-topbar .hh-chat-back:focus-visible{ background:rgba(31,138,76,.09); }
html.hh-chat-page:not(.app-shell) .hh-chat-who{ flex:1 1 auto; min-width:0; display:flex; align-items:center; gap:9px; }
html.hh-chat-page:not(.app-shell) .hh-chat-who-av{
  flex:0 0 36px; width:36px; height:36px; border-radius:11px; overflow:visible;
  background-color:#e4f2e9; background-size:cover; background-position:center;
  display:flex; align-items:center; justify-content:center;
  color:#1f8a4c; font-size:14px; font-weight:700;
  box-shadow:0 2px 6px rgba(28,80,50,.18), inset 0 0 0 1px rgba(255,255,255,.55);
}
html.hh-chat-page:not(.app-shell) .hh-chat-who-tx{ min-width:0; display:flex; flex-direction:column; line-height:1.25; }
html.hh-chat-page:not(.app-shell) .hh-chat-who-tx b{
  font-size:14px; font-weight:700; color:#1d3b2a;
  overflow:hidden; white-space:nowrap; text-overflow:ellipsis;
}
html.hh-chat-page:not(.app-shell) .hh-chat-sub{
  display:flex; align-items:center; gap:5px; min-width:0;
  font-size:10.5px; color:#7d9488; margin-top:3px;
  overflow:hidden; white-space:nowrap; text-overflow:ellipsis;
}
html.hh-chat-page:not(.app-shell) .hh-chat-sub .hh-oline{ font-size:10.5px; padding:2px 7px; flex:0 0 auto; }
html.hh-chat-page:not(.app-shell) .hh-chat-sub .hh-mutual-badge{ flex:0 0 auto; margin-left:0; }
html.hh-chat-page:not(.app-shell) .hh-chat-topbar .hh-more-btn{
  flex:0 0 34px; width:34px; height:34px; border-radius:50%;
  background:rgba(31,138,76,.08); color:#1f8a4c; font-size:19px;
}
html.hh-chat-page:not(.app-shell) .content.ms-chat{
  background:radial-gradient(120% 55% at 50% 0%, rgba(226,244,232,.9), rgba(255,255,255,0) 72%),
             linear-gradient(180deg,#f5fbf6 0%,#eef7f0 100%);
}
html.hh-chat-page:not(.app-shell) .chat-day{
  align-self:center; margin:12px 0 16px; padding:3px 12px; border-radius:99px;
  background:rgba(255,255,255,.72); color:#8aa397; font-size:11px; letter-spacing:.3px;
  box-shadow:0 1px 5px rgba(28,80,50,.05);
}
html.hh-chat-page:not(.app-shell) .ms-bubble .av{ box-shadow:0 0 0 2px #fff,0 3px 9px rgba(28,80,50,.18); }
html.hh-chat-page:not(.app-shell) .ms-bubble .txt{
  border-radius:16px 16px 16px 5px; padding:9px 13px;
  background:rgba(255,255,255,.96); color:#263a2e; font-size:14px; line-height:1.6;
  box-shadow:0 3px 12px rgba(28,80,50,.08),0 1px 2px rgba(28,80,50,.05);
  border:1px solid rgba(31,138,76,.06);
}
html.hh-chat-page:not(.app-shell) .ms-bubble.me .txt{
  border-radius:16px 16px 5px 16px;
  background:linear-gradient(135deg,#2ba462,#1f8a4c); color:#fff; border-color:transparent;
  box-shadow:0 4px 14px rgba(31,138,76,.24);
}
html.hh-chat-page:not(.app-shell) .ms-inputbar{
  background:rgba(255,255,255,.92); box-shadow:0 -4px 18px rgba(28,80,50,.07);
  border-top:1px solid rgba(31,138,76,.1); padding:8px 12px 6px;
}
html.hh-chat-page:not(.app-shell) .ms-inputbar textarea{
  background:#f3f8f5; border:1px solid rgba(31,138,76,.13); border-radius:10px; padding:9px 13px;
}
html.hh-chat-page:not(.app-shell) .ms-inputbar textarea:focus{ background:#fff; border-color:#8fd0a9; }
html.hh-chat-page:not(.app-shell) .ms-inputbar #chatSend{
  border-radius:10px; font-weight:600; letter-spacing:.5px;
  background:linear-gradient(135deg,#2ba462,#1f8a4c); box-shadow:0 3px 10px rgba(31,138,76,.24);
}
html.hh-chat-page:not(.app-shell) .hh-tool{
  background:#fff; border:1px solid rgba(31,138,76,.1); border-radius:14px;
  padding:10px; margin-bottom:8px; box-shadow:0 3px 12px rgba(28,80,50,.07);
}
html.hh-chat-page:not(.app-shell) .hh-tool button{
  border-radius:11px; border:1px solid rgba(31,138,76,.12);
  background:#f4faf6; color:#2f5940; font-size:12.5px; padding:10px 4px;
}
html.hh-chat-page:not(.app-shell) .hh-gate{
  background:rgba(255,255,255,.9); border-top:1px solid rgba(31,138,76,.1);
  color:#4c6657; font-size:12.5px;
}
html.hh-chat-page:not(.app-shell) .hh-gate-btn{
  background:linear-gradient(135deg,#2ba462,#1f8a4c);
  box-shadow:0 2px 8px rgba(31,138,76,.22);
}
/* 聊天页隐藏全局浮动返回键与 PWA 安装条：会话头已有返回，安装条会压住输入栏 */
html.hh-chat-page:not(.app-shell) #hhPcBack,
html.hh-chat-page:not(.app-shell) #hhInstBar{ display:none!important; }
