:root{--pri:#3b82f6;--pri-d:#2563eb;--bg:#f5f6fa;--card:#fff;--text:#1a1a2e;--muted:#8b8fa3;--border:#e8eaf0;--danger:#ef4444;--success:#22c55e;--warn:#f59e0b;--safe-t:env(safe-area-inset-top,0px);--safe-b:env(safe-area-inset-bottom,0px);--red:#e74c3c;--red-theme-base:#c46868;--red-theme-bg:linear-gradient(rgba(255,255,255,.48),rgba(255,255,255,.38)),var(--red-theme-base) url('/app/assets/team-bg.png') center top/100% auto no-repeat;--red-theme-glass:rgba(255,255,255,.22);--red-theme-glass-border:rgba(255,255,255,.32)}
*{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent}
html,body{-webkit-text-size-adjust:100%;text-size-adjust:100%;touch-action:manipulation}
body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;background:var(--bg);color:var(--text);height:100vh;height:100dvh;min-height:100vh;min-height:100dvh;overflow:hidden}
/* 弱机 / 国产 WebView 轻量模式：去掉毛玻璃，降低合成层压力 */
.compat-lite .login-card,
.compat-lite .shell-themed .header,
.compat-lite .shell-home-msg .list,
.compat-lite .shell-home-me .me-menu,
.compat-lite .shell-home-me .me-checkin-card,
.compat-lite .shell-home-me .me-balance-row,
.compat-lite .shell-themed .card,
.compat-lite .shell-themed .list,
.compat-lite .shell-themed .checkin-cal-card,
.compat-lite .shell-themed .checkin-done-card,
.compat-lite .shell-themed .chat-toolbar,
.compat-lite .shell-themed .chat-input{
  backdrop-filter:none!important;-webkit-backdrop-filter:none!important;background:rgba(255,255,255,.92)!important
}
.compat-lite .shell-themed .header{background:rgba(139,26,26,.92)!important}
.xinz-native .header{padding-top:calc(12px + var(--safe-t))}
.xinz-native .api-offline-banner,.xinz-native .app-update-banner{padding-top:calc(10px + var(--safe-t))}
.xinz-native .me-header{padding-top:calc(20px + var(--safe-t))}
.xinz-native .shell-home-poster .home-body{padding-top:var(--safe-t)}
.xinz-native .tabbar,.xinz-native .chat-input{padding-bottom:calc(8px + var(--safe-b))}
.xinz-native .fab-service{bottom:calc(68px + var(--safe-b))}
.hidden{display:none!important}
/* 聊天等隐藏 file：可被程序 click()，但绝不能盖住页面其它按钮 */
.file-input-native,.xinz-ephemeral-file{position:fixed!important;left:-9999px!important;top:0!important;width:1px!important;height:1px!important;opacity:0!important;overflow:hidden!important;z-index:-1!important;border:0!important;padding:0!important;margin:0!important;font-size:1px!important;pointer-events:none!important}
/* 图片/视频按钮上的透明 file 覆盖层（Android WebView 可靠选文件） */
.chat-tool-wrap{position:relative;flex:1;min-width:0}
.chat-tool-wrap .chat-tool-btn{width:100%;pointer-events:none}
.chat-tool-file{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;z-index:2;border:0;margin:0;padding:0;font-size:24px}
#root{height:100vh;height:100dvh;min-height:100vh;min-height:100dvh}
.shell{height:100vh;height:100dvh;min-height:100vh;min-height:100dvh;display:flex;flex-direction:column}

