:root{
  --bg:#f5f6f8;--card:#fff;--text:#1d2433;--muted:#7b8495;--line:#e7eaf0;--primary:#2f67ec;--primary-soft:#edf3ff;--danger:#d94a4a;--shadow:0 12px 36px rgba(35,47,70,.08);--nav-h:74px
}
*{box-sizing:border-box}html,body,#app{height:100%;margin:0}body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;background:var(--bg);color:var(--text)}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}img{display:block}a{color:inherit}[v-cloak]{display:none!important}
.loading-line{position:fixed;left:-45%;top:0;width:45%;height:3px;background:var(--primary);z-index:9999;animation:loading 1.1s linear infinite}@keyframes loading{to{left:100%}}
.toast-wrap{position:fixed;right:18px;top:18px;z-index:9999;display:flex;flex-direction:column;gap:8px}.toast{min-width:210px;max-width:360px;padding:12px 15px;border-radius:12px;background:#202839;color:#fff;font-size:13px;box-shadow:0 12px 35px rgba(0,0,0,.2)}.toast.error{background:#c94545}

.login-page{height:100%;display:grid;place-items:center;padding:20px;background:radial-gradient(circle at 15% 15%,#eaf0ff 0,transparent 33%),radial-gradient(circle at 85% 90%,#fff1e8 0,transparent 28%),#f5f6f8}.login-card{width:min(430px,100%);padding:30px;background:#fff;border:1px solid var(--line);border-radius:24px;box-shadow:0 24px 70px rgba(31,44,70,.13)}.login-brand{display:flex;align-items:center;gap:14px;margin-bottom:26px}.login-brand-logo,.login-logo-fallback{width:58px;height:58px;border-radius:18px;flex:0 0 auto}.login-brand-logo{object-fit:cover;border:1px solid var(--line)}.login-logo-fallback{display:grid;place-items:center;background:#192235;color:#fff}.login-logo-fallback svg{width:28px}.login-brand h1{margin:0 0 4px;font-size:25px}.login-brand p{margin:0;color:var(--muted);font-size:13px}.login-error{margin-bottom:14px;padding:11px 13px;border-radius:11px;background:#fff0f0;color:#bd3f3f;font-size:13px}.login-contact{margin-top:18px;padding-top:16px;border-top:1px solid var(--line);display:flex;justify-content:center;gap:8px;font-size:12px;color:var(--muted)}.login-contact b{color:var(--text)}

.page-shell{height:100dvh;overflow:hidden;background:var(--bg)}.main-shell{height:calc(100dvh - var(--nav-h));padding:18px clamp(12px,2.2vw,28px) 14px;overflow:hidden}.view-scroll{height:100%;overflow:auto;padding:2px 2px 26px;scrollbar-width:thin}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 auto 16px;max-width:1280px}.page-heading h1{margin:0;font-size:24px}.page-heading p{margin:5px 0 0;color:var(--muted);font-size:13px}
.btn{height:40px;padding:0 15px;border:1px solid transparent;border-radius:11px;display:inline-flex;align-items:center;justify-content:center;gap:7px;font-weight:700;font-size:13px;background:#fff}.btn-lg{height:47px;font-size:15px}.btn-block{width:100%}.btn-primary{background:var(--primary);color:#fff}.btn-soft{background:var(--primary-soft);color:var(--primary);border-color:#dce7ff}.btn-white{background:#fff;border-color:var(--line);color:var(--text)}.btn-danger{background:#fff1f1;color:var(--danger);border-color:#ffdada}.btn-small{height:34px;padding:0 11px;font-size:12px}.logout-btn{margin-top:10px}.icon-btn{width:36px;height:36px;padding:0;border:1px solid var(--line);border-radius:10px;background:#fff;display:grid;place-items:center;color:#556070}.icon-btn svg{width:17px}.plain-btn,.text-action{border:0;background:transparent;padding:0;color:#687386;font-size:12px}.danger-text{color:var(--danger)!important}
.field{margin-bottom:15px}.field>label{display:block;margin-bottom:7px;font-size:12px;font-weight:750}.input,.textarea,.select{width:100%;border:1px solid #dfe3eb;border-radius:11px;background:#fff;color:var(--text);outline:none}.input,.select{height:42px;padding:0 12px}.textarea{padding:12px;resize:vertical;line-height:1.7}.input:focus,.textarea:focus,.select:focus{border-color:#7c9df3;box-shadow:0 0 0 3px rgba(47,103,236,.1)}.field-help{display:block;margin-top:6px;color:var(--muted);font-size:11px;line-height:1.6}.two-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}

.room-grid{max-width:1280px;margin:auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.room-card{padding:16px;background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:0 8px 24px rgba(36,49,75,.05)}.room-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.room-identity{display:flex;align-items:center;gap:11px;min-width:0}.room-avatar{width:46px;height:46px;border-radius:14px;object-fit:cover;border:1px solid var(--line)}.room-title-box{min-width:0}.room-title-box h3{margin:0 0 6px;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.room-meta{display:flex;gap:6px;align-items:center}.type-badge,.status-dot{font-size:10px;border-radius:999px;padding:4px 7px;background:#f1f3f7;color:#667083}.status-dot{color:#24875d;background:#ecfbf4}.status-dot.off{color:#a26a34;background:#fff5e9}.room-stats{margin:14px 0 12px;padding:10px;border-radius:13px;background:#f7f8fb;display:grid;grid-template-columns:repeat(3,1fr)}.room-stats div{text-align:center;border-right:1px solid #e6e9ef}.room-stats div:last-child{border:0}.room-stats b{display:block;font-size:15px}.room-stats span{display:block;margin-top:3px;color:var(--muted);font-size:9px}.room-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.room-sub-actions{display:flex;justify-content:space-between;margin-top:12px;padding:0 2px}.empty-card{max-width:760px;margin:60px auto;padding:44px 22px;text-align:center;background:#fff;border:1px dashed #d9dee8;border-radius:20px}.empty-card h3{margin:10px 0 7px}.empty-card p{margin:0 0 18px;color:var(--muted);font-size:13px}.empty-symbol{width:54px;height:54px;margin:auto;border-radius:17px;background:var(--primary-soft);color:var(--primary);display:grid;place-items:center;font-size:20px;font-weight:800}

.bottom-nav{position:fixed;left:50%;bottom:10px;transform:translateX(-50%);width:min(680px,calc(100% - 24px));height:62px;padding:6px;background:rgba(255,255,255,.96);border:1px solid var(--line);border-radius:19px;box-shadow:0 15px 45px rgba(32,44,68,.15);display:grid;grid-template-columns:repeat(4,1fr);z-index:100;backdrop-filter:blur(14px)}.bottom-nav button{position:relative;border:0;background:transparent;border-radius:13px;color:#7b8495;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:10px}.bottom-nav button svg{width:20px;height:20px}.bottom-nav button.active{background:var(--primary-soft);color:var(--primary);font-weight:800}.bottom-nav button>i{position:absolute;top:2px;right:22%;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:#ef4d4d;color:#fff;font-style:normal;font-size:9px;display:grid;place-items:center}

.chat-view{height:100%;overflow:hidden}.chat-layout{height:100%;max-width:1480px;margin:auto;background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden;display:grid;grid-template-columns:340px minmax(0,1fr);box-shadow:0 8px 28px rgba(37,48,70,.06)}.conversation-panel{min-width:0;border-right:1px solid var(--line);display:flex;flex-direction:column;overflow:hidden;background:#fbfcfd}.conversation-toolbar{padding:14px;border-bottom:1px solid var(--line);background:#fff;flex:0 0 auto}.toolbar-title,.toolbar-row,.batch-bar{display:flex;align-items:center}.toolbar-title{justify-content:space-between;margin-bottom:10px}.toolbar-title h2{margin:0;font-size:17px}.toolbar-title span{font-size:10px;color:var(--muted);background:#f1f3f7;border-radius:999px;padding:4px 8px}.toolbar-row{gap:7px}.select{height:38px;font-size:12px}.mini-icon{width:38px;height:38px;border:1px solid var(--line);border-radius:10px;background:#fff;font-size:17px}.batch-bar{min-height:24px;gap:14px;margin-top:8px}.conversation-list{flex:1;overflow-y:auto}.conversation-item{position:relative;width:100%;border:0;border-bottom:1px solid #edf0f4;background:transparent;padding:12px 13px;display:flex;align-items:center;gap:10px;text-align:left}.conversation-item:hover,.conversation-item.active{background:#eef4ff}.conversation-item.pinned:before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:#f0a149}.batch-check input{display:none}.batch-check span{width:18px;height:18px;border:1px solid #cfd5df;border-radius:5px;background:#fff;display:block}.batch-check input:checked+span{background:var(--primary);border-color:var(--primary);box-shadow:inset 0 0 0 4px #fff}.conv-avatar-wrap{position:relative;flex:0 0 auto}.conv-avatar-wrap img{width:43px;height:43px;border-radius:13px;object-fit:cover}.conv-avatar-wrap i{position:absolute;right:-1px;bottom:-1px;width:11px;height:11px;border-radius:50%;background:#aab0ba;border:2px solid #fff}.conv-avatar-wrap i.online{background:#35b96f}.conv-avatar-wrap i.background{background:#f0a63b}.conv-avatar-wrap i.offline{background:#aab0ba}.conv-main{min-width:0;flex:1}.conv-top,.conv-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px}.conv-top b{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.conv-top time{font-size:9px;color:#9aa1ae;white-space:nowrap}.conv-room{margin:3px 0;color:#7f8898;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.conv-room span{margin-left:5px;color:#d7872f}.conv-bottom>span{color:#818a99;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.conv-bottom em{min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:#ef4d4d;color:#fff;font-style:normal;font-size:9px;display:grid;place-items:center}.list-empty{padding:45px 18px;text-align:center;color:var(--muted)}.list-empty p{margin:0 0 5px;font-size:13px;color:#626c7c}.list-empty small{font-size:10px}
.chat-panel{min-width:0;display:flex;flex-direction:column;overflow:hidden;background:#f5f6f8}.chat-head-fixed{height:68px;padding:0 16px;border-bottom:1px solid var(--line);background:#fff;display:flex;align-items:center;justify-content:space-between;gap:12px;flex:0 0 auto}.chat-person{display:flex;align-items:center;gap:10px;min-width:0}.chat-person img{width:40px;height:40px;border-radius:12px;object-fit:cover}.chat-person h3{margin:0 0 3px;font-size:14px}.chat-person p{margin:0;color:var(--muted);font-size:10px}.chat-tools{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.chat-tools button{height:31px;padding:0 9px;border:1px solid var(--line);border-radius:9px;background:#fff;font-size:10px}.mobile-back{display:none;font-size:27px;line-height:1}.identity-bar{height:48px;padding:7px 14px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:8px;flex:0 0 auto}.identity-bar>span{margin-right:2px;color:#7c8594;font-size:10px}.identity-bar button{height:34px;padding:0 10px;border:1px solid var(--line);border-radius:10px;background:#fff;display:flex;align-items:center;gap:6px;font-size:11px}.identity-bar button.active{border-color:#7d9ef4;background:var(--primary-soft);color:var(--primary);font-weight:800}.identity-bar img{width:22px;height:22px;border-radius:7px;object-fit:cover}.messages{flex:1;min-height:0;overflow-y:auto;padding:18px 16px 24px}.messages-empty{text-align:center;color:#9aa2af;font-size:11px;margin-top:36px}.system-message{width:max-content;max-width:82%;margin:8px auto 14px;padding:7px 12px;border-radius:8px;background:rgba(255,255,255,.9);color:#788191;font-size:10px;text-align:center;white-space:pre-wrap}.message-row{display:flex;align-items:flex-start;gap:9px;margin-bottom:16px}.message-row.mine{flex-direction:row-reverse}.message-avatar{width:35px;height:35px;border-radius:11px;object-fit:cover;flex:0 0 auto}.message-content{max-width:min(72%,560px);display:flex;flex-direction:column}.message-row.mine .message-content{align-items:flex-end}.message-meta{display:flex;gap:7px;align-items:center;margin-bottom:4px;color:#9098a6;font-size:9px}.message-row.mine .message-meta{flex-direction:row-reverse}.message-bubble,.recalled-bubble,.feedback-card{padding:10px 12px;border-radius:4px 14px 14px 14px;background:#fff;box-shadow:0 3px 12px rgba(35,47,72,.05);font-size:12px;line-height:1.65;white-space:pre-wrap;word-break:break-word}.message-row.mine .message-bubble,.message-row.mine .recalled-bubble,.message-row.mine .feedback-card{border-radius:14px 4px 14px 14px;background:#dfe9ff}.message-row.buyer .message-bubble{background:#fff0dc}.image-bubble{padding:4px;overflow:hidden}.image-bubble img{max-width:280px;max-height:360px;border-radius:10px;object-fit:cover;cursor:zoom-in}.message-bubble video{display:block;max-width:300px;border-radius:10px}.recalled-bubble{color:#8e96a3;font-style:italic;background:#eceff3!important}.recall-btn{margin-top:4px;border:0;background:transparent;color:#9aa2ae;font-size:9px;padding:2px}.recall-btn:hover{color:var(--danger)}.feedback-card{width:min(320px,100%);border-left:4px solid #f0a149}.feedback-card b{display:block;font-size:12px}.feedback-card small{display:block;margin-top:2px;color:#8d96a4;font-size:9px}.feedback-card p{margin:8px 0 0}.feedback-card.complaint{border-left-color:#698cc5}.feedback-card.urge{border-left-color:#e89a3b}.composer-fixed{flex:0 0 auto;padding:8px 13px calc(9px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:#fff}.composer-role{height:18px;color:#8a93a1;font-size:9px}.composer-row{display:flex;align-items:flex-end;gap:8px}.attach-btn{width:38px;height:38px;border:1px solid var(--line);border-radius:10px;display:grid;place-items:center;cursor:pointer;flex:0 0 auto}.attach-btn svg{width:19px}.attach-btn input{display:none}.composer-row textarea{flex:1;min-height:38px;max-height:92px;padding:9px 11px;border:1px solid #dfe3eb;border-radius:11px;resize:none;outline:none;line-height:1.5}.send-btn{height:38px;padding:0 15px;border:0;border-radius:10px;background:var(--primary);color:#fff;font-weight:750}.chat-placeholder{height:100%;display:grid;place-content:center;text-align:center;color:var(--muted)}.chat-placeholder h3{margin:12px 0 7px;color:var(--text)}.chat-placeholder p{margin:0;font-size:12px}

.greeting-layout{max-width:1180px;margin:auto;display:grid;grid-template-columns:280px minmax(0,1fr);gap:14px;align-items:start}.greeting-room-list{background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden}.greeting-room-list button{width:100%;padding:12px;border:0;border-bottom:1px solid #edf0f4;background:#fff;display:flex;align-items:center;gap:10px;text-align:left}.greeting-room-list button:last-child{border-bottom:0}.greeting-room-list button.active{background:var(--primary-soft)}.greeting-room-list img{width:38px;height:38px;border-radius:11px;object-fit:cover}.greeting-room-list span{min-width:0}.greeting-room-list b,.greeting-room-list small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.greeting-room-list b{font-size:12px}.greeting-room-list small{margin-top:3px;color:var(--muted);font-size:9px}.greeting-editor{min-height:560px}.panel-card{padding:18px;background:#fff;border:1px solid var(--line);border-radius:17px;box-shadow:0 8px 24px rgba(36,49,75,.04)}.panel-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:18px}.panel-heading h2{margin:0 0 4px;font-size:17px}.panel-heading p{margin:0;color:var(--muted);font-size:11px;line-height:1.6}.switch{display:flex;align-items:center;gap:8px;cursor:pointer}.switch input{display:none}.switch>span{position:relative;width:38px;height:22px;border-radius:11px;background:#ccd2dd;transition:.2s}.switch>span:before{content:"";position:absolute;width:18px;height:18px;left:2px;top:2px;border-radius:50%;background:#fff;transition:.2s;box-shadow:0 2px 5px rgba(0,0,0,.15)}.switch input:checked+span{background:var(--primary)}.switch input:checked+span:before{transform:translateX(16px)}.switch em{font-style:normal;font-size:10px;color:var(--muted)}.greeting-preview{margin-top:12px;padding:14px;border-radius:13px;background:#f5f6f8}.greeting-preview>span{display:block;margin-bottom:10px;color:#8a93a1;font-size:10px}.preview-system{width:max-content;max-width:90%;margin:0 auto 14px;padding:6px 10px;border-radius:7px;background:#fff;color:#707988;font-size:10px;text-align:center}.preview-message{display:flex;gap:9px;align-items:flex-start}.preview-message img{width:34px;height:34px;border-radius:10px;object-fit:cover}.preview-message b{font-size:10px}.preview-message p{max-width:520px;margin:4px 0 0;padding:9px 11px;border-radius:4px 12px 12px 12px;background:#fff;font-size:11px;line-height:1.65;white-space:pre-wrap}.form-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:15px}

.settings-grid{max-width:1180px;margin:auto;display:grid;grid-template-columns:1fr 1fr;gap:14px;align-items:start}.wide-card{grid-column:1/-1}.brand-upload{width:82px;height:82px;margin-bottom:16px;border:1px dashed #cfd5df;border-radius:18px;background:#f8f9fb;display:grid;place-items:center;cursor:pointer;overflow:hidden;color:#7c8594;font-size:11px}.brand-upload img{width:100%;height:100%;object-fit:cover}.brand-upload input{display:none}.user-list{display:flex;flex-direction:column;gap:8px}.user-row{padding:11px 0;border-bottom:1px solid #edf0f4;display:flex;align-items:center;justify-content:space-between;gap:12px}.user-row:last-child{border:0}.user-info{display:flex;align-items:center;gap:10px}.user-info i{width:37px;height:37px;border-radius:11px;background:var(--primary-soft);color:var(--primary);display:grid;place-items:center;font-style:normal;font-weight:800}.user-info b,.user-info small{display:block}.user-info b{font-size:12px}.user-info small{margin-top:3px;color:var(--muted);font-size:9px}.user-actions{display:flex;gap:7px}

.modal-mask{position:fixed;inset:0;z-index:500;background:rgba(24,32,47,.42);display:grid;place-items:center;padding:16px}.modal{width:min(640px,100%);max-height:92vh;overflow:auto;background:#fff;border-radius:20px;box-shadow:0 26px 80px rgba(18,28,45,.24)}.modal.small{width:min(430px,100%)}.modal-head{padding:16px 18px;border-bottom:1px solid var(--line);display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.modal-head h2{margin:0;font-size:17px}.modal-head p{margin:4px 0 0;color:var(--muted);font-size:10px}.modal-body{padding:16px 18px}.modal-foot{padding:12px 18px;border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:8px}.type-picker{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-bottom:14px}.type-picker button{padding:8px 10px;border:1px solid var(--line);border-radius:13px;background:#fff;display:flex;align-items:center;gap:9px;text-align:left}.type-picker button.active{border-color:#7e9ef3;background:var(--primary-soft)}.type-picker img{width:36px;height:36px;border-radius:11px;object-fit:cover}.type-picker b,.type-picker small{display:block}.type-picker b{font-size:12px}.type-picker small{margin-top:2px;color:var(--muted);font-size:9px}.room-basic{display:grid;grid-template-columns:1.5fr .8fr;gap:10px}.profile-title{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:8px}.profile-title b,.profile-title small{display:block}.profile-title b{font-size:12px}.profile-title small{margin-top:2px;color:var(--muted);font-size:9px}.profile-list{display:flex;flex-direction:column;gap:7px}.profile-row{padding:8px 10px;border:1px solid var(--line);border-radius:13px;background:#fbfcfd;display:flex;align-items:center;gap:10px}.profile-avatar{position:relative;width:42px;height:42px;flex:0 0 auto;cursor:pointer}.profile-avatar img{width:100%;height:100%;border-radius:12px;object-fit:cover}.profile-avatar i{position:absolute;right:-3px;bottom:-3px;width:18px;height:18px;border-radius:6px;background:#1d2637;color:#fff;border:2px solid #fff;display:grid;place-items:center;font-style:normal;font-size:9px}.profile-avatar input{display:none}.profile-row>div{flex:1}.profile-row>div>label{display:block;margin-bottom:4px;color:var(--muted);font-size:9px}.profile-row .input{height:35px;font-size:12px}.image-lightbox{position:fixed;inset:0;z-index:1000;background:rgba(0,0,0,.84);display:grid;place-items:center;padding:20px}.image-lightbox img{max-width:96vw;max-height:92vh;border-radius:12px}

@media(max-width:1100px){.room-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.chat-layout{grid-template-columns:310px minmax(0,1fr)}}
@media(max-width:760px){
  :root{--nav-h:70px}.main-shell{padding:10px 9px 8px}.page-heading{margin-bottom:10px}.page-heading h1{font-size:20px}.page-heading p{display:none}.room-grid{grid-template-columns:1fr}.room-card{padding:14px}.bottom-nav{bottom:6px;width:calc(100% - 12px);height:60px;border-radius:17px}.bottom-nav button>i{right:15%}
  .chat-layout{display:block;position:relative;border-radius:15px}.conversation-panel,.chat-panel{position:absolute;inset:0}.chat-panel{display:none}.chat-layout.mobile-chat-open .conversation-panel{display:none}.chat-layout.mobile-chat-open .chat-panel{display:flex}.mobile-back{display:grid}.chat-head-fixed{height:auto;min-height:62px;padding:8px 10px;align-items:flex-start}.chat-person img{width:36px;height:36px}.chat-tools{max-width:52%;gap:4px}.chat-tools button{height:28px;padding:0 7px;font-size:9px}.identity-bar{padding:6px 10px}.identity-bar>span{display:none}.messages{padding:14px 10px 20px}.message-content{max-width:80%}.composer-fixed{padding-left:9px;padding-right:9px}
  .greeting-layout{grid-template-columns:1fr}.greeting-room-list{display:flex;overflow-x:auto}.greeting-room-list button{min-width:170px;border-right:1px solid var(--line);border-bottom:0}.greeting-editor{min-height:0}.settings-grid{grid-template-columns:1fr}.wide-card{grid-column:auto}.two-fields{grid-template-columns:1fr}.user-row{align-items:flex-start}.user-actions{flex-direction:column}.modal-mask{align-items:end;padding:0}.modal{max-height:94vh;border-radius:20px 20px 0 0}.room-basic{grid-template-columns:1fr 120px}.toast-wrap{left:10px;right:10px;top:10px}.toast{min-width:0;max-width:none}.login-card{padding:24px 20px}.login-brand h1{font-size:21px}
}


/* v1.5.1 启动保护：即使 Vue 或业务脚本异常，也不再显示纯白页 */
.boot-screen{position:fixed;inset:0;z-index:99999;display:flex;align-items:center;justify-content:center;padding:24px;background:#f5f6f8;color:#172033;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif}
.boot-card{width:min(92vw,420px);padding:34px 28px;text-align:center;background:#fff;border:1px solid #e7eaf0;border-radius:22px;box-shadow:0 16px 48px rgba(20,31,53,.10)}
.boot-card h1{margin:16px 0 8px;font-size:22px}.boot-card p{margin:0;color:#576174;font-size:15px}.boot-detail{margin-top:10px;color:#9aa3b2;font-size:12px;word-break:break-word}
.boot-spinner{width:38px;height:38px;margin:0 auto;border:4px solid #e5ebff;border-top-color:#3667ed;border-radius:50%;animation:boot-spin .8s linear infinite}
.boot-screen.is-error .boot-spinner{animation:none;border-color:#ffe0e0;border-top-color:#e34b4b}.boot-screen.is-error .boot-card p{color:#c53c3c}
.boot-actions{display:flex;gap:10px;justify-content:center;margin-top:20px}.boot-actions button,.boot-actions a{display:inline-flex;align-items:center;justify-content:center;height:40px;padding:0 16px;border:0;border-radius:10px;text-decoration:none;font-size:14px}.boot-actions button{background:#3667ed;color:#fff}.boot-actions a{background:#f0f3f8;color:#33405a}
.boot-noscript{position:fixed;inset:0;z-index:100000;display:flex;align-items:center;justify-content:center;padding:30px;background:#fff;color:#c53c3c;font-size:16px}
@keyframes boot-spin{to{transform:rotate(360deg)}}

.presence-text{margin-left:6px!important;font-weight:700}.presence-text.online{color:#2fa968!important}.presence-text.background{color:#e49826!important}.presence-text.offline{color:#9aa1ac!important}
/* v1.7 PWA / 通知设置 */
.pwa-card{align-self:start}.pwa-live-dot{width:10px;height:10px;border-radius:50%;background:#c8ccd3;box-shadow:0 0 0 4px rgba(200,204,211,.18)}.pwa-live-dot.on{background:#34b56d;box-shadow:0 0 0 4px rgba(52,181,109,.14)}
.pwa-setting-row{display:flex;align-items:center;gap:12px;padding:15px 0;border-bottom:1px solid #eef0f3}.pwa-setting-row:last-of-type{border-bottom:0}.pwa-setting-icon{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;background:#f2f4f7;color:#3f4650;font-size:20px;flex:0 0 42px}.pwa-setting-main{flex:1;min-width:0}.pwa-setting-main b,.pwa-setting-main small{display:block}.pwa-setting-main b{font-size:15px;color:#20242a}.pwa-setting-main small{margin-top:4px;color:#8a9099;font-size:12px;line-height:1.45}.pwa-setting-actions{display:flex;gap:18px;padding-top:14px}.pwa-setting-actions .plain-btn{padding:0}.pwa-note{margin-top:14px;padding:12px 13px;border-radius:11px;background:#f7f8fa;color:#747b85;font-size:12px;line-height:1.7}.pwa-note b{color:#4c535d}
@media(max-width:560px){.pwa-setting-row{align-items:flex-start}.pwa-setting-row .btn{margin-top:3px;white-space:nowrap}.pwa-setting-icon{width:38px;height:38px;flex-basis:38px}.pwa-setting-actions{justify-content:space-between}}
