@charset "UTF-8";

:root{
  color-scheme:light;
  --bg:#eef2f6;
  --page-bg-image: none;
  --surface:#ffffff;
  --surface-soft:#f7f9fc;
  --surface-warm:#fbfcfe;
  --line:#dbe3ee;
  --line-strong:#cbd6e5;
  --text:#0f172a;
  --text-soft:#334155;
  --muted:#64748b;
  --muted-soft:#94a3b8;
  --blue:#2563eb;
  --blue-soft:#eff6ff;
  --green:#12a36d;
  --green-soft:#edf9f2;
  --orange:#d97706;
  --orange-soft:#fff6e8;
  --purple:#6d5bd0;
  --purple-soft:#f3efff;
  --red:#e5484d;
  --red-soft:#fff1f0;
  --teal:#0f766e;
  --teal-soft:#ecfeff;
  --gray-soft:#f4f6f9;
  --shadow:0 10px 28px rgba(15,23,42,.07);
  --shadow-hover:0 16px 36px rgba(15,23,42,.10);
  --radius:8px;
}
*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;background:var(--bg);color:var(--text);overflow:hidden;position:relative}
body:before{display:none}
a{text-decoration:none;color:inherit}
button,input{font:inherit}
.toast{position:fixed;left:50%;top:12px;transform:translateX(-50%);background:#111827;color:#fff;padding:9px 12px;border-radius:8px;display:none;z-index:9999;max-width:92vw;font-size:12px;box-shadow:0 12px 30px rgba(15,23,42,.18)}
.toast.show{display:block}
.page{position:relative;z-index:1;height:100%;width:min(100%,780px);margin:0 auto;padding:0;display:flex;flex-direction:column;gap:0}
.top{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 14px 13px;border-bottom:1px solid var(--line);background:#f8fafc}
.top-main{min-width:0;display:flex;align-items:center;gap:11px}
.top-icon{width:40px;height:40px;border-radius:8px;border:1px solid #d6e0ee;background:#fff;color:var(--blue);display:inline-flex;align-items:center;justify-content:center;font-size:16px;box-shadow:0 8px 18px rgba(15,23,42,.06);flex:0 0 auto}
.top-copy{min-width:0}
.hrow{display:flex;align-items:center;gap:8px;min-width:0}
.h1{margin:0;font-size:19px;font-weight:900;letter-spacing:0;line-height:1.2;color:#0b1220}
.pill{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 7px;border-radius:999px;background:var(--red);color:#fff;font-size:11px;font-weight:900;box-shadow:0 6px 16px rgba(229,72,77,.18)}
.sub{margin-top:5px;font-size:12px;color:var(--muted);line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.panel{flex:1;min-height:0;position:relative;display:flex;flex-direction:column;border:none;background:transparent;border-radius:0;overflow:hidden;box-shadow:none}
/* 兼容 X5/U4 老内核：flex 撑高方式可能失效导致列表无法滚动，改用绝对定位让 .list 恒等于 .panel 可视区域 */
.list{position:absolute;left:0;right:0;top:0;bottom:0;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;padding:12px 12px 14px;background:transparent;scrollbar-width:thin;scrollbar-color:#c8d3e2 transparent}
.list::-webkit-scrollbar{width:6px;height:6px}
.list::-webkit-scrollbar-thumb{background:#c8d3e2;border-radius:999px}
.peerTag{flex:0 0 auto;display:inline-flex;align-items:center;height:18px;padding:0 7px;margin-left:6px;border-radius:999px;background:#e8f5f2;color:#0f766e;font-size:10.5px;font-weight:800;white-space:nowrap}
.peerTag.role-seller{background:#fff3e6;color:#b45309}
.empty{min-height:170px;display:flex;align-items:center;justify-content:center;padding:30px 16px;border:1px dashed #cbd6e5;border-radius:8px;background:#fff;color:#94a3b8;text-align:center;font-size:13px;font-weight:800}
.empty-inner{display:flex;flex-direction:column;align-items:center;gap:9px;max-width:290px}
.empty-ico{width:54px;height:54px;border-radius:50%;background:#eef4f6;color:#0f766e;display:flex;align-items:center;justify-content:center;font-size:21px}
.empty-t{font-size:14.5px;font-weight:900;color:#334155}
.empty-s{font-size:12px;font-weight:500;line-height:1.7;color:#7c8798}
.empty-btn{margin-top:4px;height:38px;padding:0 20px;border:0;border-radius:999px;background:linear-gradient(135deg,#14b8a6,#0f766e);color:#fff;font-size:13px;font-weight:800;cursor:pointer}
.item{position:relative;display:grid;grid-template-columns:50px minmax(0,1fr) 18px;gap:11px;align-items:flex-start;padding:12px 11px 12px 12px;border:1px solid var(--line);border-radius:8px;background:var(--surface);margin-bottom:10px;box-shadow:var(--shadow);transition:background-color .16s ease,border-color .16s ease,box-shadow .16s ease,transform .16s ease;overflow:visible}
.item:before{content:"";position:absolute;left:0;top:12px;bottom:12px;width:3px;border-radius:0 999px 999px 0;background:#d7e0ec}
.item:hover{background:#fbfdff;border-color:#cbd8ea;box-shadow:var(--shadow-hover);transform:translateY(-1px)}
.item:active{transform:translateY(0)}
.item.unread{border-color:#b8cbee;background:#fff}
.item.unread:before{background:var(--blue)}
.ava{width:50px;height:50px;border-radius:8px;background:#f1f5f9;border:1px solid #d7e1ee;display:flex;align-items:center;justify-content:center;overflow:visible;position:relative;flex:0 0 auto;font-size:14px;font-weight:900;color:#38516f;box-shadow:inset 0 0 0 1px rgba(255,255,255,.75)}
.ava img{width:100%;height:100%;object-fit:cover;display:block;border-radius:8px}
.ava-fallback{padding:0 6px;line-height:1.1;text-align:center;letter-spacing:0}
.dot{position:absolute;right:-7px;top:-7px;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:var(--red);color:#fff;font-size:10px;font-weight:900;display:flex;align-items:center;justify-content:center;border:2px solid #fff;box-shadow:0 5px 12px rgba(229,72,77,.26);z-index:9}
.main{flex:1;min-width:0;padding-top:2px}
.row1{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;min-width:0}
.namebox{min-width:0;flex:1}
.titleLine{display:flex;align-items:center;gap:8px;min-width:0}
.name{min-width:0;font-size:15px;font-weight:900;line-height:1.25;color:#0f172a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;letter-spacing:0}
.addr{margin-top:5px;font-size:11px;color:var(--muted-soft);line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.addr i{width:12px;margin-right:4px;color:#a5b1c2;text-align:center}
.preview{margin-top:6px;font-size:12.5px;color:#64748b;line-height:1.45;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.preview .me{display:inline-block;margin-right:5px;padding:0 5px;border-radius:4px;background:#eef2f7;color:#64748b;font-size:10.5px;font-weight:800;vertical-align:1px}
.preview.is-unread{color:#0b1220;font-weight:800}
.item.unread .preview{color:#0b1220}
.rightMeta{display:flex;align-items:flex-start;justify-content:flex-end;flex:0 0 auto;padding-top:24px;max-width:92px}
.time{flex:0 0 auto;font-size:11px;color:#8a94a6;font-weight:900;line-height:1.2;white-space:nowrap}
.presence{display:inline-flex;align-items:center;height:18px;padding:0 7px;border-radius:999px;font-size:10px;font-weight:850;white-space:nowrap;border:1px solid transparent;max-width:92px;overflow:hidden;text-overflow:ellipsis;box-shadow:0 4px 10px rgba(15,23,42,.04)}
.presence:before{content:"";width:5px;height:5px;border-radius:999px;margin-right:4px;flex:0 0 auto;background:currentColor}
.presence.online{background:#f0fbf6;color:#0f9f68;border-color:#d9f1e6}
.presence.recent{background:#fff8ed;color:#c96f04;border-color:#f4e4c8}
.presence.offline{background:#f5f7fa;color:#6b7584;border-color:#e4e9f1}
.itemChevron{width:18px;height:50px;display:flex;align-items:center;justify-content:center;color:#b3bdca;font-size:11px;align-self:center}
.item.unread .name{color:#0b1220}
.container{padding-bottom:86px}
.bottom-tabs{position:fixed;left:50%;right:auto;bottom:0;transform:translateX(-50%);width:min(100%,780px);z-index:2000;background:rgba(255,255,255,.98);border-top:1px solid rgba(15,23,42,.10);display:flex;align-items:center;justify-content:space-around;padding:8px 10px calc(8px + env(safe-area-inset-bottom));box-shadow:0 -10px 28px rgba(15,23,42,.08)}
.bottom-tab{min-width:92px;max-width:46vw;text-decoration:none;color:#64748b;display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:6px 10px;border-radius:10px;font-size:11px;font-weight:800;line-height:1.1;position:relative}
.bottom-tab i{font-size:16px;line-height:1}
.bottom-tab.active{color:#1677ff;background:#eef6ff}
.bottom-tab .badge-dot{position:absolute;right:18px;top:2px;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:#ef4444;color:#fff;border:2px solid #fff;display:none;align-items:center;justify-content:center;font-size:10px;font-weight:900;line-height:1}
.bottom-tab.has-unread .badge-dot{display:inline-flex}
@media (max-width:680px){
  .page{width:100%}
  .top{align-items:center;flex-direction:row;padding:14px 12px 12px}
  .list{padding:10px 10px 12px}
  .item{grid-template-columns:46px minmax(0,1fr) 14px;gap:9px;padding:11px 9px 11px 11px;margin-bottom:9px}
  .ava{width:46px;height:46px}
  .itemChevron{height:46px}
  .rightMeta{max-width:82px;padding-top:23px}
  .presence{max-width:82px;padding:0 6px}
  .bottom-tabs{width:100%}
}
@media (max-width:380px){
  .h1{font-size:18px}
  .top-icon{width:36px;height:36px}
  .rightMeta{max-width:72px}
  .presence{max-width:72px}
  .titleLine{gap:6px}
}
  