.login-page{height:100vh;height:100dvh;display:flex;flex-direction:column;justify-content:flex-end;padding:0 20px calc(28px + var(--safe-b));background-color:#7a1515;background-image:var(--login-bg,url('/app/login-bg.png'));background-size:cover;background-position:center top;background-repeat:no-repeat}
.login-logo{display:none}
.login-brand{display:flex;align-items:center;gap:12px;margin:0 auto 16px;padding:12px 14px;border-radius:16px;background:rgba(0,0,0,.28);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);max-width:360px;width:100%;box-sizing:border-box}
.login-brand-logo{width:52px;height:52px;border-radius:14px;object-fit:contain;background:rgba(255,255,255,.92);flex-shrink:0}
.login-brand-text h1{margin:0;font-size:20px;font-weight:700;color:#fff;line-height:1.2}
.login-brand-text p{margin:4px 0 0;font-size:12px;color:rgba(255,255,255,.85);line-height:1.3}
.login-tabs{display:flex;gap:0;background:rgba(255,255,255,.92);border-radius:12px;padding:4px;margin-bottom:12px;max-width:360px;width:100%;margin-left:auto;margin-right:auto;box-shadow:0 4px 16px rgba(0,0,0,.12)}
.login-tab{flex:1;border:none;background:transparent;color:#8b4513;font-size:15px;font-weight:600;padding:12px 8px;border-radius:10px;cursor:pointer}
.login-tab.active{background:linear-gradient(135deg,var(--site-theme,var(--pri)),var(--site-theme-dark,var(--pri-d)));color:#fff;box-shadow:0 2px 8px rgba(0,0,0,.2)}
html[data-site="b"] .login-page{background-color:#0f766e}
html[data-site="c"] .login-page{background-color:#1d4ed8}
html[data-site="d"] .login-page{background-color:#b45309}
.login-card{max-width:360px;width:100%;margin:0 auto;background:rgba(255,255,255,.96);border-radius:16px;padding:24px 20px;box-shadow:0 8px 32px rgba(0,0,0,.25);backdrop-filter:blur(6px)}
.login-tip{font-size:12px;color:var(--muted);line-height:1.5;margin:-4px 0 14px}
.login-avatar-field{text-align:center;margin-bottom:16px}
.login-avatar-label{display:block;text-align:left;font-size:14px;font-weight:600;margin-bottom:8px;color:#333}
.login-avatar-upload{width:120px;height:120px;margin:0 auto;border-radius:50%;background:#f3f4f6;border:2px dashed var(--border);display:flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;position:relative;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.login-avatar-preview{width:100%;height:100%;object-fit:cover;display:block;pointer-events:none;user-select:none;-webkit-user-select:none;position:relative;z-index:1}
.login-avatar-ph{font-size:40px;color:var(--muted);line-height:1;pointer-events:none;user-select:none;position:relative;z-index:1}
.login-avatar-tip{font-size:12px;color:var(--muted);margin-top:10px;line-height:1.5}
.img-upload-file{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;z-index:5;border:0;margin:0;padding:0;font-size:48px}
.img-upload-preview,.img-upload-ph{pointer-events:none;position:relative;z-index:1}
.api-offline-banner{position:fixed;top:0;left:0;right:0;z-index:9999;background:#c41e3a;color:#fff;text-align:center;padding:10px 12px;font-size:13px;font-weight:600;cursor:pointer;box-shadow:0 2px 8px rgba(0,0,0,.2)}
.api-offline-banner.hidden{display:none}
.app-update-banner{position:fixed;top:0;left:0;right:0;z-index:10000;background:#0f766e;color:#fff;text-align:center;padding:12px 14px;font-size:14px;font-weight:600;cursor:pointer;box-shadow:0 2px 10px rgba(0,0,0,.25)}
.app-update-banner.hidden{display:none}
.app-update-banner small{display:block;margin-top:4px;font-size:12px;font-weight:400;opacity:.9}
.field label .req{color:#c41e3a}
.field{margin-bottom:14px}
.field label{font-size:13px;color:var(--muted);display:block;margin-bottom:6px}
.field input,.field textarea,.field select{width:100%;padding:13px 16px;border:1px solid var(--border);border-radius:12px;font-size:16px;background:#fff;font-family:inherit}
.field input:focus,.field textarea:focus{outline:none;border-color:var(--pri)}
.btn{display:inline-block;padding:14px 20px;border:none;border-radius:12px;font-size:16px;font-weight:600;cursor:pointer;text-align:center}
.btn-block{display:block;width:100%}
.btn-pri{background:var(--pri);color:#fff}
.btn-pri:active{background:var(--pri-d)}
.btn-sm{padding:8px 14px;font-size:13px;border-radius:8px}
.btn-outline{background:#fff;border:1px solid var(--border);color:var(--text)}
.btn-danger{background:var(--danger);color:#fff}
.btn-red{background:linear-gradient(135deg,#ff6b6b,#e74c3c);color:#fff}
.link{text-align:center;margin-top:16px;color:var(--pri);font-size:14px;cursor:pointer}
.err{color:var(--danger);font-size:13px;text-align:center;margin-top:10px}

.header{background:var(--card);padding:12px 16px;padding-top:calc(12px + var(--safe-t, env(safe-area-inset-top,0px)));border-bottom:1px solid var(--border);display:flex;align-items:center;gap:12px;flex-shrink:0;position:relative;z-index:5}
.header h1{flex:1;font-size:17px;font-weight:600}
.header .back,.header .action{font-size:22px;cursor:pointer;padding:4px;color:var(--pri)}
.header .action{font-size:14px;font-weight:600}

.tabbar{background:var(--card);border-top:1px solid var(--border);display:flex;padding-bottom:var(--safe-b);flex-shrink:0}
.tabbar-5 .tab-item{font-size:9px}
.tabbar-5 .tab-item .icon{font-size:20px}
.tab-item{flex:1;text-align:center;padding:8px 0 6px;cursor:pointer;color:var(--muted);font-size:10px;position:relative}
.tab-item.active{color:var(--pri)}
.tab-item .icon{font-size:22px;display:block;margin-bottom:2px;line-height:1.1}
.tab-item .icon.has-img{height:24px}
.tab-item .icon img{width:24px;height:24px;object-fit:contain;display:block;margin:0 auto}
.tabbar-5 .tab-item .icon img{width:22px;height:22px}
.badge{position:absolute;top:4px;right:calc(50% - 22px);background:var(--danger);color:#fff;font-size:10px;min-width:16px;height:16px;border-radius:8px;line-height:16px;padding:0 4px}
.unread-dot{background:var(--danger);color:#fff;font-size:11px;min-width:20px;height:20px;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;padding:0 6px;font-weight:600}
.toast{position:fixed;top:calc(12px + env(safe-area-inset-top,0px));left:50%;transform:translateX(-50%);z-index:9999;background:var(--card);border:1px solid var(--border);border-radius:12px;padding:12px 18px;box-shadow:0 8px 24px rgba(0,0,0,.15);max-width:90vw;min-width:240px;animation:toastIn .25s ease}
.toast-title{font-weight:600;font-size:14px;margin-bottom:4px}
.toast-body{font-size:13px;color:var(--muted);line-height:1.5;max-width:280px}
@keyframes toastIn{from{opacity:0;transform:translateX(-50%) translateY(-12px)}to{opacity:1;transform:translateX(-50%) translateY(0)}}

.content{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch}
.page{padding:12px 16px}
.list{background:var(--card);border-radius:14px;overflow:hidden;margin-bottom:12px}
.list-item{display:flex;align-items:center;padding:14px 16px;border-bottom:1px solid var(--border);cursor:pointer;gap:12px}
.list-item:last-child{border-bottom:none}
.list-item:active{background:#f9fafb}
.list-item-disabled{opacity:.55;cursor:default;pointer-events:none}
.list-item-disabled:active{background:transparent}
.pay-pwd-input{font-size:18px;letter-spacing:4px;font-variant-numeric:tabular-nums}
.avatar{width:46px;height:46px;border-radius:50%;background:linear-gradient(135deg,var(--pri),#818cf8);color:#fff;display:flex;align-items:center;justify-content:center;font-size:16px;font-weight:600;flex-shrink:0;overflow:hidden;text-align:center;line-height:1.15;padding:3px;box-sizing:border-box;word-break:break-all}
.avatar-name-md{font-size:13px}
.avatar-name-sm{font-size:11px}
.avatar-name-xs{font-size:10px;line-height:1.1;padding:2px}
.avatar-img{background:none;object-fit:cover;display:block;width:46px;height:46px;padding:0}
.item-body{flex:1;min-width:0}
.item-title{font-size:15px;font-weight:500}
.item-sub{font-size:13px;color:var(--muted);margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.item-time{font-size:11px;color:var(--muted);flex-shrink:0}
.item-right{color:var(--muted);font-size:13px}

.chat-page{display:flex;flex-direction:column;height:100vh;height:100dvh}
.chat-msgs{flex:1;overflow-y:auto;padding:12px 16px;display:flex;flex-direction:column;gap:10px}
.msg-wrap{display:flex;flex-direction:column;max-width:78%}
.msg-wrap.self{align-self:flex-end;align-items:flex-end}
.msg-wrap.other{align-self:flex-start;align-items:flex-start}
.msg-row{display:flex;align-items:flex-end;gap:6px;max-width:100%}
.msg-row.self{flex-direction:row-reverse}
.msg-row.other{flex-direction:row}
.msg-row.with-avatar{gap:8px}
.msg-col{min-width:0;max-width:calc(100% - 44px)}
.msg-inner-row{display:flex;align-items:flex-end;gap:6px;max-width:100%}
.msg-row.self .msg-inner-row{flex-direction:row-reverse}
.msg-avatar{width:36px!important;height:36px!important;font-size:11px!important;border-radius:50%!important;flex-shrink:0;padding:2px!important;line-height:1.1!important}
.msg-avatar.avatar-name-md{font-size:10px!important}
.msg-avatar.avatar-name-sm,.msg-avatar.avatar-name-xs{font-size:9px!important}
.me-avatar-wrap .avatar,.me-avatar-wrap .avatar-img{width:64px;height:64px;border-radius:12px;font-size:18px;font-weight:700;flex-shrink:0;color:#fff;padding:4px;box-sizing:border-box;line-height:1.15;text-align:center;word-break:break-all}
.me-avatar-wrap .avatar.avatar-name-md{font-size:16px}
.me-avatar-wrap .avatar.avatar-name-sm{font-size:14px}
.me-avatar-wrap .avatar.avatar-name-xs{font-size:12px}
.msg-name{font-size:11px;color:var(--muted);margin-bottom:3px}
.msg{padding:10px 14px;border-radius:16px;font-size:15px;line-height:1.4;word-break:break-word;max-width:100%;white-space:pre-wrap}
.msg.self{background:var(--pri);color:#fff;border-bottom-right-radius:4px}
.msg.other{background:var(--card);border:1px solid var(--border);border-bottom-left-radius:4px}
.msg-status{font-size:11px;line-height:1;white-space:nowrap;flex-shrink:0;padding-bottom:4px}
.msg-status.read{color:var(--pri);font-weight:500}
.msg-status.unread{color:var(--muted)}
.msg-status.partial{color:var(--warn)}
.msg-rp{background:linear-gradient(135deg,#ff6b6b,#e74c3c);color:#fff;padding:14px 18px;border-radius:12px;min-width:180px;cursor:pointer}
.msg-rp .rp-icon{font-size:28px;margin-bottom:4px}
.msg-rp.claimed{opacity:.6}
.chat-toolbar{background:var(--card);border-top:1px solid var(--border);padding:8px 12px;display:flex;gap:8px;flex-wrap:wrap;position:relative;z-index:2}
.chat-tool-btn{cursor:pointer;font-size:13px;color:var(--muted);padding:6px 10px;border:1px solid var(--border);border-radius:8px;background:#fff;user-select:none;display:block;text-align:center}
.chat-tool-btn:active,.chat-tool-wrap:active .chat-tool-btn{opacity:.7;border-color:var(--pri);color:var(--pri)}
.msg-media{padding:0;background:transparent!important;border:none!important}
.msg-media-wrap{position:relative;display:inline-block;line-height:0;max-width:100%}
.msg-media-pending .msg-image,.msg-media-pending .msg-video{opacity:.82}
.msg-media-loading{position:absolute;inset:0;background:rgba(0,0,0,.38);border-radius:12px;display:flex;align-items:center;justify-content:center;pointer-events:none}
.msg-media-spinner{width:34px;height:34px;border:3px solid rgba(255,255,255,.35);border-top-color:#fff;border-radius:50%;animation:msg-spin .75s linear infinite}
.msg-media-failed span{display:flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:50%;background:rgba(239,68,68,.92);color:#fff;font-size:18px;font-weight:700}
@keyframes msg-spin{to{transform:rotate(360deg)}}
.msg-image{max-width:200px;max-height:200px;border-radius:12px;display:block;cursor:pointer;object-fit:cover;background:#eee}
.msg-video{max-width:220px;max-height:180px;border-radius:12px;display:block;background:#000}
.media-preview-overlay{position:fixed;inset:0;background:rgba(0,0,0,.92);z-index:300;display:flex;align-items:center;justify-content:center;padding:20px;-webkit-tap-highlight-color:transparent}
.media-preview-overlay img{max-width:100%;max-height:100%;object-fit:contain;border-radius:8px;pointer-events:none;user-select:none;-webkit-user-select:none}
.media-preview-close{position:absolute;top:max(16px, env(safe-area-inset-top, 0px));right:20px;color:#fff;font-size:36px;line-height:1;cursor:pointer;padding:8px;z-index:2;-webkit-tap-highlight-color:transparent}
.chat-input{background:var(--card);border-top:1px solid var(--border);padding:10px 12px;padding-bottom:calc(10px + var(--safe-b));display:flex;gap:8px;align-items:flex-end}
.chat-input input{flex:1;padding:10px 14px;border:1px solid var(--border);border-radius:20px;font-size:15px}
.chat-input button{padding:10px 18px;background:var(--pri);color:#fff;border:none;border-radius:20px;font-size:14px;font-weight:600;cursor:pointer}

.card{background:var(--card);border-radius:14px;padding:16px;margin-bottom:12px}
.card-title{font-size:13px;color:var(--muted);margin-bottom:6px}
.card-value{font-size:28px;font-weight:700;color:var(--pri)}
.moment{padding:14px 16px;border-bottom:1px solid var(--border);background:var(--card)}
.moment-user{font-weight:600;margin-bottom:6px;display:flex;align-items:center;gap:8px}
.moment-text{font-size:15px;line-height:1.5;white-space:pre-wrap}
.moment-actions{display:flex;gap:20px;margin-top:10px;font-size:13px;color:var(--muted)}
.moment-actions span{cursor:pointer}
.moment-actions .liked{color:var(--pri)}
.moment-time{font-size:12px;color:var(--muted);margin-top:6px}
.comment-box{margin-top:10px;padding-top:10px;border-top:1px solid var(--border)}
.comment{font-size:13px;margin-bottom:6px;color:var(--text)}
.comment b{color:var(--pri)}

.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.disc-item{background:var(--card);border-radius:12px;padding:18px 12px;text-align:center;font-size:13px;cursor:pointer}
.disc-item:active{opacity:.7}
.disc-item .dicon{font-size:30px;margin-bottom:8px;display:block}

.fab{position:fixed;right:20px;bottom:calc(70px + var(--safe-b));width:52px;height:52px;border-radius:50%;background:var(--pri);color:#fff;font-size:28px;border:none;box-shadow:0 4px 16px rgba(59,130,246,.4);cursor:pointer;z-index:10;line-height:52px;text-align:center}

.modal-overlay{position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:200;display:flex;align-items:flex-end;justify-content:center}
#modal.modal-overlay{align-items:center;justify-content:center;padding:20px}
#modal .modal-sheet{border-radius:16px;max-width:340px;margin:0;width:calc(100% - 40px)}

.modal-sheet{background:var(--card);border-radius:16px 16px 0 0;width:100%;max-width:480px;padding:20px;padding-bottom:calc(20px + var(--safe-b));max-height:85vh;max-height:85dvh;overflow-y:auto}
.modal-sheet h3{margin-bottom:16px;font-size:17px}
.modal-actions{display:flex;gap:10px;margin-top:16px}
.modal-actions .btn{flex:1}

.empty{text-align:center;padding:48px 20px;color:var(--muted);font-size:14px}
.section-title{font-size:13px;color:var(--muted);padding:8px 16px 6px;font-weight:500}
.check-row{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid var(--border)}
.call-overlay{position:fixed;inset:0;background:rgba(0,0,0,.85);z-index:200;display:flex;align-items:center;justify-content:center}
.call-box{text-align:center;color:#fff;width:100%;max-width:360px;padding:24px}
.call-status{font-size:20px;margin-bottom:24px}
.call-avatar{font-size:80px;margin:40px 0}
.call-remote{width:100%;max-height:50vh;border-radius:12px;background:#000;margin-bottom:8px}
.call-local{position:absolute;top:80px;right:16px;width:100px;height:140px;border-radius:8px;object-fit:cover;background:#333}
.call-actions{margin-top:32px}
.call-btn{padding:14px 40px;border:none;border-radius:30px;font-size:16px;font-weight:600;cursor:pointer}
.call-btn.hangup{background:var(--danger);color:#fff}
.call-btn.accept{background:var(--success,#22c55e);color:#fff}
.banner{background:linear-gradient(135deg,var(--pri),#818cf8);color:#fff;border-radius:14px;padding:20px;margin-bottom:14px}
.banner h3{font-size:16px;margin-bottom:4px}
.banner p{font-size:13px;opacity:.85}
.home-tip{padding:32px 20px;text-align:center;color:var(--muted);font-size:14px;line-height:1.8}
.scan-input{width:100%;padding:12px;border:1px solid var(--border);border-radius:10px;margin-bottom:12px;font-size:14px}
.qr-img{width:200px;height:200px;margin:16px auto;display:block;border-radius:8px;background:#fff;padding:8px}
.tag-row{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
.tag-pill{background:var(--bg);padding:4px 10px;border-radius:12px;font-size:12px;color:var(--muted)}

body.dark{--bg:#0f1419;--card:#1a2332;--text:#e7ecf3;--muted:#8b9cb3;--border:#2d3f56}
body.dark .field input,body.dark .field textarea,body.dark .field select{background:#0f1419;color:var(--text)}
body.dark .chat-input input{background:#0f1419;color:var(--text)}

.team-page{padding-bottom:16px}
.shell-home-team{background:var(--red-theme-base)}
.shell-home-team .home-body{padding:calc(12px + env(safe-area-inset-top,0px)) 12px calc(72px + var(--safe-b));background:var(--red-theme-bg)}
.shell-home-team .team-invite-card{background:var(--red-theme-glass);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border:1px solid var(--red-theme-glass-border);box-shadow:0 2px 12px rgba(0,0,0,.08);color:#fff;border-radius:14px;padding:20px;margin-bottom:14px;text-align:center}
.team-invite-card{background:linear-gradient(135deg,#8b1a1a,#c41e3a);color:#fff;border-radius:14px;padding:20px;margin-bottom:14px;text-align:center}
.team-invite-label{font-size:13px;opacity:.85;margin-bottom:8px}
.team-invite-code{font-size:28px;font-weight:800;letter-spacing:2px;margin-bottom:8px}
.team-invite-link-line{font-size:14px;margin-bottom:8px;opacity:.92}
.team-invite-link-line strong{font-weight:700;letter-spacing:.5px}
.team-invite-tip{font-size:12px;opacity:.8;margin-bottom:14px;line-height:1.5}
.team-invite-actions{display:flex;gap:10px}
.team-invite-actions .btn{flex:1;margin:0;padding:12px 8px;font-size:14px}
.team-invite-card .btn-pri{background:#f5f0e8;color:#8b1a1a}
.team-invite-card .btn-invite-link{background:rgba(255,255,255,.18);color:#fff;border:1px solid rgba(255,255,255,.45)}
.team-invite-card .btn-invite-link:active{opacity:.85}
.team-stats{display:flex;gap:12px;margin-bottom:14px}
.team-stat{flex:1;background:var(--card);border-radius:12px;padding:16px;text-align:center;cursor:pointer;border:2px solid transparent;transition:.2s}
.team-stat:active{opacity:.85}
.team-stat.active{border-color:var(--pri);background:#eef2ff}
.team-stat-num{font-size:24px;font-weight:700;color:var(--pri)}
.team-stat-label{font-size:12px;color:var(--muted);margin-top:4px}
.team-stat.active .team-stat-label{color:var(--pri);font-weight:600}
.team-parent{margin-bottom:12px}
.shell-home-team .team-stat{background:var(--red-theme-glass);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border:2px solid var(--red-theme-glass-border);color:#fff}
.shell-home-team .team-stat.active{border-color:rgba(255,255,255,.5);background:rgba(196,30,58,.32)}
.shell-home-team .team-stat-num{color:#ffe8a3}
.shell-home-team .team-stat-label{color:rgba(255,255,255,.85)}
.shell-home-team .team-stat.active .team-stat-label{color:#fff;font-weight:600}
.shell-home-team .card,.shell-home-team .list{background:var(--red-theme-glass);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border:1px solid var(--red-theme-glass-border);box-shadow:0 2px 12px rgba(0,0,0,.08)}
.shell-home-team .card-title,.shell-home-team .section-title{color:rgba(255,255,255,.92);text-shadow:0 1px 2px rgba(0,0,0,.35)}
.shell-home-team .list-item{border-bottom-color:rgba(255,255,255,.12)}
.shell-home-team .list-item:active{background:rgba(255,255,255,.08)}
.shell-home-team .item-title{color:#fff}
.shell-home-team .item-sub{color:rgba(255,255,255,.78)}
.shell-home-team .item-right{color:rgba(255,255,255,.65)}
.shell-home-team .empty{color:rgba(255,255,255,.75)}
.shell-home-team .tabbar{background:#fff;border-top:1px solid #eee}

/* 消息 / 我的 — 同团队红色主题背景（淡色） */
.shell-home-msg,.shell-home-me{background:var(--red-theme-base)}
.shell-home-msg .home-body,.shell-home-me .home-body{padding:calc(12px + env(safe-area-inset-top,0px)) 12px calc(72px + var(--safe-b));background:var(--red-theme-bg)}
.shell-home-msg .list,.shell-home-me .me-menu,.shell-home-me .me-checkin-card,.shell-home-me .me-balance-row{background:var(--red-theme-glass);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border:1px solid var(--red-theme-glass-border);box-shadow:0 2px 12px rgba(0,0,0,.08);border-radius:12px;overflow:hidden}
.shell-home-msg .section-title,.shell-home-me .me-section-title{color:rgba(255,255,255,.92);text-shadow:0 1px 2px rgba(0,0,0,.35)}
.shell-home-msg .list-item,.shell-home-me .me-menu .list-item{border-bottom-color:rgba(255,255,255,.12)}
.shell-home-msg .list-item:active,.shell-home-me .me-menu .list-item:active{background:rgba(255,255,255,.08)}
.shell-home-msg .item-title,.shell-home-me .me-menu .item-title,.shell-home-me .me-name,.shell-home-me .me-checkin-title{color:#fff}
.shell-home-msg .item-sub,.shell-home-me .me-menu .item-sub,.shell-home-me .me-meta,.shell-home-me .me-checkin-meta{color:rgba(255,255,255,.78)}
.shell-home-msg .item-right,.shell-home-me .me-menu .item-right,.shell-home-me .me-checkin-arrow{color:rgba(255,255,255,.65)}
.shell-home-msg .empty{color:rgba(255,255,255,.75)}
.shell-home-msg .tabbar,.shell-home-me .tabbar{background:#fff;border-top:1px solid #eee}
.shell-home-me .me-header{background:transparent;padding:calc(8px + env(safe-area-inset-top,0px)) 4px 16px;color:#fff}
.shell-home-me .me-checkin-card{margin:0 0 12px}
.shell-home-me .me-balance-row{margin:0 0 12px;background:var(--red-theme-glass)}
.shell-home-me .me-balance-num{color:#ffe8a3}
.shell-home-me .me-balance-label{color:rgba(255,255,255,.85)}
.shell-home-me .me-checkin-points{color:#ffe8a3}
.shell-home-me .me-reward-tip{margin:0 0 12px;background:rgba(255,255,255,.18);border-color:var(--red-theme-glass-border);color:rgba(255,255,255,.92)}
.shell-home-me .me-reward-tip strong{color:#ffe8a3}
.shell-home-me .me-withdraw-btn{width:100%;margin:0 0 16px}
.shell-home-me .me-func-icon{background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.25);box-shadow:0 2px 8px rgba(0,0,0,.1)}
.shell-home-me .me-func-item{color:rgba(255,255,255,.92)}
.shell-home-me .me-menu{margin:0 0 16px}
.shell-home-me .tab-item.active{color:#c41e3a}

/* 子页面统一红色主题背景（淡色） */
.shell-themed{background:var(--red-theme-base);height:100vh;height:100dvh;display:flex;flex-direction:column}
.shell-themed .header{background:rgba(255,255,255,.18);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-bottom:1px solid var(--red-theme-glass-border);color:#fff}
.shell-themed .header h1,.shell-themed .header .back,.shell-themed .header .action{color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.15)}
.shell-themed>.content{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch;background:var(--red-theme-bg);padding:12px 16px calc(12px + var(--safe-b))}
.chat-page.shell-themed{background:var(--red-theme-bg);height:100vh;height:100dvh;display:flex;flex-direction:column}
.chat-page.shell-themed .chat-msgs{background:transparent}
.chat-page.shell-themed .chat-toolbar,.chat-page.shell-themed .chat-input{background:var(--red-theme-glass);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-color:var(--red-theme-glass-border)}
.chat-page.shell-themed .chat-tool-btn{background:rgba(255,255,255,.16);border-color:var(--red-theme-glass-border);color:rgba(255,255,255,.9)}
.chat-page.shell-themed .chat-input input{background:rgba(255,255,255,.92)}
.shell-themed .field label{color:rgba(255,255,255,.88)}
.shell-themed .field input,.shell-themed .field textarea,.shell-themed .field select{background:rgba(255,255,255,.92)}
.shell-themed .section-title{color:rgba(255,255,255,.92);text-shadow:0 1px 2px rgba(0,0,0,.35)}
.shell-themed .card,.shell-themed .list{background:var(--red-theme-glass);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border:1px solid var(--red-theme-glass-border);box-shadow:0 2px 12px rgba(0,0,0,.08);border-radius:12px;overflow:hidden;color:#fff}
.shell-themed .card-title{color:rgba(255,255,255,.78)}
.shell-themed .card-value{color:#ffe8a3}
.shell-themed .list-item{border-bottom-color:rgba(255,255,255,.12)}
.shell-themed .list-item:active{background:rgba(255,255,255,.08)}
.shell-themed .item-title{color:#fff}
.shell-themed .item-sub{color:rgba(255,255,255,.75)}
.shell-themed .empty{color:rgba(255,255,255,.75);text-align:center;padding:32px 16px}
.shell-themed .img-upload{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.35)}
.shell-themed .img-upload-ph{color:rgba(255,255,255,.75)}
.shell-themed .me-tip-ok{background:rgba(34,197,94,.22);color:#dcfce7;border:1px solid rgba(34,197,94,.35)}
.shell-themed .checkin-cal-card,.shell-themed .checkin-done-card,.shell-themed .checkin-video-empty{background:var(--red-theme-glass);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border:1px solid var(--red-theme-glass-border);color:#fff;box-shadow:0 2px 12px rgba(0,0,0,.08)}
.shell-themed .checkin-cal-head,.shell-themed .checkin-today-title,.shell-themed .checkin-day,.shell-themed .checkin-done-title{color:#fff}
.shell-themed .checkin-cal-stats{background:rgba(0,0,0,.18);color:rgba(255,255,255,.85)}
.shell-themed .checkin-cal-stats strong{color:#ffe8a3}
.shell-themed .checkin-today-tip,.shell-themed .checkin-streak,.shell-themed .checkin-progress-text,.shell-themed .checkin-done-meta,.shell-themed .checkin-cal-legend,.shell-themed .checkin-points-row{color:rgba(255,255,255,.78)}
.shell-themed .checkin-points-row strong{color:#ffe8a3}
.shell-themed .checkin-reward{color:#ffe8a3}
.shell-themed .checkin-today-done{background:rgba(34,197,94,.22);color:#dcfce7;border:1px solid rgba(34,197,94,.35)}
.shell-themed .wd-balance-card{background:var(--red-theme-glass);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border:1px solid var(--red-theme-glass-border)}
.shell-themed .wd-channel-item{background:var(--red-theme-glass);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-color:var(--red-theme-glass-border);color:#fff}
.shell-themed .wd-channel-item.active{border-color:rgba(255,255,255,.55);background:rgba(196,30,58,.28)}
.shell-themed .wd-channel-name{color:#fff}
.shell-themed .wd-channel-tip,.shell-themed .wd-tip{color:rgba(255,255,255,.78)}
.shell-themed .wd-all-btn{background:rgba(255,255,255,.18);border-color:rgba(255,255,255,.3);color:#ffe8a3}
.shell-themed .wd-check{color:#ffe8a3}

/* Home news broadcast */
.shell-home{background:#8b1a1a;background:linear-gradient(180deg,#7a1515 0%,#9b2222 40%,#8b1a1a 100%);height:100vh;height:100dvh;display:flex;flex-direction:column;position:relative;overflow:hidden}
.shell-home-poster{background:#8b1a1a}
.shell-home-policy{background:#8b1a1a}
.shell-home .home-body{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:0;padding-bottom:calc(72px + var(--safe-b));position:relative;z-index:1}
.shell-home:not(.shell-home-poster):not(.shell-home-policy) .home-body{padding:calc(12px + env(safe-area-inset-top,0px)) 12px calc(72px + var(--safe-b))}
.shell-home-poster .home-body{flex:1;min-height:0;overflow:hidden;padding:0;padding-top:env(safe-area-inset-top,0px);position:relative;background:#8b1a1a url('/app/assets/home-bg.png') center top/100% auto no-repeat}
.shell-home-policy .home-body{padding:calc(12px + env(safe-area-inset-top,0px)) 12px calc(72px + var(--safe-b));background:#8b1a1a url('/app/assets/policy-bg.png') center top/100% auto no-repeat}
.home-screen{position:relative;width:100%;height:100%;min-height:0}
.home-on-poster{position:absolute;left:6%;right:6%;bottom:60%;height:36%;display:flex;flex-direction:column;overflow:hidden}
.home-on-poster .home-inner{height:100%;display:flex;flex-direction:column;max-width:none;margin:0}
.home-on-poster .home-cat-bar{flex-shrink:0;padding-bottom:8px;gap:6px}
.home-on-poster .news-list{flex:1;min-height:0;overflow:hidden;gap:8px}
.shell-home-poster .home-cat-btn,
.shell-home-policy .home-cat-btn{padding:8px 4px;font-size:11px;min-width:64px;flex:0 0 auto;background:rgba(255,255,255,.15);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border:1px solid rgba(255,255,255,.25);color:#fff;text-shadow:0 1px 3px rgba(0,0,0,.45);box-shadow:0 2px 12px rgba(0,0,0,.12)}
.shell-home-poster .home-cat-btn.active,
.shell-home-policy .home-cat-btn.active{background:rgba(196,30,58,.5);border-color:rgba(255,255,255,.35);color:#fff;box-shadow:0 2px 12px rgba(196,30,58,.3)}
.shell-home-poster .news-card,
.shell-home-policy .news-card{padding:8px;gap:8px;background:rgba(255,255,255,.15);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border:1px solid rgba(255,255,255,.25);box-shadow:0 2px 12px rgba(0,0,0,.12)}
.shell-home-poster .news-thumb,
.shell-home-policy .news-thumb{width:64px;height:48px}
.shell-home-poster .news-card-title,
.shell-home-policy .news-card-title{font-size:13px;margin-bottom:4px;-webkit-line-clamp:1;color:#fff;text-shadow:0 1px 3px rgba(0,0,0,.45)}
.shell-home-poster .news-card-summary,
.shell-home-policy .news-card-summary{font-size:11px;-webkit-line-clamp:1;color:rgba(255,255,255,.92);text-shadow:0 1px 2px rgba(0,0,0,.35)}
.shell-home-poster .news-empty,
.shell-home-policy .news-empty{padding:16px 8px;font-size:12px;color:rgba(255,255,255,.85)}
.shell-home-policy .policy-ticker-wrap{background:rgba(255,255,255,.12);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border:1px solid rgba(255,255,255,.2)}
.shell-home-policy .news-detail-content{background:rgba(0,0,0,.18);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);border:1px solid rgba(255,255,255,.12)}
.shell-home .tabbar{background:#fff;border-top:1px solid #eee;flex-shrink:0;position:relative;z-index:2}
.shell-home-poster .fab-service{z-index:3;bottom:calc(60px + var(--safe-b));padding:8px 14px;font-size:12px}
.shell-home .tab-item.active{color:#c41e3a}
.home-inner{max-width:480px;margin:0 auto}
.policy-ticker-wrap{display:flex;align-items:center;gap:12px;background:rgba(0,0,0,.22);border-radius:12px;padding:10px 14px;margin-bottom:14px;overflow:hidden}
.policy-ticker-badge{flex-shrink:0;background:linear-gradient(135deg,#c9a86c,#a08030);color:#fff;font-size:14px;font-weight:700;padding:5px 10px;border-radius:8px}
.policy-ticker-viewport{flex:1;overflow:hidden;min-width:0}
.policy-ticker-track{display:inline-block;white-space:nowrap;color:#ffe8a3;font-size:16px;font-weight:600;line-height:1.5;animation:policy-ticker-run 100s linear infinite;will-change:transform}
@keyframes policy-ticker-run{0%{transform:translateX(0)}100%{transform:translateX(-50%)}}
.home-cat-bar{display:flex;gap:8px;padding:0 0 14px;overflow-x:auto;-webkit-overflow-scrolling:touch}
.home-cat-btn{flex:1;min-width:0;padding:10px 8px;border:none;border-radius:10px;background:rgba(255,255,255,.25);color:#fff;font-size:13px;font-weight:600;cursor:pointer;white-space:nowrap;transition:.2s}
.home-cat-btn.active{background:#f5f0e8;color:#8b1a1a;box-shadow:0 2px 8px rgba(0,0,0,.15)}
.news-list{display:flex;flex-direction:column;gap:12px}
.news-card{display:flex;gap:12px;background:#f5f0e8;border-radius:12px;padding:12px;cursor:pointer;box-shadow:0 2px 8px rgba(0,0,0,.12);align-items:flex-start}
.news-card:active{opacity:.92}
.news-thumb{width:100px;height:72px;border-radius:8px;object-fit:cover;flex-shrink:0;background:#ddd}
.news-thumb-ph{background:linear-gradient(135deg,#c9a86c,#8b6914);min-width:100px}
.news-card-body{flex:1;min-width:0}
.news-card-title{font-size:15px;font-weight:700;color:#1a1a1a;line-height:1.35;margin-bottom:6px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.news-card-summary{font-size:12px;color:#666;line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.news-empty{text-align:center;padding:48px 20px;color:rgba(255,255,255,.75);font-size:14px}
.fab-service{position:fixed;right:16px;bottom:calc(68px + var(--safe-b));z-index:50;display:flex;align-items:center;gap:6px;padding:10px 16px;background:linear-gradient(135deg,#c9a86c,#a08030);color:#fff;border-radius:24px;font-size:13px;font-weight:600;cursor:pointer;box-shadow:0 4px 16px rgba(0,0,0,.25)}
.fab-service .fab-icon{font-size:16px}
.news-detail-back{color:#fff;font-size:15px;padding:8px 0 16px;cursor:pointer;opacity:.9}
.news-detail-img{width:100%;border-radius:12px;margin-bottom:16px;max-height:200px;object-fit:cover}
.news-detail-title{font-size:20px;font-weight:700;color:#fff;line-height:1.4;margin-bottom:8px}
.news-detail-meta{font-size:12px;color:rgba(255,255,255,.65);margin-bottom:16px}
.news-detail-content{font-size:15px;color:#f5f0e8;line-height:1.7;white-space:pre-wrap;background:rgba(0,0,0,.12);padding:16px;border-radius:12px}
.news-detail-content-poster{background:transparent;padding:0;white-space:normal}
.news-detail-poster{width:100%;height:auto;display:block;border-radius:12px;object-fit:contain;background:rgba(0,0,0,.08)}
.news-detail-poster-wrap{margin-bottom:12px}
.home-inner-poster .news-detail-title-compact{font-size:16px;margin-top:4px}
.home-inner-poster .news-detail-meta{margin-bottom:8px}
.news-detail-content-img{max-width:100%;height:auto;display:block;margin:12px 0;border-radius:8px;object-fit:contain}

/* Me / Personal center */
.shell-me{background:#f5f0e8;height:100vh;height:100dvh;display:flex;flex-direction:column}
.shell-me .me-body{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch;padding-bottom:80px}
.shell-me .tabbar{background:#fff;border-top:1px solid #eee;flex-shrink:0}
.shell-me .tab-item.active{color:#c41e3a}
.me-page{max-width:480px;margin:0 auto}
.me-header{background:linear-gradient(180deg,#8b1a1a 0%,#a52020 100%);padding:calc(20px + env(safe-area-inset-top,0px)) 16px 24px;color:#fff}
.me-profile{display:flex;align-items:flex-start;gap:12px}
.me-avatar{width:64px;height:64px;border-radius:12px;background:linear-gradient(135deg,#c9a86c,#8b6914);display:flex;align-items:center;justify-content:center;font-size:26px;font-weight:700;flex-shrink:0;color:#fff}
.me-profile-info{flex:1;min-width:0}
.me-name-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:6px}
.me-name{font-size:20px;font-weight:700}
.me-verified{font-size:11px;background:#22c55e;color:#fff;padding:2px 8px;border-radius:10px;font-weight:600}
.me-meta{font-size:13px;opacity:.9;line-height:1.6}
.me-level-badge{flex-shrink:0;background:linear-gradient(135deg,#c9a86c,#a08030);color:#fff;font-size:12px;padding:6px 10px;border-radius:8px;font-weight:600;white-space:nowrap}
.me-gold-card{margin:-12px 12px 12px;background:linear-gradient(135deg,#d4b86a,#c9a050);border-radius:14px;padding:16px;color:#5c3d00;box-shadow:0 4px 16px rgba(0,0,0,.15)}
.me-contrib{margin-bottom:14px}
.me-contrib-head{display:flex;justify-content:space-between;font-size:13px;font-weight:600;margin-bottom:8px}
.me-progress{height:8px;background:rgba(255,255,255,.35);border-radius:4px;overflow:hidden}
.me-progress-bar{height:100%;background:#8b1a1a;border-radius:4px;transition:width .3s}
.me-subsidy-label{font-size:13px;opacity:.85;margin-bottom:4px}
.me-subsidy-amt{font-size:28px;font-weight:800;color:#8b1a1a}
.me-balance-row{display:flex;background:#fff;margin:0 12px 12px;border-radius:12px;overflow:hidden;box-shadow:0 2px 8px rgba(0,0,0,.06)}
.me-balance-item{flex:1;text-align:center;padding:16px 8px}
.me-balance-num{font-size:22px;font-weight:700;color:#1a1a1a}
.me-balance-label{font-size:12px;color:var(--muted);margin-top:4px}
.me-balance-divider{width:1px;background:var(--border);margin:12px 0}
.me-reward-tip{margin:0 12px 12px;padding:12px 14px;border-radius:12px;background:linear-gradient(135deg,rgba(201,168,108,.25),rgba(160,128,48,.18));border:1px solid rgba(201,168,108,.35);color:#f5f0e8;font-size:13px;line-height:1.5}
.me-reward-tip strong{color:#ffe8a3}
.me-withdraw-btn{display:block;width:calc(100% - 24px);margin:0 12px 16px;padding:14px;border:none;border-radius:24px;background:linear-gradient(135deg,#7a8b3a,#5a6b2a);color:#fff;font-size:16px;font-weight:700;cursor:pointer}
.me-withdraw-btn:active{opacity:.9}

.me-checkin-card{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 12px 12px;padding:14px 16px;background:#fff;border-radius:12px;box-shadow:0 2px 8px rgba(0,0,0,.06);cursor:pointer}
.me-checkin-card:active{opacity:.85}
.me-checkin-left{flex:1;min-width:0}
.me-checkin-title{font-size:16px;font-weight:700;color:#1a1a1a;margin-bottom:4px}
.me-checkin-meta{font-size:12px;color:var(--muted);line-height:1.5}
.me-checkin-points{font-size:12px;color:#8b6914;margin-top:4px;font-weight:600}
.me-checkin-arrow{font-size:22px;color:var(--muted);flex-shrink:0}

.checkin-page .checkin-cal-card{background:#fff;border-radius:16px;padding:16px;margin-bottom:16px;box-shadow:0 2px 12px rgba(0,0,0,.06)}
.checkin-cal-head{font-size:18px;font-weight:700;text-align:center;margin-bottom:12px;color:#1a1a1a}
.checkin-cal-stats{display:flex;justify-content:space-around;margin-bottom:16px;padding:10px 0;background:#f5f0e8;border-radius:10px;font-size:13px;color:var(--muted)}
.checkin-cal-stats strong{color:#c41e3a;font-size:16px;margin:0 2px}
.checkin-cal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:8px}
.checkin-cal-day{min-height:36px;aspect-ratio:1;border-radius:10px;background:#f3f4f6;display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;font-size:13px;color:#666}
.checkin-cal-day.signed{background:linear-gradient(135deg,#dcfce7,#bbf7d0);color:#15803d;border:1px solid #86efac}
.checkin-cal-day.signed .checkin-cal-check{font-size:14px;font-weight:700;line-height:1;margin-top:1px}
.checkin-cal-day.today{border:2px solid #c41e3a;background:#fff5f5;color:#c41e3a;font-weight:700}
.checkin-cal-day.today.signed{border-color:#16a34a;background:linear-gradient(135deg,#dcfce7,#bbf7d0);color:#15803d}
.checkin-cal-day.future{opacity:.45}
.checkin-cal-num{font-size:12px;font-weight:600}
.checkin-cal-legend{display:flex;justify-content:center;gap:16px;margin-top:14px;font-size:11px;color:var(--muted)}
.checkin-cal-legend .dot{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:4px;vertical-align:middle}
.checkin-cal-legend .dot.signed{background:#22c55e}
.checkin-cal-legend .dot.today{background:#fff;border:2px solid #c41e3a}
.checkin-cal-legend .dot.future{background:#e5e7eb}

.checkin-today-block{margin-bottom:16px}
.checkin-today-title{font-size:16px;font-weight:700;margin-bottom:4px}
.checkin-today-tip{font-size:13px;color:var(--muted);margin-bottom:12px}
.checkin-today-done{display:flex;align-items:center;gap:10px;padding:14px 16px;background:#dcfce7;border-radius:12px;color:#15803d;font-size:14px;margin-bottom:12px}
.checkin-today-done-icon{width:28px;height:28px;border-radius:50%;background:#22c55e;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;flex-shrink:0}
.checkin-video-empty{padding:20px;text-align:center;color:var(--muted);font-size:14px;background:#fff;border-radius:12px;margin-bottom:12px}
.checkin-points-row{text-align:center;font-size:14px;color:var(--muted);padding:12px 0}
.checkin-points-row strong{color:#8b6914;font-size:16px}

.checkin-page .checkin-info{margin-bottom:16px}
.checkin-day{font-size:18px;font-weight:700;margin-bottom:6px}
.checkin-reward{font-size:14px;color:var(--pri,#c41e3a);margin-bottom:4px}
.checkin-streak{font-size:13px;color:var(--muted)}
.checkin-video-wrap{position:relative;background:#000;border-radius:12px;overflow:hidden;margin-bottom:10px;min-height:200px;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.checkin-video{width:100%;display:block;min-height:200px;max-height:220px;background:#000;object-fit:contain;pointer-events:none}
.checkin-video.is-playing{pointer-events:auto}
.checkin-video-mask{position:absolute;inset:0;z-index:5;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;background:rgba(0,0,0,.55);color:#fff;font-size:14px;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation;user-select:none;-webkit-user-select:none}
.checkin-video-mask.hidden{display:none!important}
.checkin-play-icon{width:56px;height:56px;border-radius:50%;background:rgba(255,255,255,.2);display:flex;align-items:center;justify-content:center;font-size:24px;pointer-events:none}
.checkin-play-btn{margin-bottom:12px;position:relative;z-index:3;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.checkin-progress-bar{height:8px;background:#eee;border-radius:4px;overflow:hidden;margin-bottom:8px}
.checkin-progress-fill{height:100%;background:linear-gradient(90deg,#c41e3a,#a52020);transition:width .3s}
.checkin-progress-text{font-size:13px;color:var(--muted);text-align:center;margin-bottom:16px}
.checkin-submit{margin-top:4px}
.checkin-done-card{text-align:center;padding:40px 20px;background:#fff;border-radius:16px;box-shadow:0 2px 12px rgba(0,0,0,.06)}
.checkin-done-icon{width:64px;height:64px;border-radius:50%;background:#22c55e;color:#fff;font-size:32px;line-height:64px;margin:0 auto 16px}
.checkin-done-title{font-size:20px;font-weight:700;margin-bottom:8px}
.checkin-done-meta{font-size:14px;color:var(--muted)}

.me-checkin-btn{flex-shrink:0;padding:10px 20px;border:none;border-radius:20px;background:linear-gradient(135deg,#c41e3a,#a52020);color:#fff;font-size:14px;font-weight:700;cursor:pointer}
.me-checkin-btn:active{opacity:.9}
.me-checkin-btn.done{background:#e5e7eb;color:#9ca3af;cursor:default}

.withdraw-page .wd-balance-card{background:linear-gradient(135deg,#7a8b3a,#5a6b2a);border-radius:16px;padding:20px;color:#fff;margin-bottom:16px}
.withdraw-page .wd-balance-label{font-size:13px;opacity:.9}
.withdraw-page .wd-balance-num{font-size:32px;font-weight:700;margin-top:6px}
.withdraw-page .wd-balance-tip{font-size:12px;opacity:.92;margin-top:8px;line-height:1.4}
.wd-pending-banner{background:rgba(245,158,11,.18);border:1px solid rgba(245,158,11,.45);color:#92400e;border-radius:12px;padding:12px 14px;font-size:13px;line-height:1.5;margin-bottom:14px;font-weight:600}
.shell-themed .wd-pending-banner{background:rgba(245,158,11,.22);border-color:rgba(255,210,120,.45);color:#ffe8a3}
.wd-amount-row{display:flex;gap:10px;align-items:center}
.wd-amount-row input{flex:1}
.wd-all-btn{flex-shrink:0;padding:10px 14px;border:1px solid var(--border);border-radius:10px;background:var(--card);color:var(--pri);font-size:14px;cursor:pointer}
.wd-channels{display:flex;flex-direction:column;gap:10px;margin-bottom:16px}
.wd-channel-item{display:flex;align-items:center;gap:12px;padding:14px;border:2px solid var(--border);border-radius:14px;background:var(--card);cursor:pointer;position:relative}
.wd-channel-item.active{border-color:var(--pri);background:rgba(59,130,246,.06)}
.wd-channel-item.disabled{opacity:.55;cursor:not-allowed}
.wd-channel-icon{width:44px;height:44px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:18px;font-weight:700;color:#fff;flex-shrink:0}
.wd-channel-icon.wx{background:#07c160}
.wd-channel-icon.ali{background:#1677ff}
.wd-channel-body{flex:1;min-width:0}
.wd-channel-name{font-size:15px;font-weight:600}
.wd-channel-tip{font-size:12px;color:var(--muted);margin-top:4px}
.wd-check{color:var(--pri);font-size:18px;font-weight:700}
.wd-tip{font-size:13px;color:var(--warn,#e6a23c);margin:-8px 0 12px;line-height:1.5}
.wd-tip-link{cursor:pointer}
.wd-tip-link:active{opacity:.7}
.wd-tip-em{text-decoration:underline;font-weight:600}
.me-withdraw-submit{margin-top:8px}
.me-section-title{font-size:14px;color:var(--muted);padding:8px 16px 10px;font-weight:600}
.me-func-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;padding:0 12px 16px}
.me-func-grid-3{grid-template-columns:repeat(3,1fr)}
.me-balance-single .me-balance-item{padding:20px 8px}
.me-func-item{display:flex;flex-direction:column;align-items:center;gap:8px;font-size:12px;color:var(--text);cursor:pointer;padding:8px 4px}
.me-func-item:active{opacity:.7}
.me-func-icon{width:48px;height:48px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:24px;background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.06);overflow:hidden}
.me-func-icon.has-img{padding:8px}
.me-func-icon img{width:100%;height:100%;object-fit:contain;display:block}
.me-menu{margin:0 12px 16px;border-radius:12px;overflow:hidden}
.me-menu .list-item{padding:14px 16px}
.me-menu-icon{font-size:20px;margin-right:4px;width:28px;height:28px;text-align:center;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}
.me-menu-icon.has-img{font-size:0}
.me-menu-icon img{width:22px;height:22px;object-fit:contain;display:block}
.img-upload{border:2px dashed var(--border);border-radius:12px;min-height:120px;display:flex;align-items:center;justify-content:center;cursor:pointer;background:#fff;overflow:hidden;position:relative;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.img-upload-ph{color:var(--muted);font-size:14px;padding:20px;text-align:center;pointer-events:none;position:relative;z-index:1}
.img-upload-preview{width:100%;max-height:180px;object-fit:contain;display:block;pointer-events:none;position:relative;z-index:1}
.me-tip-ok{background:#ecfdf5;color:#16a34a;padding:10px 14px;border-radius:10px;font-size:14px;margin-bottom:14px;text-align:center;font-weight:600}
.record-status{display:inline-block;margin-left:6px;padding:2px 8px;border-radius:10px;font-size:11px;font-weight:600;vertical-align:middle}
.record-status.ok{background:#ecfdf5;color:#16a34a}
.record-status.pending{background:#fef3c7;color:#d97706}
.record-status.fail{background:#fee2e2;color:#dc2626}
.btn:disabled{opacity:.6;cursor:not-allowed}
