:root{--green:#008c63;--green-dark:#006b4e;--green-light:#d9fdd3;--green-soft:#e6f3e9;--text:#111b21;--muted:#758087;--surface:#fff;--bg:#f6f7f8;--line:#edf0f2;--chat-bg:#efeae2;--shadow:0 12px 60px #193b3020;font-family:Arial,"Noto Sans CJK SC","Microsoft YaHei",sans-serif;color:var(--text);font-synthesis:none;color-scheme:light}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}body{margin:0;background:#e9efeb}button,input,textarea{font:inherit}button{border:0;cursor:pointer;background:none;color:inherit;padding:0}button:focus-visible,input:focus-visible{outline:2px solid var(--green);outline-offset:3px}input,textarea{color:var(--text)}svg{width:24px;height:24px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}button svg{display:block}button:hover{filter:brightness(.96)}.app{display:flex;max-width:1320px;margin:28px auto;height:calc(100dvh - 56px);min-height:500px;background:var(--surface);box-shadow:var(--shadow);overflow:hidden;border-radius:13px}.list-pane{display:flex;flex-direction:column;width:400px;flex-shrink:0;position:relative;background:var(--surface);border-right:1px solid var(--line);overflow:hidden}#header{flex-shrink:0;padding:21px 20px 0}.toolbar{display:flex;align-items:center;justify-content:space-between;height:39px;margin-bottom:19px}.brand{font-size:27px;font-weight:700;letter-spacing:-1px;color:var(--green);margin:0}.page-title{font-size:25px;letter-spacing:.2px;margin:0;font-weight:650}.toolbar-actions{display:flex;gap:21px;align-items:center}.icon-button{width:30px;height:32px;display:grid;place-items:center;border-radius:50%;position:relative}.search{height:48px;border-radius:26px;background:#f2f4f4;display:flex;align-items:center;gap:11px;padding:0 17px;margin-bottom:17px;color:#84908e}.search svg{width:21px}.search input{width:100%;border:0;background:none;outline:none;font-size:14px;min-width:0}.search input::placeholder{color:#7d8588}.filters{display:flex;align-items:center;gap:8px;padding-bottom:15px}.filter{border:1px solid #e5e9e7;color:#718078;border-radius:24px;height:34px;padding:0 16px;white-space:nowrap;font-size:13px}.filter.active{color:#126e46;background:#d9f6df;border-color:#d9f6df;font-weight:600}.page-content{flex:1;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#d8dfdb transparent;padding-bottom:78px}.archive{height:48px;display:flex;align-items:center;width:100%;padding:0 26px;gap:29px;font-size:14px;font-weight:600}.archive svg{width:21px;color:var(--green)}.archive-count{margin-left:auto;color:var(--green);font-size:12px}.chat-row{display:flex;align-items:center;width:100%;padding:12px 18px;gap:13px;text-align:left;min-height:83px;transition:background .15s}.chat-row:hover,.chat-row.selected{background:#f3f7f4}.avatar{height:54px;width:54px;position:relative;flex-shrink:0;display:grid;place-items:center;border-radius:50%;overflow:hidden;background:var(--avatar-bg,#e4e8e5);font-size:20px;font-weight:600;color:#53685c}.avatar img{width:100%;height:100%;object-fit:cover}.avatar.group svg{width:28px;height:28px}.avatar.small{width:44px;height:44px;font-size:17px}.avatar.large{width:83px;height:83px}.chat-text{flex:1;min-width:0}.chat-top{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:7px}.chat-name{font-size:16px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-time{font-size:11px;color:var(--muted);white-space:nowrap;flex-shrink:0}.chat-time.unread{color:var(--green);font-weight:600}.chat-bottom{display:flex;gap:7px;align-items:center}.chat-preview{font-size:13px;color:#778086;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;line-height:19px}.ticks{font-size:17px;letter-spacing:-5px;color:#42afd8;padding-right:4px;margin-right:3px;font-weight:500}.unread-badge{height:21px;min-width:21px;padding:0 6px;display:grid;place-items:center;background:var(--green);color:white;font-size:11px;border-radius:20px;font-weight:600}.row-mini{height:14px;width:14px;color:#8e9696}.list-footer{display:flex;justify-content:center;gap:5px;font-size:10px;color:#939b98;margin:25px 12px}.list-footer svg{height:12px;width:12px}.list-footer span{color:var(--green)}.fab{position:absolute;right:20px;bottom:99px;width:56px;height:56px;border-radius:18px;background:var(--green);color:#fff;display:grid;place-items:center;box-shadow:0 4px 10px #006e4127;z-index:2}.fab svg{height:26px;width:26px}.bottom-nav{display:grid;grid-template-columns:repeat(5,1fr);height:82px;flex-shrink:0;align-items:center;padding:5px 8px 8px;background:var(--surface);border-top:1px solid var(--line);z-index:3}.nav-item{height:65px;display:flex;align-items:center;flex-direction:column;justify-content:center;gap:5px;color:#66716c;font-size:11px;position:relative}.nav-icon{width:55px;height:31px;display:grid;place-items:center;border-radius:22px;position:relative}.nav-icon svg{height:24px;width:24px}.nav-item.active{font-weight:600;color:#143b28}.nav-item.active .nav-icon{background:#d9f6df;color:#103c28}.nav-badge{position:absolute;top:0;right:9px;min-width:15px;height:15px;padding:0 3px;background:var(--green);border:2px solid var(--surface);border-radius:10px;color:white;font-size:8px;display:grid;place-items:center}.conversation{flex:1;min-width:0;position:relative;display:flex;flex-direction:column;background:var(--chat-bg)}.welcome{height:100%;display:flex;align-items:center;justify-content:center;flex-direction:column;background:#f5f8f5;text-align:center;padding:40px}.welcome-art{width:180px;height:180px;border-radius:50%;background:#e5f0e7;display:grid;place-items:center;margin-bottom:32px;position:relative}.welcome-art:before,.welcome-art:after{content:"";position:absolute;border:1px solid #dce8df;border-radius:50%;inset:-22px}.welcome-art:after{inset:-43px;border-style:dashed}.welcome-art svg{width:75px;height:75px;color:var(--green);stroke-width:1.2}.welcome h2{font-weight:400;font-size:29px;letter-spacing:1px;margin:21px 0 15px}.welcome p{font-size:14px;color:var(--muted);line-height:1.9;margin:0}.preview-note{position:absolute;bottom:35px;display:flex;align-items:center;gap:6px;font-size:12px;color:#8c9991}.preview-note svg{width:14px;height:14px}.conversation-header{height:74px;flex-shrink:0;background:var(--surface);display:flex;align-items:center;padding:0 20px;gap:12px;border-bottom:1px solid var(--line)}.contact-info{flex:1;min-width:0}.contact-info strong{font-size:16px;font-weight:600}.contact-info small{display:block;font-size:11px;color:var(--green);margin-top:5px}.conversation-actions{display:flex;gap:20px}.back-button{display:none}.message-scroll{flex:1;overflow:auto;padding:22px 7%;display:flex;flex-direction:column;gap:10px;scrollbar-width:thin;background-color:var(--chat-bg);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23a99d88' stroke-opacity='.1' stroke-width='1.3'%3E%3Cpath d='M12 20q9-13 18 0q-9 19-18 0zm64 56 10-10 10 10-10 10zM48 50l4-10 4 10 10 4-10 4-4 10-4-10-10-4zM14 98q8-10 17 0t17 0M91 18l9 6-9 6-9-6z'/%3E%3Ccircle cx='101' cy='105' r='6'/%3E%3Cpath d='m2 57 8 7-7 8M64 4l6 8-6 8'/%3E%3C/g%3E%3C/svg%3E")}.date-chip{align-self:center;font-size:11px;color:#66756e;background:#fffdf5dd;border-radius:8px;padding:7px 12px;box-shadow:0 1px 1px #0000000d;margin:1px 0 8px}.encryption{align-self:center;text-align:center;max-width:370px;font-size:10px;line-height:1.8;background:#fff6d6;color:#7c7457;padding:9px 16px;border-radius:8px;margin-bottom:12px}.encryption svg{display:inline;width:11px;height:11px;vertical-align:-1px}.message{align-self:flex-start;background:var(--surface);max-width:83%;min-width:90px;padding:10px 11px 6px;border-radius:0 10px 10px 10px;box-shadow:0 1px 1px #00000012;position:relative;overflow-wrap:anywhere;animation:appear .17s ease}.message.sent{align-self:flex-end;background:#d9fdd3;border-radius:10px 0 10px 10px}.message p{font-size:14px;line-height:1.65;margin:0 0 2px;white-space:pre-wrap}.message-meta{display:flex;justify-content:flex-end;align-items:center;gap:5px;font-size:9px;color:#7d8a7d;height:17px;min-width:48px}.message-meta .ticks{font-size:14px}.message-photo{width:255px;max-width:100%;height:180px;object-fit:cover;border-radius:7px;margin-bottom:5px;display:block}.message-reply{border-left:3px solid var(--green);padding:8px;background:#cbeec7;border-radius:4px;margin-bottom:7px;font-size:11px;color:#657565}.message-reply strong{display:block;color:var(--green);margin-bottom:4px}.composer{display:flex;gap:9px;padding:12px 15px;background:var(--chat-bg);align-items:flex-end;flex-shrink:0}.compose-box{display:flex;align-items:center;gap:12px;border-radius:28px;background:var(--surface);flex:1;padding:0 13px;min-height:49px;min-width:0;box-shadow:0 1px 3px #00000006}.compose-box input{flex:1;min-width:0;outline:none;border:0;background:none;font-size:14px;height:49px}.compose-box .icon-button{color:#7c8882;width:23px}.send-button{height:49px;width:49px;background:var(--green);color:#fff;border-radius:50%;display:grid;place-items:center;flex-shrink:0}.send-button svg{height:22px;width:22px}.section-title{display:flex;align-items:center;justify-content:space-between;padding:22px 21px 15px;font-size:17px;font-weight:600;margin:0}.section-title small{font-size:12px;font-weight:400;color:var(--green)}.status-list{display:flex;gap:21px;padding:4px 21px 24px;overflow:auto;border-bottom:8px solid var(--bg)}.status-item{display:flex;flex-direction:column;align-items:center;gap:8px;font-size:11px;min-width:58px}.status-ring{border:2px solid var(--green);padding:3px;border-radius:50%;position:relative}.status-ring .avatar{height:55px;width:55px}.status-ring.mine{border-color:#e2e7e3}.add-dot{position:absolute;right:-1px;bottom:0;height:20px;width:20px;border:2px solid var(--surface);border-radius:50%;background:var(--green);color:#fff;display:grid;place-items:center;font-size:16px}.channel-desc{font-size:12px;color:var(--muted);line-height:1.8;padding:0 21px;margin:0 0 10px}.follow-button{font-size:11px;padding:7px 12px;border-radius:20px;background:var(--green-soft);color:var(--green);white-space:nowrap}.community-card{margin:7px 16px 15px;border:1px solid var(--line);border-radius:15px;overflow:hidden}.community-heading{display:flex;align-items:center;gap:13px;padding:16px}.community-heading strong{font-size:16px}.community-heading small{font-size:11px;color:var(--muted);display:block;margin-top:6px}.community-card .chat-row{padding:12px 16px;min-height:70px}.community-card .avatar{height:42px;width:42px;border-radius:12px}.community-footer{border-top:1px solid var(--line);display:flex;align-items:center;gap:19px;padding:15px 25px;font-size:12px;color:var(--muted);width:100%}.community-footer svg{width:17px;height:17px}.new-community{display:flex;align-items:center;gap:16px;padding:8px 20px 25px;width:100%;font-size:15px;font-weight:600}.square-icon{width:52px;height:52px;border-radius:15px;background:var(--green-soft);color:var(--green);display:grid;place-items:center}.call-direction{display:inline-flex;align-items:center;gap:4px}.call-direction svg{height:14px;width:14px;color:var(--green)}.call-direction.missed,.call-direction.missed svg{color:#df5858}.call-button{color:var(--green);padding:8px}.profile{padding:16px 21px 25px;display:flex;align-items:center;gap:18px}.profile-name{font-size:21px;margin:0 0 8px;font-weight:600}.profile-about{font-size:12px;color:var(--muted);line-height:1.7;margin:0}.profile-qr{margin-left:auto;color:var(--green)}.settings-group{border-top:8px solid var(--bg);padding:9px 0}.settings-row{width:100%;padding:17px 24px;display:flex;gap:22px;align-items:center;text-align:left}.settings-row>svg{color:#6e7d75;width:23px;height:23px}.settings-row strong{display:block;font-size:14px;font-weight:500;margin-bottom:5px}.settings-row small{display:block;font-size:11px;color:var(--muted)}.settings-arrow{margin-left:auto;width:16px!important;height:16px!important;color:#a0aaa4!important}.profile-tag{font-size:10px;color:#9aa39f;text-align:center;line-height:1.8;margin-top:24px}.empty-state{padding:70px 25px;text-align:center;color:var(--muted);font-size:13px;line-height:1.8}.empty-state svg{width:40px;height:40px;margin-bottom:15px;color:#9eafa4}.modal-backdrop{position:fixed;inset:0;background:#0b241d65;z-index:10;display:flex;align-items:center;justify-content:center;padding:20px;backdrop-filter:blur(4px)}.modal{width:400px;max-width:100%;max-height:85dvh;background:var(--surface);border-radius:22px;overflow:auto;padding:24px;box-shadow:0 24px 80px #0003;animation:appear .2s ease}.modal h2{font-size:21px;margin:0;font-weight:600}.modal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:23px}.modal p{font-size:13px;color:var(--muted);line-height:1.9}.modal .chat-row{padding:11px 0}.modal-field{display:block;font-size:12px;color:var(--muted);margin-bottom:17px}.modal-field input{display:block;width:100%;margin-top:8px;border:1px solid #dde5df;border-radius:10px;padding:13px;background:var(--surface);outline-color:var(--green)}.primary-button{width:100%;padding:14px;border-radius:24px;background:var(--green);color:#fff;font-size:14px;font-weight:600;margin-top:10px}.secondary-button{padding:13px;width:100%;color:var(--green);font-size:13px;margin-top:5px}.toggle{appearance:none;width:43px;height:25px;position:relative;cursor:pointer;background:#d5ddd7;border-radius:20px;flex-shrink:0}.toggle:checked{background:var(--green)}.toggle:before{content:"";position:absolute;width:19px;height:19px;border-radius:50%;background:white;top:3px;left:3px;transition:transform .2s}.toggle:checked:before{transform:translateX(18px)}.toggle-row{display:flex;align-items:center;justify-content:space-between;gap:20px;font-size:14px;margin:24px 0}.status-view{background:#233d34;color:#fff;text-align:center}.status-view img{width:100%;border-radius:12px;max-height:460px;object-fit:cover}.status-view p{color:white;font-size:17px}.status-progress{height:3px;background:#ffffff40;border-radius:3px;margin-bottom:20px;overflow:hidden}.status-progress:after{content:"";display:block;width:100%;height:100%;background:white;animation:progress 7s linear}.toast{position:fixed;bottom:115px;left:50%;transform:translate(-50%,20px);z-index:30;background:#1d342b;color:#fff;padding:13px 21px;border-radius:25px;max-width:90vw;width:max-content;font-size:12px;opacity:0;pointer-events:none;transition:all .2s;box-shadow:0 4px 20px #0002}.toast.visible{opacity:1;transform:translate(-50%,0)}.hidden{display:none!important}@keyframes appear{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}@keyframes progress{from{width:0}to{width:100%}}
body.dark{--surface:#16231d;--text:#e7ede9;--bg:#101c16;--line:#26352c;--muted:#94a59b;--chat-bg:#102019;background:#09140d;color-scheme:dark}body.dark .search{background:#26352c}body.dark .chat-row:hover,body.dark .chat-row.selected{background:#26352c}body.dark .message.sent{background:#164a33}body.dark .welcome{background:#132219}body.dark .date-chip{background:#273e2d;color:#bfcebf}body.dark .encryption{background:#3f3e28;color:#d4cc98}body.dark .filter{border-color:#354c3b}body.dark .filter.active,body.dark .nav-item.active .nav-icon{background:#284c33;color:#b5edba}body.dark .nav-item.active{color:#b5edba}body.dark .brand{color:#4bd394}body.dark .welcome-art{background:#284832}
.avatar img{position:absolute;inset:0}
.app{max-width:none;width:100%;margin:0;height:100dvh;min-height:0;border-radius:0;box-shadow:none}
.list-pane{border-right:0}
@media(max-width:800px){body{background:var(--surface)}.app{width:100%;height:100dvh;min-height:0;margin:0;border-radius:0;box-shadow:none}.list-pane{width:100%;border:0}.conversation{display:none}.app.chat-open .list-pane{display:none}.app.chat-open .conversation{display:flex}.back-button{display:grid;width:23px}.conversation-header{height:67px;padding:0 12px;gap:9px}.conversation-actions{gap:17px}.conversation-header .avatar{height:39px;width:39px}.contact-info strong{font-size:15px}.message-scroll{padding:20px 17px}.message{max-width:85%}.composer{padding:9px 8px 12px;gap:7px}.compose-box{gap:11px;padding:0 13px}.list-pane #header{padding-top:18px}.chat-row{min-height:82px;padding:12px 18px}.modal-backdrop{align-items:flex-end;padding:0}.modal{border-radius:24px 24px 0 0;width:100%;max-height:90dvh;padding-bottom:max(28px,env(safe-area-inset-bottom))}.bottom-nav{height:82px;padding-bottom:max(8px,env(safe-area-inset-bottom))}.toolbar{margin-bottom:18px}.search{margin-bottom:15px}.preview-note{bottom:30px}.toast{font-size:12px;max-width:calc(100vw - 32px);white-space:normal;text-align:center}.message-photo{height:170px}.profile{padding-top:23px}}
@media(max-width:360px){#header{padding-left:16px;padding-right:16px}.filter{padding:0 13px}.chat-row{gap:11px;padding-left:15px;padding-right:15px}.avatar{height:49px;width:49px}.chat-name{font-size:15px}.chat-preview{font-size:12px}.nav-icon{width:49px}.compose-box{gap:8px}}
