:root{--bg:#eef2f7;--panel:#fff;--panel2:#f6f8fb;--line:#e3e8ef;--text:#172033;--muted:#7d8798;--blue:#2f80ed;--blue2:#e9f2ff;--shadow:0 8px 30px rgba(25,42,70,.08)}*{box-sizing:border-box}body{margin:0;font-family:Segoe UI,Microsoft YaHei,Arial,sans-serif;color:var(--text);background:var(--bg);overflow:hidden}.app-shell{height:100vh;display:grid;grid-template-columns:72px 360px minmax(420px,1fr) 310px;background:var(--panel)}.rail{background:#f7f9fc;border-right:1px solid var(--line);display:flex;flex-direction:column;align-items:center;padding:16px 0;gap:10px}.brand-mark,.welcome-logo,.head-avatar,.avatar{display:grid;place-items:center;border-radius:14px;background:linear-gradient(135deg,#3188f5,#2469dc);color:white;font-weight:800}.brand-mark{width:42px;height:42px;font-size:22px;margin-bottom:14px}.rail-btn{width:46px;height:46px;border:0;border-radius:14px;background:transparent;font-size:20px;cursor:pointer;color:#647086}.rail-btn:hover,.rail-btn.active{background:#e5efff;color:#2778e9}.rail-spacer{flex:1}.list-pane{border-right:1px solid var(--line);display:flex;flex-direction:column;background:#fbfcfe;min-width:0;min-height:0;overflow:hidden}.list-head{height:80px;padding:16px 18px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line)}.app-name{font-size:19px;font-weight:800}.app-sub{font-size:11px;color:var(--muted);margin-top:3px}.icon-btn{border:0;background:transparent;font-size:25px;color:#667085;cursor:pointer}.search-wrap{margin:14px 16px 8px;background:#eef2f7;border-radius:12px;height:42px;display:flex;align-items:center;padding:0 12px;gap:8px;color:#8993a3}.search-wrap input{border:0;outline:0;background:transparent;width:100%;font-size:14px}.section-title{font-size:12px;color:#929bad;padding:10px 18px}.list{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;scrollbar-gutter:stable;overscroll-behavior:contain}.list-item{display:flex;gap:12px;padding:12px 16px;cursor:pointer;border-left:3px solid transparent}.list-item:hover{background:#f1f5fa}.list-item.active{background:#e9f2ff;border-left-color:var(--blue)}.avatar{width:46px;height:46px;min-width:46px;border-radius:13px;font-size:16px}.list-main{min-width:0;flex:1}.row{display:flex;justify-content:space-between;gap:10px}.row b{font-size:14px}.time{font-size:11px;color:#9aa3b2}.preview{margin-top:6px;color:#7e8797;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.badge{background:#2f80ed;color:#fff;border-radius:10px;font-size:10px;padding:2px 6px}.empty-list{padding:40px 20px;text-align:center;color:#a0a9b8;font-size:13px}.chat-pane{min-width:0;min-height:0;display:flex;flex-direction:column;background:#f5f7fa}.chat-head{height:76px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:12px;padding:0 22px}.chat-head small{display:block;color:#8a94a4;margin-top:4px;font-size:12px}.head-avatar{width:44px;height:44px}.messages{flex:1;min-height:0;min-width:0;overflow-y:auto;overflow-x:hidden;padding:26px 7%;display:flex;flex-direction:column;gap:10px;background:radial-gradient(circle at 50% 0,#fbfcff,#f2f5f8);scrollbar-gutter:stable;overscroll-behavior:contain}.welcome{margin:auto;text-align:center;color:#8a94a4}.welcome-logo{width:74px;height:74px;margin:0 auto 18px;font-size:34px;border-radius:24px}.welcome h1{color:#506078;font-size:24px;margin:0 0 8px}.welcome p{font-size:13px}.bubble-row{display:flex;gap:9px;align-items:flex-end}.bubble-row.mine{justify-content:flex-end}.msg-avatar{width:34px;height:34px}.bubble{max-width:min(680px,72%);padding:10px 13px;border-radius:15px;background:#fff;box-shadow:0 2px 8px rgba(30,50,80,.06);font-size:14px;line-height:1.5}.mine .bubble{background:#dcecff}.meta{font-size:10px;color:#9aa3b2;margin-top:4px}.composer{height:72px;background:#fff;border-top:1px solid var(--line);display:flex;align-items:center;gap:10px;padding:12px 18px}.composer input{flex:1;border:1px solid #dfe5ed;border-radius:14px;height:46px;padding:0 14px;outline:0;font-size:14px}.composer input:focus{border-color:#9ec6fb}.attach,.send{border:0;width:44px;height:44px;border-radius:13px;cursor:pointer;font-size:22px}.attach{background:#f0f3f7;color:#718096}
.attach-menu{position:fixed;width:178px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:6px;box-shadow:0 14px 40px rgba(30,50,80,.18);z-index:50}.attach-menu button{width:100%;display:flex;align-items:center;gap:10px;border:0;background:transparent;border-radius:10px;padding:11px 12px;cursor:pointer;color:#344054;text-align:left}.attach-menu button:hover{background:#eef4fb}.attach-menu span{width:24px;font-size:18px}.attach-menu b{font-size:13px;font-weight:600}.voice-record{border:0;width:44px;height:44px;border-radius:13px;cursor:pointer;font-size:20px;background:#f0f3f7;color:#667085;touch-action:none;user-select:none}.voice-record.recording{background:#ffe5e5;color:#d92d20;transform:scale(1.04)}
.send{background:var(--blue);color:#fff}.info-pane{border-left:1px solid var(--line);background:#fff;overflow:auto}.info-head{height:76px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:0 18px}.info-body{padding:24px}.profile-card{text-align:center}.big-avatar{width:88px;height:88px;margin:auto;border-radius:24px;font-size:30px}.info-body h2{font-size:20px;margin:12px 0 4px}.info-body p{color:#8b95a5;font-size:13px}.detail{padding:16px 0;border-top:1px solid var(--line);font-size:13px}.detail label{color:#9aa3b2;display:block;font-size:11px;margin-bottom:5px}.training-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:8px 16px 30px}.training-card{background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden;cursor:pointer;box-shadow:0 4px 16px rgba(30,50,80,.04)}.training-img{height:130px;background:linear-gradient(135deg,#dcecff,#f1f6ff);display:grid;place-items:center;color:#4a82cf;font-size:36px}.training-card img{width:100%;height:130px;object-fit:cover}.training-body{padding:12px}.training-body b{font-size:14px}.training-body p{font-size:12px;color:#8a94a4;line-height:1.5}.setting{padding:0 18px}.setting-row{padding:16px 0;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center}.setting-row small{display:block;color:#8a94a4;margin-top:4px}.btn{border:0;border-radius:10px;padding:9px 15px;cursor:pointer}.primary{background:var(--blue);color:#fff}.ghost{background:#edf1f6;color:#667085}.modal{position:fixed;inset:0;background:rgba(20,30,45,.38);display:grid;place-items:center;z-index:20}.modal-card{width:min(480px,92vw);background:#fff;border-radius:18px;padding:22px;box-shadow:0 24px 80px rgba(0,0,0,.2)}.modal-title{font-weight:800;font-size:18px;margin-bottom:18px}.field{margin:12px 0}.field label{font-size:12px;color:#737f92;display:block;margin-bottom:6px}.field input,.field textarea,.field select{width:100%;border:1px solid #dfe5ed;border-radius:10px;padding:10px;outline:0}.field textarea{min-height:90px}.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}.toast{position:fixed;left:50%;bottom:30px;transform:translateX(-50%) translateY(20px);background:#202a3a;color:#fff;padding:10px 16px;border-radius:10px;opacity:0;pointer-events:none;transition:.2s;z-index:30}.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}.hidden{display:none!important}@media(max-width:1100px){.app-shell{grid-template-columns:64px 300px minmax(380px,1fr)}.info-pane{display:none!important}}@media(max-width:760px){body{overflow:hidden}.app-shell{grid-template-columns:1fr}.rail{position:fixed;bottom:0;left:0;right:0;height:64px;z-index:10;flex-direction:row;justify-content:space-around;padding:8px;background:#fff;border-top:1px solid var(--line);border-right:0}.brand-mark,.rail-spacer,.rail-btn:last-child{display:none}.rail-btn{width:48px;height:48px}.list-pane{position:absolute;inset:0 0 64px 0;z-index:3}.chat-pane{position:absolute;inset:0 0 64px 0;z-index:4;transform:translateX(100%);transition:.2s}.app-shell.chat-open .chat-pane{transform:translateX(0)}.training-grid{grid-template-columns:1fr}.messages{padding:18px 14px}.bubble{max-width:82%}.list-head{height:68px}.composer{height:64px}.app-shell.chat-open .list-pane{display:none}}
.auth{min-height:100vh;display:grid;place-items:center;background:linear-gradient(145deg,#edf4ff,#f7f9fc)}.auth-card{width:min(410px,92vw);background:#fff;border:1px solid #e2e8f0;border-radius:24px;padding:34px;box-shadow:0 24px 70px rgba(25,45,80,.12)}.auth-card .brand-mark{margin:0 auto 18px}.auth-card h1{text-align:center;margin:0;font-size:27px}.auth-card>p{text-align:center;color:#8993a3;font-size:13px;margin:8px 0 24px}.auth-actions{display:flex;gap:8px;margin-top:18px}.auth-actions .btn{flex:1}.auth-card .field{margin:14px 0}.auth-card .field input{height:46px;background:#fbfcfe}.auth-card .field input:focus{border-color:#8bbcf8;box-shadow:0 0 0 3px #eaf3ff}

.auth-error{min-height:20px;color:#d34b4b;font-size:13px;line-height:20px;margin-top:10px}.auth-success{min-height:20px;color:#238b57;font-size:13px;line-height:20px;margin-top:10px}.auth-actions .btn:disabled{opacity:.6;cursor:not-allowed}

.friend-notice{position:fixed;right:24px;top:24px;width:min(420px,calc(100vw - 32px));z-index:60;animation:friendIn .22s ease-out}.friend-notice-card{position:relative;display:flex;gap:13px;padding:16px;background:#fff;border:1px solid #dfe6ef;border-radius:18px;box-shadow:0 18px 50px rgba(25,42,70,.20)}.friend-notice-icon{width:44px;height:44px;min-width:44px;border-radius:13px;background:#e9f2ff;display:grid;place-items:center;font-size:22px}.friend-notice-main{min-width:0;flex:1}.friend-notice-title{font-size:15px;font-weight:800}.friend-notice-text{margin-top:5px;color:#667085;font-size:13px;line-height:1.5}.friend-notice-actions{display:flex;gap:7px;margin-top:12px;flex-wrap:wrap}.friend-notice-actions .btn{padding:7px 12px}.friend-notice-close{position:absolute;right:8px;top:7px;border:0;background:transparent;color:#98a2b3;font-size:20px;cursor:pointer}.friend-badge{display:inline-grid;place-items:center;min-width:18px;height:18px;padding:0 5px;margin-left:6px;border-radius:9px;background:#ef4444;color:#fff;font-size:10px;font-weight:800;vertical-align:middle}.rail-btn{position:relative}.contact-request-row{background:#fff7ed!important;border-left-color:#f59e0b!important}.request-pill{background:#fff0d9;color:#b45309;border-radius:10px;font-size:10px;padding:2px 6px}@keyframes friendIn{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:760px){.friend-notice{right:12px;bottom:76px;width:calc(100vw - 24px)}}

.request-list{display:flex;flex-direction:column;gap:8px}.request-item{display:flex;align-items:center;gap:9px;padding:10px;border:1px solid var(--line);border-radius:12px;background:#fbfcfe}.request-item .avatar{width:38px;height:38px;min-width:38px;border-radius:11px}.request-item .muted{color:#98a2b3;font-size:12px}.request-item .btn{padding:7px 10px;margin-left:auto}.request-item .btn+.btn{margin-left:0}

.message-stack{max-width:min(680px,72%)}.bubble-row.theirs{justify-content:flex-start}.bubble-row.mine .message-stack{display:flex;flex-direction:column;align-items:flex-end}.bubble-row.theirs .message-stack{display:flex;flex-direction:column;align-items:flex-start}.bubble-row.mine .bubble{background:#dcecff;border-bottom-right-radius:5px}.bubble-row.theirs .bubble{background:#fff;border-bottom-left-radius:5px}.profile-edit-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}.profile-edit-grid .field:nth-child(6),.profile-edit-grid .field:nth-child(7){grid-column:1/-1}@media(max-width:760px){.message-stack{max-width:82%}.profile-edit-grid{grid-template-columns:1fr}.profile-edit-grid .field{grid-column:1!important}}
.friend-notice-flash .friend-notice-card{animation:friendPulse .9s ease-in-out}@keyframes friendPulse{0%,100%{transform:scale(1)}35%{transform:scale(1.035)}70%{transform:scale(.995)}}
.brand-avatar{width:42px;height:42px;border-radius:14px;object-fit:cover;display:block;margin-bottom:14px}.rail-profile-avatar{width:30px;height:30px;border-radius:10px;object-fit:cover;display:block}.head-avatar{object-fit:cover;overflow:hidden}.avatar{object-fit:cover;overflow:hidden}.big-avatar{object-fit:cover}.profile-avatar-upload{display:flex;align-items:center;justify-content:center;gap:12px;grid-column:1/-1;margin-bottom:10px}.profile-avatar-upload .big-avatar{margin:0;width:72px;height:72px}.group-actions{display:flex;gap:8px;margin:10px 0 16px}.group-member-list .list-item{align-items:center}.group-member-list .btn.danger{padding:6px 9px;margin-left:6px;background:#fee2e2;color:#b91c1c}.full{width:100%;margin-top:14px}.group-candidates{display:flex;flex-direction:column;gap:8px;max-height:280px;overflow:auto}.group-candidate{display:flex;align-items:center;gap:10px;padding:9px;border:1px solid var(--line);border-radius:10px;cursor:pointer}.group-candidate span{flex:1;display:flex;flex-direction:column}.group-candidate small{color:var(--muted);margin-top:3px}.group-candidate input{width:18px;height:18px}.friend-notice img.avatar{width:44px;height:44px}
.chat-unread-badge{margin-left:auto;min-width:22px;height:22px;padding:0 7px;border-radius:999px;background:#e5484d;color:#fff;font-size:12px;font-weight:700;display:flex;align-items:center;justify-content:center;flex:none}.profile-avatar-click{display:flex;justify-content:center;cursor:pointer}.profile-avatar-click .big-avatar{transition:transform .15s ease,box-shadow .15s ease}.profile-avatar-click:hover .big-avatar{transform:scale(1.04);box-shadow:0 0 0 3px rgba(50,120,255,.16)}.group-candidate{cursor:pointer}.group-candidate.added{opacity:.45;pointer-events:none}.group-add-avatar{cursor:pointer}.chat-head .head-avatar{object-fit:cover}

/* 聊天消息区域独立滚动修复 */
.messages::-webkit-scrollbar{width:10px}.messages::-webkit-scrollbar-track{background:transparent}.messages::-webkit-scrollbar-thumb{background:#c5ceda;border-radius:8px;border:2px solid transparent;background-clip:padding-box}.messages::-webkit-scrollbar-thumb:hover{background:#aab6c5;border:2px solid transparent;background-clip:padding-box}

/* 消息气泡按内容自然宽度排列，短消息不会被挤成三行 */
.message-stack{min-width:0;width:max-content;max-width:min(680px,72%)}
.bubble{width:max-content;max-width:100%;white-space:pre-wrap;overflow-wrap:anywhere;word-break:normal;line-height:1.55}
@media(max-width:760px){.message-stack{max-width:82%}.bubble{max-width:100%}}
.group-announcement{margin:12px 0;padding:12px 14px;border-radius:12px;background:var(--panel,#f5f7fb);border:1px solid rgba(0,0,0,.06)}
.group-announcement b{display:block;margin-bottom:6px}.group-announcement small{display:block;margin-top:7px;color:#8a93a3}.group-actions{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.group-member-list{margin-top:12px}.group-member-list .list-item{margin:4px 0}
.message-context-menu{position:fixed;z-index:100;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:0 12px 35px rgba(0,0,0,.16);padding:5px;min-width:165px}.message-context-menu button{border:0;background:transparent;padding:9px 12px;width:100%;text-align:left;border-radius:7px;cursor:pointer}.message-context-menu button:hover{background:#f2f5f9}.pin-mark{display:inline-block;margin-left:7px;font-size:11px;color:#3578c9}.msg-pin-hint{font-size:10px;color:#9aa3b2;margin-top:3px}.pin-item{padding:8px 0;border-top:1px solid var(--line);margin-top:6px;line-height:1.45}.pin-item small{color:#8a94a4;margin-left:5px}@media(max-width:760px){.message-context-menu{min-width:190px}.msg-pin-hint{display:none}}
.pinned-bar{min-height:54px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:10px;padding:8px 18px;cursor:pointer;box-shadow:0 2px 8px rgba(30,50,80,.04);z-index:2}.pinned-bar-icon{font-size:20px}.pinned-bar-main{min-width:0;flex:1;display:flex;flex-direction:column;gap:2px}.pinned-bar-main b{font-size:12px}.pinned-bar-main span{font-size:12px;color:#737f92;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pinned-bar-more{border:0;background:#edf3ff;color:#2778e9;border-radius:8px;padding:6px 9px;cursor:pointer}.pin-flash{animation:pinFlash .9s ease}.pin-mark{display:inline-block;margin-left:6px;font-size:11px;color:#2778e9}.msg-pin-hint{display:none}@keyframes pinFlash{0%,100%{box-shadow:none}35%{box-shadow:0 0 0 4px rgba(47,128,237,.25)}}
.media-image{max-width:min(360px,100%);max-height:360px;border-radius:12px;display:block;cursor:pointer}.media-video{max-width:min(420px,100%);border-radius:12px;display:block}.file-message{display:flex;align-items:center;gap:10px;color:inherit;text-decoration:none;min-width:220px}.file-message small{color:var(--muted);margin-left:auto}.voice-message{display:flex;align-items:center;gap:8px}.voice-message audio{max-width:230px}.file-name{font-size:12px;color:var(--muted);margin-top:5px}.upload-progress{position:absolute;left:18px;right:18px;bottom:78px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:9px 12px;box-shadow:var(--shadow);z-index:8}.composer{position:relative}.upload-progress-head{display:flex;justify-content:space-between;font-size:11px;color:var(--muted);margin-bottom:6px}.upload-progress-track{height:6px;background:#edf1f6;border-radius:99px;overflow:hidden}.upload-progress-track>div{height:100%;width:0;background:var(--blue);transition:width .12s ease}@media(max-width:760px){.upload-progress{bottom:68px;left:10px;right:10px}.media-image{max-width:280px;max-height:280px}.file-message{min-width:0}.voice-message audio{max-width:180px}}

.mobile-back{display:none;border:0;background:transparent;font-size:34px;line-height:1;width:38px;height:44px;padding:0;color:#5f6f85;cursor:pointer;flex:none}
@media(max-width:760px){.mobile-back{display:block}.chat-head{padding:0 10px;gap:8px}.chat-head .icon-btn{margin-left:auto!important}.rail{pointer-events:auto}.rail-btn{touch-action:manipulation}.list-pane{touch-action:pan-y}.chat-pane{touch-action:pan-y}}

/* 手机端正式版：独立移动 UI，不是桌面端缩小 */
.nav-label{display:none}
.mine-page,.settings-page{padding:16px}
.mine-profile-card{display:flex;align-items:center;gap:14px;background:linear-gradient(135deg,#1680f6,#2f72df);color:#fff;border-radius:20px;padding:18px;box-shadow:0 10px 28px rgba(47,128,237,.20);cursor:pointer}
.mine-avatar{width:58px;height:58px;min-width:58px;border-radius:18px;background:rgba(255,255,255,.22);border:2px solid rgba(255,255,255,.65);font-size:20px}
.mine-profile-main{min-width:0;flex:1;display:flex;flex-direction:column;gap:4px}.mine-profile-main b{font-size:18px}.mine-profile-main span{font-size:12px;opacity:.92}.mine-profile-main small{font-size:11px;opacity:.8}.mine-chevron{font-size:30px;font-weight:300;opacity:.9}
.mine-menu{margin-top:14px;background:#fff;border-radius:18px;border:1px solid var(--line);overflow:hidden}.mine-menu button{width:100%;display:flex;align-items:center;gap:13px;border:0;border-bottom:1px solid var(--line);background:#fff;text-align:left;padding:16px;cursor:pointer;color:var(--text)}.mine-menu button:last-child{border-bottom:0}.mine-menu button:active{background:#f5f8fc}.mine-menu-icon{width:38px;height:38px;border-radius:12px;background:#edf4ff;color:#2778e9;display:grid;place-items:center;font-size:18px;flex:none}.mine-menu button>div{min-width:0;flex:1}.mine-menu b{display:block;font-size:14px}.mine-menu small{display:block;color:var(--muted);font-size:11px;margin-top:4px}.mine-menu button>span:last-child{font-size:24px;color:#a2adbd}.mine-logout{width:100%;height:48px;border:1px solid #ffd4d4;background:#fff5f5;color:#e5484d;border-radius:14px;margin-top:14px;font-size:14px;font-weight:700;cursor:pointer}
.settings-page{padding-top:8px}.mobile-subback{height:42px;display:flex;align-items:center;color:#2778e9;font-size:14px;font-weight:600;cursor:pointer}.settings-card{background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden}.settings-row{min-height:62px;padding:12px 16px;display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid var(--line)}.settings-row:last-child{border-bottom:0}.settings-row>div{min-width:0;flex:1}.settings-row b{display:block;font-size:14px}.settings-row small{display:block;color:var(--muted);font-size:11px;margin-top:4px}.settings-row>span:last-child{font-size:23px;color:#a2adbd}.toggle{width:42px!important;height:24px!important;border-radius:99px;background:#d6dce5;position:relative;flex:none!important}.toggle:after{content:'';position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.15)}.toggle.on{background:var(--blue)}.toggle.on:after{left:21px}
@media(max-width:760px){
  body{background:#f4f7fb}
  .app-shell{display:block;height:100dvh;background:#f4f7fb}
  .rail{position:fixed;left:0;right:0;bottom:0;height:68px;z-index:30;display:flex;flex-direction:row;align-items:stretch;justify-content:space-around;gap:0;padding:6px 4px calc(6px + env(safe-area-inset-bottom));background:rgba(255,255,255,.97);backdrop-filter:blur(14px);border-top:1px solid #e3e8ef;box-shadow:0 -6px 20px rgba(30,50,80,.06)}
  .rail .brand-mark,.rail .brand-avatar,.rail .rail-spacer,.rail #profileBtn,.rail .rail-profile-avatar{display:none!important}
  .rail-btn{display:flex!important;position:relative;flex:1;max-width:92px;height:56px;width:auto;border-radius:14px;flex-direction:column;align-items:center;justify-content:center;gap:2px;background:transparent;color:#7c8799;font-size:12px;padding:3px 2px;touch-action:manipulation}
  .rail-btn .nav-icon{display:block;font-size:21px;line-height:23px;filter:grayscale(.15)}.rail-btn .nav-label{display:block;font-size:10px;line-height:15px;font-weight:500;white-space:nowrap}
  .rail-btn.active{background:#eaf3ff;color:#1674ea}.rail-btn.active .nav-label{font-weight:700}.rail-btn:hover{background:transparent;color:#7c8799}.rail-btn.active:hover{background:#eaf3ff;color:#1674ea}
  .list-pane{position:absolute;inset:0 0 68px 0;z-index:3;border-right:0;background:#f4f7fb;display:flex;overflow:hidden}
  .list-head{height:70px;flex:none;padding:12px 16px;background:linear-gradient(135deg,#1680f6,#2f72df);border-bottom:0;color:#fff}
  .app-name{font-size:19px;color:#fff}.app-sub{font-size:11px;color:rgba(255,255,255,.78);margin-top:2px}.list-head .icon-btn{color:#fff;font-size:27px;width:40px;height:40px}
  .search-wrap{margin:10px 12px 4px;height:40px;background:#fff;border:1px solid #e7edf5;border-radius:11px;box-shadow:0 2px 7px rgba(30,50,80,.04);flex:none}.search-wrap input{font-size:13px}.section-title{height:38px;display:flex;align-items:center;justify-content:space-between;padding:8px 14px;font-size:13px;color:#6f7c90;flex:none}.section-title #viewTitle{font-weight:700;color:#556378}.contact-add-btn{font-size:12px;padding:7px 10px}
  .list{padding:2px 8px 12px;overscroll-behavior:contain}.list-item{padding:11px 9px;border-left:0;border-radius:14px;margin:2px 0;gap:11px;background:#fff;border:1px solid #edf1f6}.list-item:hover{background:#fff}.list-item.active{background:#eaf3ff;border-left:0}.avatar{width:46px;height:46px;min-width:46px;border-radius:14px}.row b{font-size:14px}.preview{font-size:12px;margin-top:4px}.time{font-size:10px}.chat-unread-badge{min-width:20px;height:20px}
  .training-grid{display:flex!important;flex-direction:column;gap:10px;padding:4px 0 20px}.training-card{display:flex;min-height:88px;border-radius:14px}.training-card img,.training-img{width:94px;height:88px;min-width:94px}.training-img{font-size:28px}.training-body{padding:11px 12px}.training-body b{font-size:14px}.training-body p{font-size:11px;margin:5px 0 0}
  .chat-pane{position:absolute;inset:0 0 68px 0;z-index:20;transform:translateX(100%);transition:transform .22s ease;background:#f3f6fa}.app-shell.chat-open .chat-pane{transform:translateX(0)}.app-shell.chat-open .list-pane{display:flex}
  .chat-head{height:64px;flex:none;padding:0 10px;background:linear-gradient(135deg,#1680f6,#2f72df);color:#fff;border-bottom:0;gap:7px}.chat-head small{color:rgba(255,255,255,.78);margin-top:2px}.chat-head .head-avatar{width:40px;height:40px;min-width:40px;border-radius:13px}.chat-head .icon-btn{color:#fff;font-size:23px}.mobile-back{display:grid!important;place-items:center;color:#fff!important;width:36px;height:42px;font-size:33px}
  .pinned-bar{min-height:50px;padding:7px 10px;background:#fff}.pinned-bar-main b{font-size:11px}.pinned-bar-main span{font-size:11px}.pinned-bar-more{font-size:11px;padding:5px 8px}
  .messages{padding:14px 10px 12px;gap:8px;background:#f1f5f9}.bubble{font-size:14px;padding:9px 11px;border-radius:14px}.message-stack{max-width:82%!important}.msg-avatar{width:30px;height:30px;min-width:30px}.composer{height:62px;padding:8px 8px;background:#fff;gap:6px;border-top:1px solid #e4e9f0}.composer input{height:44px;border-radius:13px;font-size:14px;min-width:0}.attach,.send,.voice-record{width:40px;height:40px;min-width:40px;border-radius:12px;font-size:19px}.upload-progress{bottom:66px}
  .info-pane{display:none!important}
  .modal-card{width:calc(100vw - 24px);max-height:88dvh;overflow:auto;border-radius:20px;padding:18px}.modal-title{font-size:17px}.modal-actions{position:sticky;bottom:0;background:#fff;padding-top:10px}
  .friend-notice{right:10px;left:10px;bottom:78px;width:auto}.friend-notice-card{border-radius:18px}.friend-notice-actions .btn{padding:8px 11px}
  .mine-page,.settings-page{padding:12px 10px 24px}.mine-profile-card{border-radius:20px;padding:17px}.mine-menu{border-radius:18px}.mine-menu button{padding:15px}.mine-logout{height:48px}
  .settings-page{padding-top:4px}.mobile-subback{height:40px}
  .app-shell[data-view="mine"] .search-wrap,.app-shell[data-view="mine"] .section-title,.app-shell[data-view="settings"] .search-wrap,.app-shell[data-view="settings"] .section-title{display:none}
  .app-shell[data-view="mine"] .list,.app-shell[data-view="settings"] .list{padding-top:2px}
  .app-shell[data-view="mine"] .list-head .icon-btn{visibility:hidden}.app-shell[data-view="settings"] .list-head .icon-btn{visibility:hidden}
}

/* 手机端强制视觉适配：包括手机浏览器开启“桌面版网站”的情况 */
@media (max-width:900px), (pointer:coarse){
  html.mobile-device body{overflow:hidden;background:#f4f7fb}
  html.mobile-device .app-shell{display:block;height:100dvh;background:#f4f7fb}
  html.mobile-device .rail{position:fixed;left:0;right:0;bottom:0;height:68px;z-index:30;display:flex;flex-direction:row;align-items:stretch;justify-content:space-around;gap:0;padding:6px 4px calc(6px + env(safe-area-inset-bottom));background:rgba(255,255,255,.98);backdrop-filter:blur(14px);border-top:1px solid #e3e8ef;box-shadow:0 -6px 20px rgba(30,50,80,.06)}
  html.mobile-device .rail .brand-mark,html.mobile-device .rail .brand-avatar,html.mobile-device .rail .rail-spacer,html.mobile-device .rail #profileBtn,html.mobile-device .rail .rail-profile-avatar{display:none!important}
  html.mobile-device .rail-btn{display:flex!important;position:relative;flex:1;max-width:92px;height:56px;width:auto;border-radius:14px;flex-direction:column;align-items:center;justify-content:center;gap:2px;background:transparent;color:#7c8799;font-size:12px;padding:3px 2px;touch-action:manipulation}
  html.mobile-device .rail-btn .nav-icon{display:block;font-size:21px;line-height:23px}.rail-btn .nav-label{display:block;font-size:10px;line-height:15px;font-weight:500;white-space:nowrap}
  html.mobile-device .rail-btn.active{background:#eaf3ff;color:#1674ea}
  html.mobile-device .list-pane{position:absolute;inset:0 0 68px 0;z-index:3;border-right:0;background:#f4f7fb;display:flex;overflow:hidden}
  html.mobile-device .list-head{height:70px;flex:none;padding:12px 16px;background:linear-gradient(135deg,#1680f6,#2f72df);border-bottom:0;color:#fff}
  html.mobile-device .list-head .app-name{font-size:19px;color:#fff}
  html.mobile-device .search-wrap{margin:10px 12px 4px;height:40px;background:#fff;border-radius:11px;flex:none}
  html.mobile-device .chat-pane{position:absolute;inset:0 0 68px 0;z-index:20;transform:translateX(100%);transition:transform .22s ease;background:#f3f6fa}
  html.mobile-device .app-shell.chat-open .chat-pane{transform:translateX(0)}
  html.mobile-device .chat-head{height:64px;flex:none;padding:0 10px;background:linear-gradient(135deg,#1680f6,#2f72df);color:#fff;border-bottom:0}
}

/* 登录页也采用同一套“信诚人力”手机视觉 */
.auth-mobile-shell{min-height:100dvh;display:flex;flex-direction:column;justify-content:center;padding:28px 18px;background:linear-gradient(180deg,#edf6ff 0%,#f7faff 55%,#eef5ff 100%)}
.auth-mobile-logo{width:78px;height:78px;border-radius:26px;margin:0 auto 14px;display:grid;place-items:center;background:linear-gradient(135deg,#1680f6,#2f72df);color:#fff;font-size:36px;font-weight:900;box-shadow:0 12px 28px rgba(47,128,237,.22)}
.auth-mobile-shell h1{text-align:center;margin:0;color:#172033;font-size:28px;letter-spacing:1px}.auth-mobile-sub{text-align:center;color:#7d8798;font-size:12px;margin:7px 0 24px}.auth-mobile-card{background:rgba(255,255,255,.96);border:1px solid #e4ebf4;border-radius:22px;padding:18px;box-shadow:0 12px 34px rgba(35,70,110,.09)}
@media (max-width:900px),(pointer:coarse){
  html.mobile-device .auth{min-height:100dvh;display:block;padding:0;background:linear-gradient(180deg,#edf6ff 0%,#f7faff 55%,#eef5ff 100%)}
  html.mobile-device .auth-card{width:100%;min-height:100dvh;border:0;border-radius:0;box-shadow:none;background:transparent;padding:48px 18px calc(28px + env(safe-area-inset-bottom));display:flex;flex-direction:column;justify-content:center}
  html.mobile-device .auth-card .brand-mark{width:78px;height:78px;border-radius:26px;margin:0 auto 14px;font-size:36px;box-shadow:0 12px 28px rgba(47,128,237,.22)}
  html.mobile-device .auth-card h1{font-size:28px;letter-spacing:1px}
  html.mobile-device .auth-card>p{font-size:12px;margin:7px 0 24px}
  html.mobile-device .auth-card .field{margin:10px 0}
  html.mobile-device .auth-card .field label{font-size:12px;margin-bottom:6px;color:#66758a}
  html.mobile-device .auth-card .field input{height:50px;border-radius:13px;padding:0 14px;font-size:14px;background:#fff;border:1px solid #dfe8f3}
  html.mobile-device .auth-actions{margin-top:16px;display:flex;flex-direction:column;gap:10px}
  html.mobile-device .auth-actions .btn{width:100%;height:48px;border-radius:13px;font-size:14px}
  html.mobile-device .auth-error,html.mobile-device .auth-success{font-size:12px;margin-top:8px}
}
