:root{
  --text:#1c1c1e;
  --text-muted:#8e8e93;
  --panel-bg:#f2f2f7;
}
html[data-theme="dark"]{
  --text:#f5f5f7;
  --text-muted:rgba(235,235,245,.6);
  --panel-bg:#1c1c1e;
}
*{box-sizing:border-box}
body.download-body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;color:var(--text);background:#fff;-webkit-tap-highlight-color:transparent}
/* 对齐全站原生顶栏 wb-native-topbar */
:root{--wb-native-topbar-h:44px;--wb-topbar-bg:#ffffff;--wb-app-text:#172033;--wb-app-shell-max:540px}
html[data-theme="dark"],html.theme-dark{--wb-topbar-bg:#0d1020;--wb-app-text:#e8edf7}
.wb-statusbar{height:env(safe-area-inset-top,0px);background:var(--wb-topbar-bg,#fff)}
body.download-body{padding-top:calc(env(safe-area-inset-top,0px) + var(--wb-native-topbar-h,44px))!important;box-sizing:border-box}
.wb-native-topbar,#wbNativeTopbar.wb-native-topbar{
  position:fixed;top:env(safe-area-inset-top,0px);left:50%;z-index:100020;width:100%;max-width:var(--wb-app-shell-max);
  transform:translateX(-50%);height:var(--wb-native-topbar-h,44px);margin:0;
  padding-left:calc(4px + env(safe-area-inset-left,0px));padding-right:calc(4px + env(safe-area-inset-right,0px));
  display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:6px;box-sizing:border-box;
  background:var(--wb-topbar-bg,#fff);border-bottom:none
}
.wb-native-topbar__back,.wb-native-topbar__actions a{
  width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;
  color:var(--wb-app-text,#172033)!important;text-decoration:none!important;background:transparent;border:0
}
.wb-native-topbar__back svg,.wb-native-topbar__actions a svg{width:22px;height:22px;display:block}
.wb-native-topbar__title{
  min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center;
  color:var(--wb-app-text,#172033);font-size:16px;font-weight:900
}
.wb-native-topbar__actions{display:flex;align-items:center;justify-content:flex-end;min-width:0}
/* 兼容旧类名（若残留） */
.wb-dl-nav{display:none!important}
.dl-layout[hidden]{display:none!important}
.app-toast-wrap{position:fixed;left:50%;bottom:calc(24px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);z-index:200;pointer-events:none}
.app-toast{opacity:0;transform:translateY(8px);transition:.2s ease;padding:10px 14px;border-radius:12px;background:rgba(28,28,30,.92);color:#fff;font-size:13px;max-width:80vw;text-align:center}
.app-toast.is-show{opacity:1;transform:translateY(0)}
