*{box-sizing:border-box}body{margin:0;background:#e5e8eb;color:#111;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif}.hidden{display:none!important}.login{width:min(360px,calc(100% - 34px));position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);background:white;padding:30px 25px;border-radius:18px;text-align:center;box-shadow:0 18px 55px #24314022}.login-logo{height:64px;width:64px;margin:auto;border-radius:16px;overflow:hidden;background:#07c160}.login-logo img{height:100%;width:100%;object-fit:cover}.login h1{font-size:23px;margin:14px 0 6px}.login>p{font-size:13px;color:#999;margin:0 0 22px}.login label{display:block;text-align:left;color:#666;font-size:12px;margin:14px 0}.login input{display:block;width:100%;height:43px;border:1px solid #e5e5e5;border-radius:8px;margin-top:6px;padding:0 12px;font-size:15px;outline:none}.primary{width:100%;height:43px;border:0;border-radius:8px;background:#07c160;color:white;font-size:15px;margin-top:10px}.login-error{color:#d44;font-size:12px;min-height:20px;margin-top:8px}.login small{font-size:11px;color:#aaa}.app{width:390px;height:min(844px,calc(100vh - 28px));min-height:640px;background:#f7f7f7;border:10px solid #17191d;border-radius:40px;overflow:hidden;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;flex-direction:column;box-shadow:0 25px 70px #26344544}.topbar{height:45px;flex:none;background:#ececec;display:flex;align-items:center;justify-content:center;position:relative;padding:0 64px}.page-title{font-size:17px;font-weight:650;display:flex;align-items:center;justify-content:center;gap:3px}.unread-count{font-size:17px;font-weight:650}.unread-count:not(.hidden):before{content:" ("}.unread-count:not(.hidden):after{content:")"}.top-actions{display:flex;align-items:center;gap:14px;position:absolute;right:10px;top:50%;transform:translateY(-50%)}.icon-btn{border:0;background:transparent;width:32px;height:32px;padding:0;display:grid;place-items:center}.icon-btn img{width:auto;height:auto;max-width:36px;max-height:32px;object-fit:contain}.icon-btn.plus img{max-width:32px;max-height:31px}.top-actions .icon-btn:first-child{width:36px}.top-actions .icon-btn.plus{width:32px;height:32px}.search{padding:7px 12px;background:#f2f2f2}.search input{width:100%;height:34px;border:0;border-radius:5px;padding:0 10px}.content{position:relative;flex:1;min-height:0;overflow:auto}.screen{display:none;min-height:100%}.screen.active{display:block}.row{height:68px;position:relative;overflow:hidden;background:#fff;border-bottom:1px solid #f1f1f1;--row-actions-width:198px}.row-main{position:relative;z-index:1;height:68px;width:100%;display:flex;align-items:center;padding:0 14px;gap:11px;background:#fff;touch-action:pan-y;transition:transform .18s ease}.row.swiped .row-main{transform:translateX(calc(-1 * var(--row-actions-width)))}.row-actions{position:absolute;inset:0 0 0 auto;width:var(--row-actions-width);height:68px;display:flex}.row-action{width:66px;height:68px;flex:1;border:0;border-radius:0;color:#fff;font:inherit;font-size:13px;line-height:1.25;padding:0 3px;white-space:normal;touch-action:manipulation}.row-action-mark-read{background:#3f83e8}.row-action-hide-action{background:#f0a141}.row-action-delete{background:#e75b5b}.row-avatar-wrap{position:relative;width:48px;height:48px;flex:none}.row-avatar-wrap .avatar{display:block;width:48px;height:48px;object-fit:cover;border-radius:4px}.row-unread-badge{position:absolute;top:-7px;right:-7px;z-index:1;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:#fa5151;color:#fff;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:500;line-height:1;white-space:nowrap;box-shadow:0 0 0 1px #fff}.row-unread-badge.hidden{display:none}.avatar{width:48px;height:48px;object-fit:cover;border-radius:4px;flex:none}.row-content{min-width:0;flex:1}.row-top{display:flex;justify-content:space-between;align-items:center}.row-name{font-size:15px}.row-time{font-size:10px;color:#999}.row-preview{font-size:12px;color:#999;margin-top:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.shortcut{height:58px;display:flex;align-items:center;gap:13px;padding:0 16px;background:white;border-bottom:1px solid #eee;font-size:14px}.shortcut img,.discover-row img{width:25px;height:25px;object-fit:contain}.section-label{padding:10px 15px;color:#888;font-size:11px}.contact{height:56px;background:#fff;display:flex;align-items:center;gap:11px;padding:0 15px;border-bottom:1px solid #f2f2f2;font-size:14px}.contact .avatar{width:38px;height:38px}.discover-row{height:56px;background:#fff;display:flex;align-items:center;gap:12px;padding:0 15px;margin-bottom:9px;font-size:14px}.discover-row i{font-style:normal;margin-left:auto;color:#aaa;font-size:22px}.profile{height:140px;background:white;display:flex;align-items:center;padding:20px;gap:15px;margin-bottom:10px}.profile img{height:60px;width:60px;border-radius:5px}.profile strong{display:block;font-size:19px;margin-bottom:7px}.profile small{font-size:12px;color:#888}.tabbar{height:57px;flex:none;border-top:1px solid #e4e4e4;display:flex;background:#f6f6f6}.tab{position:relative;width:25%;height:56px;padding:3px 0 2px;border:0;background:transparent;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#777;font-size:10px;font-weight:400;line-height:14px;gap:1px}.tab img{width:24px;height:24px;flex:none;object-fit:contain;display:block}.tab.active{color:#777}.tab span{display:block;height:14px;line-height:14px}.tab .tab-unread-badge{position:absolute;top:2px;left:calc(50% + 8px);z-index:2;min-width:19px;height:19px;padding:0 5px;border-radius:999px;background:#fa5151;color:#fff;font-size:12px;font-weight:500;line-height:19px;text-align:center;white-space:nowrap;box-shadow:0 0 0 1px #f6f6f6}.tab .tab-unread-badge.hidden{display:none}.empty{text-align:center;padding:45px 22px;color:#aaa;font-size:13px}.chat{position:absolute;inset:0;z-index:4;background:#ededed;display:flex;flex-direction:column}.chat-head{height:73px;flex:none;padding:25px 12px 0;border-bottom:1px solid #ddd;display:flex;align-items:center;justify-content:space-between;background:#ededed}.chat-head button{border:0;background:none;font-size:25px;color:#222;width:36px;height:38px;padding:0}.chat-head strong{font-size:16px;font-weight:600;text-align:center;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-head #chatInfo{font-size:21px;letter-spacing:1px;font-weight:700}.messages{flex:1;min-height:0;overflow:auto;padding:10px 8px 14px;display:flex;flex-direction:column;gap:12px;background:#ededed}.message-time{align-self:center;margin:2px 0;color:#a3a3a3;font-size:10px;line-height:17px}.message{width:100%;display:flex;align-items:flex-start;gap:7px;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}.message.mine{flex-direction:row-reverse}.message .avatar{width:34px;height:34px;border-radius:4px}.bubble{position:relative;max-width:calc(100% - 90px);min-height:33px;background:#fff;padding:8px 10px;border-radius:4px;font-size:14px;font-weight:400;line-height:1.35;word-break:break-word;white-space:pre-wrap}.bubble:before{content:"";position:absolute;top:11px;left:-5px;border-width:5px 6px 5px 0;border-style:solid;border-color:transparent #fff transparent transparent}.message.mine .bubble{background:#95ec69}.message.mine .bubble:before{left:auto;right:-5px;border-width:5px 0 5px 6px;border-color:transparent transparent transparent #95ec69}.bubble img.attachment{max-width:180px;max-height:220px;display:block;border-radius:4px}.bubble.audio{min-width:100px;cursor:pointer}.forward-badge{font-size:10px;color:#ddd;display:none}.composer{height:54px;flex:none;display:flex;align-items:center;gap:5px;padding:5px 7px;background:#f7f7f7;border-top:1px solid #ddd}.composer button{height:34px;width:34px;flex:none;border:0;background:none;padding:2px}.composer button img{height:30px;width:30px;object-fit:contain}.composer input{height:36px;min-width:0;flex:1;border:0;border-radius:4px;background:white;padding:0 9px;font-size:15px;outline:none}.composer .send{width:auto;padding:0 11px;background:#07c160;color:white;border-radius:5px;font-size:13px}.panel{height:225px;flex:none;overflow:auto;background:#f7f7f7;border-top:1px solid #ddd;padding:10px}.feature-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px 2px}.feature{border:0;background:none;font-size:11px;color:#777;display:flex;flex-direction:column;align-items:center;gap:5px}.feature-icon{width:52px;height:52px;background:white;border-radius:13px;display:grid;place-items:center}.feature-icon img{max-width:34px;max-height:34px}.emoji-grid{display:grid;grid-template-columns:repeat(8,1fr);gap:4px}.emoji-choice{height:38px;border:0;background:transparent;font-size:23px}.context{position:absolute;z-index:8;width:75%;max-width:413px;aspect-ratio:413/215;display:block;overflow:visible;line-height:0}.context-measuring{visibility:hidden!important;display:block!important}.context-reference{position:absolute;inset:0;display:block;width:100%;height:100%;aspect-ratio:413/215;object-fit:fill;border:0;border-radius:0;user-select:none;-webkit-user-drag:none;pointer-events:none}.context-action{position:absolute;z-index:9;display:block;margin:0;padding:0;border:0;border-radius:0;background:transparent;appearance:none;-webkit-appearance:none;pointer-events:auto;cursor:pointer;touch-action:manipulation;line-height:normal}.context-action:focus-visible{outline:2px solid #07c160;outline-offset:-2px}.share-picker{position:absolute;inset:0;z-index:9;background:#f4f4f4;display:block}.share-picker.hidden{display:none}.share-picker-panel{position:absolute;inset:0;background:#f4f4f4;display:flex;flex-direction:column;transform:translateY(100%);will-change:transform}.share-picker.open .share-picker-panel{animation:share-picker-in .15s cubic-bezier(.22,.61,.36,1) both}.share-picker.closing .share-picker-panel{animation:share-picker-out .15s cubic-bezier(.4,0,1,1) both}.share-picker-nav{height:73px;flex:none;padding:25px 12px 0;border-bottom:1px solid #ddd;background:#f7f7f7;display:grid;grid-template-columns:1fr auto 1fr;align-items:center}.share-picker-nav strong{font-size:16px;font-weight:600}.share-picker-nav button{border:0;background:none;padding:8px 0;color:#57606a;font:inherit;font-size:14px;text-align:left}.share-picker-nav button:last-child{text-align:right}.share-picker-list{flex:1;min-height:0;overflow:auto;background:#fff}.share-contact{height:62px;width:100%;display:flex;align-items:center;gap:12px;padding:0 16px;border:0;border-bottom:1px solid #f1f1f1;background:#fff;text-align:left;font:inherit;font-size:14px;color:#111}.share-contact:active{background:#f5f5f5}.share-contact:disabled{opacity:.55}.share-picker-empty{padding:28px 16px;text-align:center;color:#999;font-size:14px}.share-contact .avatar{width:42px;height:42px;object-fit:cover;border-radius:4px}@keyframes share-picker-in{from{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes share-picker-out{from{transform:translateY(0)}to{transform:translateY(100%)}}@media(prefers-reduced-motion:reduce){.share-picker.open .share-picker-panel,.share-picker.closing .share-picker-panel{animation:none;transform:translateY(0)}}.modal{position:absolute;inset:0;z-index:10;background:#0006;display:flex;align-items:center;justify-content:center;padding:20px}.modal-card{width:100%;max-width:340px;background:#fff;border-radius:10px;overflow:hidden}.inject-editor-modal{background:rgba(0,0,0,.5);padding:16px}.inject-editor-modal .modal-card{max-width:360px;border-radius:14px;box-shadow:0 18px 50px rgba(0,0,0,.2);overflow:hidden}.inject-editor-modal .modal-card header{height:auto;min-height:66px;padding:16px 18px 8px;border-bottom:0;display:block}.inject-editor-modal .modal-card header button{display:none}.inject-editor-modal .modal-card header strong{font-size:20px;font-weight:650;color:#17191d}.inject-editor-modal .modal-body{padding:0 18px 14px}.inject-editor-modal .modal-foot{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:12px 18px 16px;border-top:1px solid #f0f1f2}.inject-subtitle{color:#8a9198;font-size:12px;line-height:1.5;margin-bottom:14px}.inject-label{display:block;color:#59636d;font-size:12px;margin-bottom:6px}.inject-textarea{display:block;width:100%;min-height:126px;max-height:40vh;resize:none;border:1px solid #dfe3e6;border-radius:9px;background:#fafbfc;padding:12px;color:#17191d;font:15px/1.55 inherit;outline:none;box-shadow:inset 0 1px 2px rgba(0,0,0,.03)}.inject-textarea:focus{border-color:#07c160;background:#fff;box-shadow:0 0 0 3px rgba(7,193,96,.12)}.inject-cancel,.inject-submit{height:38px;min-width:76px;padding:0 15px;border-radius:7px;font-size:14px}.inject-cancel{border:0;background:#f1f3f4;color:#59636d}.inject-submit{border:0}.inject-submit:disabled{opacity:.65}.green-btn{border:0;background:#07c160;color:#fff;border-radius:6px;padding:9px 16px;font:inherit}.modal-card header{height:48px;display:flex;align-items:center;justify-content:space-between;padding:0 12px;border-bottom:1px solid #eee}.modal-card header button{border:0;background:none;font-size:22px}.modal-body{max-height:60vh;overflow:auto;padding:12px}.modal-row{display:flex;align-items:center;gap:9px;padding:8px 0}.flex{flex:1}.modal-foot{padding:10px}.toast{position:absolute;z-index:20;left:50%;bottom:80px;transform:translateX(-50%);background:#333;color:#fff;padding:9px 14px;border-radius:6px;font-size:12px;opacity:0;pointer-events:none;transition:opacity .15s}.toast.show{opacity:1}.profile{cursor:pointer}.profile>img{object-fit:cover}.quick-add-sheet{align-items:flex-end;justify-content:center;padding:0;background:rgba(0,0,0,.32)}.quick-add-sheet .modal-card{width:100%;max-width:480px;border-radius:18px 18px 0 0;overflow:hidden;transform:translateY(100%);transition:transform .22s cubic-bezier(.22,.61,.36,1)}.quick-add-sheet.quick-add-open .modal-card{transform:translateY(0)}.quick-add-sheet .modal-card header{height:58px;padding:0 16px;background:#fff;border-bottom:1px solid #f0f1f2}.quick-add-sheet .modal-card header #modalBack{display:none}.quick-add-sheet .modal-card header strong{font-size:17px;font-weight:650}.quick-add-sheet .modal-body{padding:14px 20px 18px}.quick-add-content{text-align:center}.quick-add-icon{width:48px;height:48px;margin:2px auto 10px;border-radius:15px;background:#e7f7ed;color:#07c160;font-size:32px;line-height:48px;font-weight:300}.quick-add-content p{margin:0 0 22px;color:#8a9299;font-size:13px}.quick-add-label{display:block;margin-bottom:8px;text-align:left;color:#57606a;font-size:13px}.quick-add-input{display:block;width:100%;height:46px;padding:0 13px;border:1px solid #e3e6e8;border-radius:9px;background:#f7f8f9;color:#17191d;font-family:inherit;font-size:15px;outline:none}.quick-add-input:focus{border-color:#07c160;background:#fff;box-shadow:0 0 0 3px rgba(7,193,96,.11)}.quick-add-sheet .modal-foot{display:flex;gap:10px;padding:10px 20px max(14px,env(safe-area-inset-bottom));border-top:1px solid #f0f1f2}.quick-add-cancel,.quick-add-submit{height:43px;flex:1;border-radius:8px;font-size:14px}.quick-add-cancel{border:0;background:#f1f3f4;color:#53606b}.quick-add-submit{padding:0 12px}.quick-add-submit:disabled{opacity:.65}@media(prefers-reduced-motion:reduce){.quick-add-sheet .modal-card{transition:none}.quick-add-sheet.quick-add-open .modal-card{transform:translateY(0)}}.profile-editor{display:flex;flex-direction:column;align-items:center;gap:14px}.avatar-pick{border:0;background:transparent;padding:0;display:flex;flex-direction:column;align-items:center;gap:6px;color:#57606a;font-size:13px}.avatar-pick img{width:82px;height:82px;object-fit:cover;border-radius:8px}.field{width:100%;height:42px;padding:0 12px;border:1px solid #ddd;border-radius:6px;font:inherit}.crop-tools{width:100%;display:flex;flex-direction:column;align-items:center;gap:10px}.crop-window{width:240px;height:240px;overflow:hidden;border-radius:50%;touch-action:none;background:#eee}.crop-window canvas{width:100%;height:100%;touch-action:none}.crop-tools input[type=range]{width:100%}.crop-tools button,.text-btn{border:0;background:transparent;color:#57606a;padding:8px;font:inherit}@media(max-width:520px){.app{width:100%;height:100dvh;min-height:0;border:0;border-radius:0;box-shadow:none;left:0;top:0;transform:none}.chat-head{padding-top:env(safe-area-inset-top);height:calc(48px + env(safe-area-inset-top))}.composer{padding-bottom:max(5px,env(safe-area-inset-bottom))}}.chat-entering{animation:chat-slide-in .18s cubic-bezier(.22,.61,.36,1) both;will-change:transform}.payment-screen.payment-entering{animation:payment-slide-in .18s cubic-bezier(.22,.61,.36,1) both;will-change:transform}.chat-leaving{animation:chat-slide-out .15s cubic-bezier(.4,0,1,1) both;will-change:transform}@keyframes chat-slide-in{from{transform:translate3d(100%,0,0)}to{transform:translate3d(0,0,0)}}@keyframes payment-slide-in{from{transform:translate3d(16px,0,0)}to{transform:translate3d(0,0,0)}}@keyframes chat-slide-out{from{transform:translate3d(0,0,0)}to{transform:translate3d(100%,0,0)}}@media(prefers-reduced-motion:reduce){.chat-entering,.chat-leaving,.payment-screen.payment-entering{animation:none;will-change:auto}}
/* Screenshot menus: image and hit zones share one responsive box. */
.social-screen{background:#f3f3f3}.social-menu{position:relative;width:100%;overflow:hidden}.social-menu-image{display:block;width:100%;height:auto;pointer-events:none;user-select:none}.social-hit{position:absolute;left:0;width:100%;margin:0;padding:0;border:0;background:transparent;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}.social-hit:active{background:rgba(0,0,0,.045)}.social-hit:focus-visible{outline:2px solid #07c160;outline-offset:-3px}.social-contact-count{text-align:center;padding:22px 12px;color:#999;font-size:14px}#screen-me>.profile{width:100%;height:auto;min-height:0;aspect-ratio:auto;margin:0;padding:0 20px 14px;align-items:flex-start;gap:13px;background:#fff;cursor:pointer}#screen-me>.profile>img{width:min(58px,12dvh);height:min(58px,12dvh);min-width:0;min-height:0;object-fit:cover;border-radius:5px}#screen-me>.profile>.profile-details{min-width:0;flex:1;display:flex;flex-direction:column;padding-top:7px;gap:0}#screen-me>.profile .profile-name-row{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0;margin:0 0 9px}#screen-me>.profile .profile-name-row strong{display:block;min-width:0;flex:1;margin:0;overflow-wrap:anywhere;font-size:19px;font-weight:700;line-height:1.25}#screen-me>.profile .profile-id-row{display:flex;align-items:center;gap:8px;min-width:0;margin:0 0 11px}#screen-me>.profile .profile-id-row small{display:block;min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;overflow-wrap:normal;font-size:16px;line-height:1.25;color:#888}#screen-me>.profile .profile-id-chevron{flex:none;color:#b7b7b7;font-size:20px;line-height:1}#screen-me>.profile .profile-status-key{display:block;width:min(70px,100%);height:auto;margin:0;border-radius:0;object-fit:contain;object-position:left center;flex:none}#screen-me>.profile .profile-qr-key{display:block;width:16px;height:16px;min-width:16px;min-height:16px;align-self:auto;margin:0;border-radius:0;object-fit:contain;flex:none}.social-settings-button{display:block;width:100%;border:0;background:white;text-align:left;padding:17px;font:inherit;border-bottom:1px solid #eee}.social-settings-button.logout{color:#d33}.payment-active .topbar,.payment-active .tabbar{display:none}.payment-screen{min-height:100%;padding:0;background:#f7f7f7}.payment-shot{position:relative;width:100%;container-type:inline-size;line-height:0}.payment-shot-image{display:block;width:100%;height:auto;max-width:100%;user-select:none;-webkit-user-drag:none}.payment-back{position:absolute;left:3.5%;top:1.5%;width:10%;height:5%;margin:0;padding:0;border:0;background:transparent;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}.payment-wallet-hit{position:absolute;left:65%;top:13.8%;width:23%;height:15%;margin:0;padding:0;border:0;border-radius:0;background:transparent;cursor:pointer;touch-action:pan-y;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.payment-wallet-hit:focus-visible{outline:2px solid rgba(255,255,255,.65);outline-offset:-3px}.payment-wallet-amount{position:absolute;left:65%;top:23.6%;width:18%;height:3.6%;display:flex;align-items:center;justify-content:center;overflow:visible;padding:1px 2px;background:#2bad67;color:#9dd6b5;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:4cqw;font-weight:400;line-height:1.2;white-space:nowrap;text-align:center;pointer-events:none;user-select:none}.payment-wallet-amount.payment-wallet-amount-long{font-size:3.2cqw;line-height:1.25}.payment-wallet-amount.payment-wallet-amount-extra-long{font-size:2.55cqw;line-height:1.25}.wallet-edit-label{display:block;margin-bottom:7px;color:#5d6670;font-size:13px}.wallet-input-wrap{height:50px;display:flex;align-items:center;gap:8px;padding:0 13px;border:1px solid #dfe4e7;border-radius:8px;background:#fafbfc;color:#323940;font-size:20px}.wallet-input{width:100%;min-width:0;border:0;outline:0;background:transparent;font:600 20px/1 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:inherit}.wallet-edit-hint{margin:9px 0 0;color:#92999f;font-size:11px;line-height:1.5}
.topbar[data-tab="contacts"] #searchBtn{display:none}.topbar[data-tab="contacts"] #addBtn img{width:28px;height:auto;max-width:28px;max-height:28px}.topbar[data-tab="discover"] .top-actions,.topbar[data-tab="me"] .top-actions{display:none}.topbar[data-tab="me"]{background:#fff}.topbar[data-tab="me"] .page-title{visibility:hidden}
#screen-me>.profile+.social-menu{margin-top:0}
/* 微信页：只调整尺寸、底色，并补齐列表分隔线 */
#screen-chat{background:#fff}
.topbar[data-tab="chat"]{height:52px}
.topbar[data-tab="chat"] .page-title,.topbar[data-tab="chat"] .unread-count{font-size:20px}
.topbar[data-tab="chat"] .icon-btn img{max-width:40px;max-height:36px}
.topbar[data-tab="chat"] .icon-btn.plus img{max-width:38px;max-height:37px}
.topbar[data-tab="chat"]~.tabbar{height:61px}
.topbar[data-tab="chat"]~.tabbar .tab{height:60px;font-size:12px}
.topbar[data-tab="chat"]~.tabbar .tab img{width:26px;height:26px}
.topbar[data-tab="chat"]~.tabbar .tab span:not(.tab-unread-badge){height:16px;line-height:16px}

/* 统一微信、通讯录、发现的顶栏；“我”页仅统一底部导航 */
.topbar[data-tab="contacts"],.topbar[data-tab="discover"]{height:52px}
.topbar[data-tab="contacts"] .page-title,.topbar[data-tab="contacts"] .unread-count,.topbar[data-tab="discover"] .page-title,.topbar[data-tab="discover"] .unread-count{font-size:20px}
.topbar[data-tab="contacts"] .icon-btn img,.topbar[data-tab="discover"] .icon-btn img{max-width:40px;max-height:36px}
.topbar[data-tab="contacts"] .icon-btn.plus img,.topbar[data-tab="discover"] .icon-btn.plus img{max-width:38px;max-height:37px}
.topbar[data-tab="contacts"] #addBtn img{width:auto;max-width:38px;max-height:37px}
.topbar[data-tab="chat"]~.tabbar,.topbar[data-tab="contacts"]~.tabbar,.topbar[data-tab="discover"]~.tabbar,.topbar[data-tab="me"]~.tabbar{height:61px}
.topbar[data-tab="contacts"]~.tabbar .tab,.topbar[data-tab="discover"]~.tabbar .tab,.topbar[data-tab="me"]~.tabbar .tab{height:60px;font-size:12px}
.topbar[data-tab="contacts"]~.tabbar .tab img,.topbar[data-tab="discover"]~.tabbar .tab img,.topbar[data-tab="me"]~.tabbar .tab img{width:26px;height:26px}
.topbar[data-tab="contacts"]~.tabbar .tab span:not(.tab-unread-badge),.topbar[data-tab="discover"]~.tabbar .tab span:not(.tab-unread-badge),.topbar[data-tab="me"]~.tabbar .tab span:not(.tab-unread-badge){height:16px;line-height:16px}
#conversationList .row{height:68px;border-bottom:0}
#conversationList .row-main,#conversationList .row-actions,#conversationList .row-action{height:68px}
#conversationList .row-main::after{content:"";position:absolute;left:73px;right:0;bottom:0;height:1px;background:#e6e6e6;pointer-events:none}
#conversationList .row-name{font-size:20px}
#conversationList .row-time{font-size:14px}
#conversationList .row-preview{font-size:16px}

/* 聊天对话页：贴近标准图的头像、消息字号与输入区比例；保留发送方布局和配色 */
@media(max-width:520px){.chat-head{height:calc(54px + env(safe-area-inset-top))}.chat-head strong{font-size:18px}.chat-head #backBtn{width:40px;height:42px;font-size:32px}.chat-head #chatInfo{width:40px;height:42px}.messages{padding-top:4px;gap:9px}.message .avatar{width:40px;height:40px;border-radius:5px}.bubble{max-width:calc(100% - 122px);min-height:34px;padding:10px 12px;border-radius:5px;font-size:17px;line-height:1.32}.bubble:before{top:11px;border-width:5px 6px 5px 0}.message.mine .bubble:before{border-width:5px 0 5px 6px}.message-time{font-size:12px;line-height:20px}.composer{height:61px}.composer input{height:43px}}
/* 长按菜单：只保留面板图，尖角独立定位并可在上方空间不足时翻到气泡下方 */
.context-reference{clip-path:inset(0 0 3.72093% 0)}
.context::after{content:"";position:absolute;z-index:10;left:var(--context-arrow-x,62.1%);width:3.38983%;height:3.72093%;transform:translateX(-50%);background:#4c4c4c;clip-path:polygon(0 0,100% 0,50% 100%);pointer-events:none}
.context.context-below::after{top:0;clip-path:polygon(0 100%,100% 100%,50% 0)}
.context:not(.context-below)::after{top:96.27907%}
.context.context-below .context-reference,.context.context-below .context-action{transform:translateY(var(--context-arrow-h,0px))}
