@import "https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&display=swap";:root{--wc-green:#07c160;--wc-green-hover:#06ad56;--wc-green-light:#e6f9ee;--bg-main:#ededed;--bg-white:#fff;--bg-header:#ededed;--bg-input:#f7f7f7;--bg-overlay:#00000073;--text-primary:#191919;--text-secondary:#666;--text-muted:#b2b2b2;--msg-self:#95ec69;--msg-other:#fff;--border-light:#e5e5e5;--tab-height:56px;--header-height:48px;--shadow-sm:0 1px 3px #0000000f;--radius-sm:6px;--radius-md:10px;--phone-width:420px}*{box-sizing:border-box;margin:0;padding:0}body{color:var(--text-primary);-webkit-font-smoothing:antialiased;background:#1a1a2e;height:100vh;font-family:Noto Sans SC,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;overflow:hidden}#root{height:100vh}.phone-frame{width:var(--phone-width);background:var(--bg-main);max-width:100vw;height:100vh;margin:0 auto;position:relative;overflow:hidden;box-shadow:0 0 60px #0000004d}@media (width<=420px){.phone-frame{width:100%;box-shadow:none}}::-webkit-scrollbar{width:0;height:0}.login-page{background:linear-gradient(135deg,#1a1a2e 0%,#16213e 50%,#0f3460 100%);justify-content:center;align-items:center;height:100vh;display:flex;position:relative;overflow:hidden}.login-page:before{content:"";background:radial-gradient(circle,#07c16026 0%,#0000 70%);border-radius:50%;width:500px;height:500px;animation:4s ease-in-out infinite pulse;position:absolute;top:-100px;right:-100px}@keyframes pulse{0%,to{opacity:.5;transform:scale(1)}50%{opacity:1;transform:scale(1.1)}}.login-card{-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);border-radius:var(--radius-md);z-index:1;background:#ffffff0d;border:1px solid #ffffff1a;width:360px;max-width:90vw;padding:48px 32px;animation:.6s ease-out slideUp}@keyframes slideUp{0%{opacity:0;transform:translateY(30px)}to{opacity:1;transform:translateY(0)}}.login-card h1{color:#fff;text-align:center;margin-bottom:28px;font-size:26px;font-weight:700}.login-card .logo-icon{margin:0 auto 16px;display:block}.form-group{margin-bottom:18px}.form-group label{color:#ffffffb3;margin-bottom:6px;font-size:13px;font-weight:500;display:block}.form-group input{border-radius:var(--radius-sm);color:#fff;background:#ffffff14;border:1px solid #ffffff1f;outline:none;width:100%;padding:11px 14px;font-size:14px;transition:all .2s}.form-group input::placeholder{color:#ffffff4d}.form-group input:focus{border-color:var(--wc-green);background:#ffffff1f;box-shadow:0 0 0 3px #07c16026}.btn-primary{background:var(--wc-green);color:#fff;border-radius:var(--radius-sm);cursor:pointer;border:none;width:100%;margin-top:6px;padding:12px;font-size:15px;font-weight:600;transition:all .2s}.btn-primary:hover{background:var(--wc-green-hover)}.btn-primary:disabled{opacity:.6;cursor:not-allowed}.login-toggle{text-align:center;color:#ffffff80;margin-top:18px;font-size:13px}.login-toggle span{color:var(--wc-green);cursor:pointer;font-weight:500}.login-toggle span:hover{text-decoration:underline}.download-android-btn{border-radius:var(--radius-sm);color:var(--wc-green);cursor:pointer;background:#ffffff0f;border:1px solid #ffffff1f;justify-content:center;align-items:center;gap:8px;margin-top:20px;padding:10px 20px;font-size:13px;font-weight:500;text-decoration:none;transition:all .2s;display:flex}.download-android-btn:hover{border-color:var(--wc-green);background:#07c1601a}.error-msg{color:#ff4d4f;border-radius:var(--radius-sm);background:#ff4d4f26;border-left:3px solid #ff4d4f;margin-bottom:14px;padding:10px 14px;font-size:13px}.app-main{flex-direction:column;height:100vh;display:flex;position:relative}.top-header{height:var(--header-height);background:var(--bg-header);padding:0 16px;padding-top:env(safe-area-inset-top,0px);border-bottom:.5px solid var(--border-light);flex-shrink:0;justify-content:space-between;align-items:center;display:flex}.top-header .header-title{font-size:17px;font-weight:600}.top-header .header-actions{gap:16px;display:flex}.top-header .header-actions button{cursor:pointer;color:var(--text-primary);background:0 0;border:none;padding:4px;font-size:20px}.bottom-tabs{height:var(--tab-height);background:var(--bg-header);border-top:.5px solid var(--border-light);flex-shrink:0;display:flex}.tab-item{cursor:pointer;color:var(--text-muted);-webkit-tap-highlight-color:transparent;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:2px;transition:color .15s;display:flex;position:relative}.tab-item.active{color:var(--wc-green)}.tab-svg{width:24px;height:24px}.tab-item.active .tab-svg{stroke:var(--wc-green)}.tab-item .tab-label{font-size:10px;font-weight:500}.tab-item .tab-badge{color:#fff;background:#f44336;border-radius:8px;justify-content:center;align-items:center;min-width:16px;height:16px;padding:0 4px;font-size:10px;font-weight:600;display:flex;position:absolute;top:4px;right:50%;transform:translate(16px)}.tab-content{background:var(--bg-main);flex:1;overflow-y:auto}.conv-list-item{background:var(--bg-white);border-bottom:.5px solid var(--border-light);cursor:pointer;-webkit-tap-highlight-color:#0000000d;align-items:center;gap:12px;padding:14px 16px;transition:background .1s;display:flex}.conv-list-item:active{background:#d9d9d9}.conv-avatar{border-radius:var(--radius-sm);flex-shrink:0;width:48px;height:48px;position:relative;overflow:hidden}.conv-avatar img{object-fit:cover;width:100%;height:100%}.conv-avatar .avatar-placeholder{color:#fff;justify-content:center;align-items:center;width:100%;height:100%;font-size:18px;font-weight:700;display:flex}.conv-avatar .online-dot{background:var(--wc-green);border:2px solid var(--bg-white);border-radius:50%;width:10px;height:10px;position:absolute;bottom:0;right:0}.conv-info{flex:1;min-width:0}.conv-info .conv-name{white-space:nowrap;text-overflow:ellipsis;font-size:16px;font-weight:500;overflow:hidden}.conv-info .conv-last-msg{color:var(--text-muted);white-space:nowrap;text-overflow:ellipsis;margin-top:4px;font-size:13px;overflow:hidden}.conv-meta{flex-direction:column;flex-shrink:0;align-items:flex-end;gap:6px;display:flex}.conv-meta .conv-time{color:var(--text-muted);font-size:11px}.conv-meta .unread-badge{color:#fff;background:#f44336;border-radius:9px;justify-content:center;align-items:center;min-width:18px;height:18px;padding:0 5px;font-size:10px;font-weight:600;display:flex}.conv-avatar-group,.conv-avatar-group img,.conv-avatar-group .avatar-group{border-radius:10px}.group-corner-badge{background:#fff;border-radius:50%;justify-content:center;align-items:center;width:18px;height:18px;font-size:10px;display:flex;position:absolute;bottom:-2px;right:-2px;box-shadow:0 1px 2px #0003}.group-tag{background:var(--wc-green);color:#fff;vertical-align:middle;border-radius:3px;margin-right:5px;padding:1px 4px;font-size:10px;font-weight:600;line-height:1.4;display:inline-block}.chat-view{background:var(--bg-main);z-index:100;flex-direction:column;animation:.25s ease-out slideIn;display:flex;position:absolute;inset:0}@keyframes slideIn{0%{transform:translate(100%)}to{transform:translate(0)}}.chat-header{height:var(--header-height);background:var(--bg-header);border-bottom:.5px solid var(--border-light);flex-shrink:0;align-items:center;gap:8px;padding:0 12px;display:flex}.chat-header .back-btn{cursor:pointer;color:var(--text-primary);background:0 0;border:none;padding:4px 8px 4px 0;font-size:22px}.chat-header .chat-title{text-align:center;white-space:nowrap;text-overflow:ellipsis;flex:1;font-size:17px;font-weight:600;overflow:hidden}.chat-header .chat-more{cursor:pointer;color:var(--text-primary);background:0 0;border:none;padding:4px 0 4px 8px;font-size:20px}.message-list{flex-direction:column;flex:1;gap:12px;padding:12px 16px;display:flex;overflow-y:auto}.msg-wrapper{gap:8px;max-width:80%;animation:.15s ease-out msgIn;display:flex}@keyframes msgIn{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}.msg-wrapper.self{flex-direction:row-reverse;align-self:flex-end}.msg-wrapper .msg-avatar{border-radius:var(--radius-sm);flex-shrink:0;width:40px;height:40px;overflow:hidden}.msg-wrapper .msg-avatar img{object-fit:cover;width:100%;height:100%}.msg-wrapper .msg-avatar .avatar-placeholder{color:#fff;justify-content:center;align-items:center;width:100%;height:100%;font-size:14px;font-weight:700;display:flex}.msg-body{flex-direction:column;gap:3px;display:flex}.msg-sender{color:var(--text-secondary);font-size:12px}.self .msg-sender{text-align:right}.msg-bubble{border-radius:var(--radius-sm);word-break:break-word;padding:10px 12px;font-size:15px;line-height:1.5;position:relative}.msg-bubble:before{content:"";border:6px solid #0000;width:0;height:0;position:absolute;top:12px}.msg-wrapper:not(.self) .msg-bubble{background:var(--msg-other);border-top-left-radius:0}.msg-wrapper:not(.self) .msg-bubble:before{border-right-color:var(--msg-other);border-left:none;left:-11px}.msg-wrapper.self .msg-bubble{background:var(--msg-self);border-top-right-radius:0}.msg-wrapper.self .msg-bubble:before{border-left-color:var(--msg-self);border-right:none;right:-11px}.msg-image-container{border-radius:var(--radius-sm);background:0 0;overflow:hidden}.msg-image-container img.msg-image{border-radius:var(--radius-sm);cursor:pointer;max-width:140px;max-height:140px;display:block}.msg-time{color:var(--text-muted);font-size:10px}.self .msg-time{text-align:right}.msg-system{text-align:center;padding:6px 0}.msg-system span{color:var(--text-secondary);background:#cfcfcf;border-radius:4px;padding:3px 10px;font-size:12px}.typing-indicator{color:var(--text-muted);padding:2px 0;font-size:12px;font-style:italic}.input-area{background:var(--bg-input);border-top:.5px solid var(--border-light);flex-shrink:0;align-items:flex-end;gap:8px;padding:8px 12px;display:flex}.input-area .input-actions{gap:4px;padding-bottom:4px;display:flex}.input-area .input-actions button{cursor:pointer;width:32px;height:32px;color:var(--text-secondary);background:0 0;border:none;justify-content:center;align-items:center;font-size:20px;display:flex}.input-area textarea{resize:none;border:1px solid var(--border-light);border-radius:var(--radius-sm);min-height:36px;max-height:100px;color:var(--text-primary);background:var(--bg-white);outline:none;flex:1;padding:8px 12px;font-family:inherit;font-size:15px;line-height:1.4}.input-area textarea:focus{border-color:var(--wc-green)}.send-btn{background:var(--wc-green);color:#fff;border-radius:var(--radius-sm);cursor:pointer;white-space:nowrap;border:none;flex-shrink:0;padding:8px 16px;font-size:14px;font-weight:500}.send-btn:disabled{opacity:.4;cursor:not-allowed}.contacts-section-title{color:var(--text-muted);background:var(--bg-main);padding:6px 16px;font-size:12px;font-weight:500}.contact-item{background:var(--bg-white);border-bottom:.5px solid var(--border-light);cursor:pointer;align-items:center;gap:12px;padding:12px 16px;display:flex}.contact-item:active{background:#d9d9d9}.contact-item .contact-name{flex:1;font-size:16px;font-weight:400}.profile-card{background:var(--bg-white);align-items:center;gap:14px;margin-bottom:8px;padding:24px 16px;display:flex}.profile-card .profile-avatar{border-radius:var(--radius-md);flex-shrink:0;width:64px;height:64px;overflow:hidden}.profile-card .profile-avatar img{object-fit:cover;width:100%;height:100%}.profile-card .profile-avatar .avatar-placeholder{color:#fff;justify-content:center;align-items:center;width:100%;height:100%;font-size:26px;font-weight:700;display:flex}.profile-card .profile-info .profile-name{font-size:20px;font-weight:600}.profile-card .profile-info .profile-username{color:var(--text-muted);margin-top:4px;font-size:13px}.menu-item{background:var(--bg-white);border-bottom:.5px solid var(--border-light);cursor:pointer;align-items:center;gap:12px;padding:14px 16px;font-size:15px;display:flex}.menu-item:active{background:#d9d9d9}.menu-item .menu-icon{text-align:center;width:28px;font-size:20px}.menu-item .menu-label{flex:1}.menu-item .menu-arrow{color:var(--text-muted);font-size:14px}.menu-section{margin-bottom:8px}.logout-btn{background:var(--bg-white);color:#f44336;border-radius:var(--radius-sm);cursor:pointer;border:none;width:calc(100% - 32px);margin:24px auto;padding:12px;font-size:15px;font-weight:500;display:block}.logout-btn:active{background:#eee}.modal-overlay{background:var(--bg-overlay);z-index:1000;justify-content:center;align-items:center;animation:.15s fadeIn;display:flex;position:fixed;inset:0}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.modal{background:var(--bg-white);border-radius:var(--radius-md);width:340px;max-width:90vw;max-height:80vh;animation:.2s ease-out scaleIn;overflow-y:auto}@keyframes scaleIn{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}.modal-header{justify-content:space-between;align-items:center;padding:18px 20px 0;display:flex}.modal-header h2{font-size:17px;font-weight:600}.modal-header .close-btn{width:28px;height:28px;color:var(--text-muted);cursor:pointer;background:0 0;border:none;border-radius:50%;justify-content:center;align-items:center;font-size:18px;display:flex}.modal-body{padding:16px 20px 20px}.modal-body .form-group input,.modal-body .form-group textarea{border:1px solid var(--border-light);border-radius:var(--radius-sm);width:100%;color:var(--text-primary);outline:none;padding:10px 14px;font-family:inherit;font-size:14px;transition:border-color .2s}.modal-body .form-group input:focus,.modal-body .form-group textarea:focus{border-color:var(--wc-green)}.modal-body .form-group label{color:var(--text-secondary)}.modal-body .btn-primary{margin-top:14px}.search-results{max-height:280px;margin-top:10px;overflow-y:auto}.search-result-item{border-radius:var(--radius-sm);cursor:pointer;align-items:center;gap:10px;padding:10px;transition:background .1s;display:flex}.search-result-item:active{background:var(--bg-main)}.search-result-item .result-avatar{border-radius:var(--radius-sm);flex-shrink:0;width:36px;height:36px;overflow:hidden}.search-result-item .result-avatar img{object-fit:cover;width:100%;height:100%}.search-result-item .result-avatar .avatar-placeholder{color:#fff;justify-content:center;align-items:center;width:100%;height:100%;font-size:14px;font-weight:700;display:flex}.search-result-item .result-info{flex:1}.search-result-item .result-info .result-name{font-size:14px;font-weight:500}.search-result-item .result-info .result-username{color:var(--text-muted);font-size:12px}.btn-sm{border-radius:var(--radius-sm);cursor:pointer;border:none;padding:5px 14px;font-size:12px;font-weight:500}.btn-accept{background:var(--wc-green);color:#fff}.btn-reject{background:var(--bg-main);color:var(--text-secondary)}.request-item{border-bottom:.5px solid var(--border-light);align-items:center;gap:10px;padding:12px;display:flex}.request-item:last-child{border-bottom:none}.request-item .request-info{flex:1}.request-item .request-info .request-name{font-size:14px;font-weight:500}.request-item .request-info .request-msg{color:var(--text-muted);margin-top:2px;font-size:12px}.request-actions{gap:6px;display:flex}.friend-check-list{max-height:240px;overflow-y:auto}.friend-check-item{cursor:pointer;border-radius:var(--radius-sm);align-items:center;gap:10px;padding:8px 4px;display:flex}.friend-check-item:active{background:var(--bg-main)}.friend-check-item input[type=checkbox]{accent-color:var(--wc-green);width:18px;height:18px}.friend-check-item .avatar-placeholder{border-radius:var(--radius-sm);color:#fff;justify-content:center;align-items:center;width:32px;height:32px;font-size:12px;font-weight:700;display:flex}.avatar-bg-0{background:#07c160}.avatar-bg-1{background:#1890ff}.avatar-bg-2{background:#722ed1}.avatar-bg-3{background:#eb2f96}.avatar-bg-4{background:#fa8c16}.avatar-bg-5{background:#13c2c2}.avatar-bg-6{background:#52c41a}.avatar-bg-7{background:#2f54eb}.empty-state{color:var(--text-muted);flex-direction:column;justify-content:center;align-items:center;padding:60px 20px;display:flex}.empty-state .empty-icon{opacity:.5;margin-bottom:12px;font-size:48px}.empty-state p{font-size:14px}.image-preview-overlay{z-index:2000;cursor:pointer;background:#000000e6;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.image-preview-overlay img{border-radius:var(--radius-sm);max-width:95%;max-height:95%}.dropdown-menu{top:var(--header-height);border-radius:var(--radius-sm);z-index:200;background:#4c4c4c;min-width:140px;padding:4px 0;animation:.12s fadeIn;position:absolute;right:8px}.dropdown-menu .dropdown-item{color:#fff;cursor:pointer;align-items:center;gap:10px;padding:12px 16px;font-size:14px;display:flex}.dropdown-menu .dropdown-item:active{background:#ffffff1a}.dropdown-menu .dropdown-item .dropdown-icon{font-size:16px}.chat-detail-panel{background:var(--bg-main);z-index:150;flex-direction:column;animation:.25s ease-out slideIn;display:flex;position:absolute;inset:0}.detail-content{flex:1;overflow-y:auto}.detail-members{background:var(--bg-white);flex-wrap:wrap;gap:16px;padding:20px 16px;display:flex}.detail-member-item{flex-direction:column;align-items:center;gap:6px;width:56px;display:flex}.detail-member-name{color:var(--text-secondary);text-align:center;white-space:nowrap;text-overflow:ellipsis;width:100%;font-size:11px;overflow:hidden}.profile-edit-avatar{background:var(--bg-white);cursor:pointer;flex-direction:column;align-items:center;gap:8px;padding:28px 16px 16px;display:flex}.avatar-change-hint{color:var(--wc-green);font-size:12px;font-weight:500}.profile-edit-section{background:var(--bg-white);border-bottom:.5px solid var(--border-light);padding:0 16px}.profile-edit-label{color:var(--text-muted);padding-top:12px;font-size:12px}.profile-edit-input{width:100%;color:var(--text-primary);background:0 0;border:none;outline:none;padding:8px 0 12px;font-family:inherit;font-size:15px}.profile-edit-input::placeholder{color:var(--text-muted)}.profile-edit-readonly{color:var(--text-muted);padding:8px 0 12px;font-size:15px}.profile-save-btn{background:var(--wc-green);color:#fff;border-radius:var(--radius-sm);cursor:pointer;border:none;width:calc(100% - 32px);margin:16px auto;padding:11px;font-size:14px;font-weight:500;display:block}.profile-save-btn:disabled{opacity:.5;cursor:not-allowed}.profile-save-btn:active{background:var(--wc-green-hover)}.profile-divider{background:var(--bg-main);height:8px}.profile-toast{text-align:center;padding:10px;font-size:13px;font-weight:500;animation:.2s fadeIn}.profile-toast.success{background:var(--wc-green-light);color:var(--wc-green)}.profile-toast.error{color:#ff4d4f;background:#ff4d4f1a}
