*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;height:100%;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;background:#f5f6f8;color:#1a1a1a;font-size:15px}
#app{height:100%;position:relative;overflow:hidden;max-width:520px;margin:0 auto;background:#f5f6f8;box-shadow:0 0 30px rgba(0,0,0,.06)}
.page{position:absolute;inset:0;display:none;flex-direction:column}
.page.active{display:flex}
.hidden{display:none!important}

/* 登录 */
.auth-wrap{flex:1;padding:34px 26px;display:flex;flex-direction:column;justify-content:center;overflow-y:auto}
.brand{text-align:center;margin-bottom:24px}
.logo{width:62px;height:62px;border-radius:17px;background:linear-gradient(135deg,#2468f2,#5b8cff);color:#fff;font-size:28px;font-weight:700;display:flex;align-items:center;justify-content:center;margin:0 auto 12px;box-shadow:0 8px 20px rgba(36,104,242,.28)}
.brand h1{margin:0;font-size:23px;letter-spacing:1px}
.brand .sub{margin:6px 0 0;color:#8b95a8;font-size:13px}
.tabs{display:flex;background:#e9ebf0;border-radius:12px;padding:4px;margin-bottom:18px}
.tab{flex:1;border:0;background:transparent;padding:9px;border-radius:9px;font-size:15px;color:#667;cursor:pointer;font-weight:500;font-family:inherit}
.tab.active{background:#fff;color:#2468f2;box-shadow:0 2px 6px rgba(0,0,0,.06)}
.pane{display:none}.pane.active{display:block}
.field{margin-bottom:13px}
.field label{display:block;font-size:13px;color:#7a8496;margin-bottom:6px;font-weight:500}
.field input,.field textarea{width:100%;padding:12px 14px;border:1px solid #dfe3ea;border-radius:10px;font-size:15px;background:#fff;outline:none;transition:.15s;font-family:inherit}
.field input:focus{border-color:#2468f2;box-shadow:0 0 0 3px rgba(36,104,242,.1)}
.code-row{display:flex;gap:8px}
.code-row input{flex:1;min-width:0}
.btn{border:0;border-radius:10px;padding:13px;font-size:15px;font-weight:600;cursor:pointer;transition:.15s;font-family:inherit}
.btn.primary{background:#2468f2;color:#fff;width:100%}
.btn.primary:active{background:#1b55d4}
.btn.primary:disabled{background:#a9c0f5;cursor:not-allowed}
.btn.ghost{background:#eef2fb;color:#2468f2;border:1px solid #d6e1fb;white-space:nowrap;padding:12px 13px;border-radius:10px;font-size:14px;font-weight:600;cursor:pointer;font-family:inherit}
.btn.small{padding:8px 14px;font-size:14px;border-radius:8px;width:auto}
.btn.danger{background:#feeceb;color:#e34b3d}
.btn.block{width:100%;margin-top:16px;padding:13px}
.link{background:none;border:0;color:#2468f2;font-size:13px;cursor:pointer;padding:4px 0;font-family:inherit}
.row-between{display:flex;justify-content:space-between;margin-top:12px}
.hint{color:#98a2b3;font-size:12px;margin:12px 0 0}
.hint.center{text-align:center}
.hint.error{color:#e34b3d}

/* 主界面 */
.topbar{height:52px;display:flex;align-items:center;justify-content:space-between;padding:0 14px;background:#fff;border-bottom:1px solid #eceff4;flex-shrink:0}
.topbar h2{margin:0;font-size:17px;font-weight:600}
.icon-btn{background:none;border:0;font-size:19px;color:#4a5568;cursor:pointer;width:34px;height:34px;border-radius:8px;display:flex;align-items:center;justify-content:center;flex-shrink:0;font-family:inherit}
.icon-btn:active{background:#f0f2f5}
#content{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch}
.view{display:none;padding-bottom:8px}
.view.active{display:block}
.list{background:#fff}
.list-item{display:flex;align-items:center;gap:11px;padding:12px 14px;border-bottom:1px solid #f2f4f7;cursor:pointer;position:relative}
.list-item:active{background:#f8f9fb}
.avatar{width:43px;height:43px;border-radius:10px;background:linear-gradient(135deg,#8fa8e8,#6b8fe0);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:600;font-size:16px;flex-shrink:0;overflow:hidden}
.avatar img{width:100%;height:100%;object-fit:cover}
.avatar.big{width:58px;height:58px;border-radius:14px;font-size:23px}
.item-main{flex:1;min-width:0}
.item-title{display:flex;justify-content:space-between;align-items:baseline;gap:8px}
.item-name{font-weight:500;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.item-time{font-size:11px;color:#a8b0bf;flex-shrink:0}
.item-desc{font-size:13px;color:#8b95a8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:3px}
.badge{background:#e34b3d;color:#fff;font-size:11px;min-width:18px;height:18px;border-radius:9px;display:flex;align-items:center;justify-content:center;padding:0 5px;font-style:normal;font-weight:600}
.empty{text-align:center;color:#a8b0bf;padding:64px 20px;font-size:14px;line-height:1.9}
.empty span{font-size:12px;color:#c3cad6}

/* 通讯录 */
.contact-entry{background:#fff;margin-bottom:8px}
.entry{display:flex;align-items:center;gap:12px;width:100%;padding:14px;border:0;background:none;border-bottom:1px solid #f2f4f7;font-size:15px;cursor:pointer;text-align:left;font-family:inherit;color:#1a1a1a}
.entry-icon{font-size:17px;width:22px;text-align:center}
.entry .badge{margin-left:auto}
.section-label{padding:10px 14px 6px;font-size:12px;color:#8b95a8;font-weight:600;background:#f5f6f8}

/* 朋友圈 */
.moment-compose{background:#fff;padding:14px;margin-bottom:8px}
.moment-compose textarea{width:100%;border:0;outline:none;font-size:15px;font-family:inherit;resize:none;min-height:52px;background:#f7f8fa;border-radius:10px;padding:10px}
.compose-actions{display:flex;justify-content:space-between;align-items:center;margin-top:10px}
.preview{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}
.preview .pv{position:relative}
.preview img{width:66px;height:66px;object-fit:cover;border-radius:8px}
.preview .pv button{position:absolute;top:-6px;right:-6px;background:#e34b3d;color:#fff;border:0;border-radius:50%;width:19px;height:19px;font-size:11px;cursor:pointer;line-height:1}
.moment-card{background:#fff;margin-bottom:8px;padding:15px}
.moment-head{display:flex;gap:10px;align-items:center;margin-bottom:9px}
.moment-name{font-weight:600;font-size:14px;color:#3b5bdb}
.moment-time{font-size:11px;color:#a8b0bf}
.moment-text{font-size:15px;line-height:1.6;white-space:pre-wrap;word-break:break-word;margin-bottom:9px}
.moment-imgs{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;margin-bottom:9px}
.moment-imgs img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:6px;cursor:pointer}
.moment-acts{display:flex;gap:16px;padding-top:8px;border-top:1px solid #f2f4f7}
.moment-acts button{background:none;border:0;color:#6b7280;font-size:13px;cursor:pointer;padding:4px 0;font-family:inherit}
.moment-acts button.liked{color:#e34b3d;font-weight:600}
.moment-likes{background:#f7f8fa;border-radius:8px;padding:8px 10px;font-size:13px;color:#3b5bdb;margin-bottom:7px;line-height:1.7}
.moment-comments{background:#f7f8fa;border-radius:8px;padding:8px 10px;font-size:13px;line-height:1.8}
.moment-comments b{color:#3b5bdb;font-weight:600}
.comment-input{display:flex;gap:7px;margin-top:7px}
.comment-input input{flex:1;padding:7px 10px;border:1px solid #dfe3ea;border-radius:8px;font-size:13px;outline:none;font-family:inherit}

/* 我的 */
.profile-card{background:#fff;padding:18px 14px;display:flex;align-items:center;gap:13px;margin-bottom:8px}
.profile-info{flex:1;min-width:0}
.profile-info .name{font-size:17px;font-weight:600}
.profile-info .uid{font-size:12px;color:#8b95a8;margin-top:3px}
.profile-info .sig{font-size:13px;color:#a8b0bf;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.settings-list{background:#fff;margin-bottom:8px}
.setting-item{display:flex;justify-content:space-between;padding:14px;border-bottom:1px solid #f2f4f7;font-size:15px}
.setting-item:last-child{border-bottom:0}
.setting-item em{color:#8b95a8;font-style:normal;font-size:14px;max-width:60%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* 底部导航 */
.tabbar{height:56px;display:flex;background:#fff;border-top:1px solid #eceff4;flex-shrink:0}
.tabbar-item{flex:1;border:0;background:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:11px;color:#98a2b3;cursor:pointer;position:relative;font-family:inherit}
.tabbar-item.active{color:#2468f2}
.tabbar-item .ti{font-size:18px;line-height:1}
.tabbar-item .badge{position:absolute;top:5px;left:50%;margin-left:4px}

/* 聊天 */
.chat-topbar{justify-content:flex-start;gap:4px}
.chat-title{flex:1;text-align:center;min-width:0}
.chat-title h3{margin:0;font-size:16px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chat-title small{font-size:11px;color:#8b95a8}
.msg-list{flex:1;overflow-y:auto;padding:12px;background:#eef0f4;display:flex;flex-direction:column;gap:11px}
.msg{display:flex;gap:8px}
.msg.mine{flex-direction:row-reverse}
.msg .avatar{width:36px;height:36px;border-radius:8px;font-size:14px}
.msg-body{max-width:74%}
.msg-sender{font-size:11px;color:#8b95a8;margin-bottom:3px;padding-left:2px}
.msg.mine .msg-sender{text-align:right;padding-right:2px}
.bubble{background:#fff;padding:9px 12px;border-radius:10px;font-size:15px;line-height:1.55;word-break:break-word;white-space:pre-wrap;box-shadow:0 1px 2px rgba(0,0,0,.04)}
.msg.mine .bubble{background:#2468f2;color:#fff}
.bubble img{max-width:190px;border-radius:8px;display:block;cursor:pointer}
.bubble.revoked{background:#e5e7eb;color:#9aa3b2;font-style:italic;font-size:13px}
.msg-time{font-size:10px;color:#a8b0bf;text-align:center;margin:5px 0}
.msg-actions{display:flex;gap:9px;margin-top:4px;font-size:11px}
.msg-actions button{background:none;border:0;color:#98a2b3;font-size:11px;cursor:pointer;padding:0;font-family:inherit}
.msg.mine .msg-actions{justify-content:flex-end}
.composer{display:flex;gap:7px;padding:9px 11px;background:#fff;border-top:1px solid #eceff4;align-items:flex-end;flex-shrink:0}
.composer textarea{flex:1;border:1px solid #e4e8ef;border-radius:18px;padding:9px 13px;font-size:15px;font-family:inherit;resize:none;outline:none;max-height:100px;line-height:1.4;background:#f7f8fa}
.composer textarea:focus{border-color:#c3d4f7;background:#fff}

/* 弹层 */
.sheet-mask{position:absolute;inset:0;background:rgba(0,0,0,.42);display:flex;align-items:flex-end;z-index:50}
.sheet{background:#fff;width:100%;max-height:82%;border-radius:18px 18px 0 0;display:flex;flex-direction:column;animation:up .2s ease}
@keyframes up{from{transform:translateY(40px);opacity:.6}to{transform:translateY(0);opacity:1}}
.sheet-header{display:flex;justify-content:space-between;align-items:center;padding:15px;border-bottom:1px solid #f2f4f7}
.sheet-body{padding:15px;overflow-y:auto;flex:1}
.toast{position:absolute;left:50%;top:46%;transform:translate(-50%,-50%);background:rgba(28,32,42,.92);color:#fff;padding:11px 19px;border-radius:10px;font-size:14px;z-index:99;max-width:80%;text-align:center;line-height:1.5}
.user-row{display:flex;align-items:center;gap:11px;padding:11px 0;border-bottom:1px solid #f2f4f7}
.user-row:last-child{border-bottom:0}
.user-row .grow{flex:1;min-width:0}
.user-row .nm{font-weight:500;font-size:14px}
.user-row .ud{font-size:12px;color:#98a2b3;margin-top:2px}
.loading{text-align:center;color:#a8b0bf;font-size:13px;padding:16px}
