:root{--bg:#F7F8FC;--card:#FFFFFF;--text:#1F2333;--muted:#8A8F9A;--border:#E6E9EF;--primary:#59C7F9;--accent:#8FD6FF;--accentDeep:#59C7F9}
html,body{height:100%}
html{background:var(--shell-page-bg,linear-gradient(180deg,#EAF7FF,#FFFFFF));background-attachment:fixed}
body.with-tabbar-v2{margin:0;background:transparent;color:var(--text);font-family:system-ui,-apple-system,"PingFang SC","Helvetica Neue",Arial}
.with-tabbar-v2 .app{max-width:480px;margin:0 auto;min-height:100%;padding-top:8px;padding-bottom:80px;background:transparent}
:root{--global-fixed-tabbar-height:52px;--global-fixed-tabbar-width:406px;--global-fixed-tabbar-top-gap:10px}
.topbar,.shell-header{width:100%;position:relative;z-index:30}
.topbar .nav-top-row,.shell-header .nav-top-row{display:flex;align-items:center;justify-content:space-between;gap:10px;position:fixed;top:calc(env(safe-area-inset-top) + var(--global-fixed-tabbar-top-gap));left:50%;transform:translateX(-50%);width:min(calc(100vw - 24px),var(--global-fixed-tabbar-width));padding:10px;border-radius:24px;background:rgba(255,255,255,0.86);border:1px solid rgba(255,255,255,0.92);box-shadow:0 14px 34px rgba(90,66,170,0.12);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);z-index:50}
.topbar .nav-tabs,.shell-header .nav-tabs{display:flex;align-items:center;gap:6px;min-width:0}
.topbar .nav-tab,.shell-header .nav-tab{display:inline-flex;align-items:center;gap:6px;padding:7px 10px;border-radius:999px;font-size:12px;font-weight:900;color:#5b5677;cursor:pointer;user-select:none;white-space:nowrap}
.topbar .nav-tab.is-active,.shell-header .nav-tab.is-active{color:#ffffff;background:linear-gradient(135deg,#a97bff 0%,#6f49ff 100%);box-shadow:0 10px 18px rgba(113,78,255,0.28)}
.topbar .nav-actions,.shell-header .nav-actions{display:flex;align-items:center;gap:8px;flex:0 0 auto}
.topbar .nav-checkin,.shell-header .nav-checkin{min-width:44px;height:30px;padding:0 10px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;background:rgba(159,128,255,0.14);border:1px solid rgba(159,128,255,0.2);box-shadow:0 6px 14px rgba(113,78,255,0.12);color:#6f49ff;font-size:12px;font-weight:900;line-height:1;cursor:pointer;user-select:none;white-space:nowrap}
.topbar .nav-icon,.shell-header .nav-icon{position:relative;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:rgba(159,128,255,0.12);border:1px solid rgba(159,128,255,0.18);color:#6f49ff;cursor:pointer;user-select:none}
.topbar .nav-icon svg,.shell-header .nav-icon svg{width:18px;height:18px;stroke:currentColor}
.topbar .nav-icon.has-dot::after,.shell-header .nav-icon.has-dot::after{content:"";position:absolute;top:4px;right:4px;width:6px;height:6px;border-radius:50%;background:#ff5d6c;box-shadow:0 0 0 3px rgba(255,93,108,0.14)}
.topbar .nav-avatar,.shell-header .nav-avatar{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;font-size:12px;font-weight:900;color:#ffffff;background:linear-gradient(135deg,#c59cff 0%,#7a5af5 100%);border:1px solid rgba(255,255,255,0.7);box-shadow:0 12px 22px rgba(122,90,245,0.22);cursor:pointer;user-select:none;background-size:cover;background-position:center center}
body:has(> .topbar + .page)>.topbar{display:none!important}
body:has(> .topbar + .page)>.page{padding-top:20px!important}
body:has(> .topbar + .page)>.page .header{top:0!important}
