html, body { margin: 0; height: 100%; overflow: hidden; background: #0b1220; font-family: "Microsoft YaHei", "PingFang SC", sans-serif; }
#mp-app {
  width: 100%; max-width: 430px; height: 100%; margin: 0 auto; position: relative;
  overflow: hidden; background: #f0f2f6; display: flex; flex-direction: column; transform: translateZ(0);
}
#mp-nav {
  flex: none; height: 44px; display: flex; align-items: center; justify-content: center;
  background: #0a1628; color: #fff; position: relative; z-index: 20;
}
#mp-nav[hidden] { display: none !important; }
#mp-title { font-size: 17px; font-weight: 600; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#mp-back { position: absolute; left: 4px; top: 0; height: 44px; padding: 0 12px; border: 0; background: transparent; color: inherit; font-size: 16px; }
#mp-back[hidden] { display: none !important; }
#mp-stage { flex: 1; min-height: 0; position: relative; overflow: hidden; }
.mp-host-page {
  position: absolute; left: 0; right: 0; top: 0; bottom: 0;
  overflow: auto; -webkit-overflow-scrolling: touch; box-sizing: border-box; background: #f0f2f6;
}
.mp-comp { display: contents; }
view { display: block; box-sizing: border-box; }
text { display: inline; }
[data-scroller] {
  display: block; box-sizing: border-box; min-height: 0;
  -webkit-overflow-scrolling: touch;
}
.mp-noscrollbar { scrollbar-width: none; -ms-overflow-style: none; }
.mp-noscrollbar::-webkit-scrollbar { width: 0; height: 0; display: none; }
.ai-dock { position: relative; z-index: 5; }
button { font-family: inherit; font-size: inherit; color: inherit; line-height: inherit; padding: 0; margin: 0; background: transparent; border: 0; text-align: inherit; }
button::after { border: none; }
img.mp-img { display: block; max-width: 100%; object-fit: cover; }
img.mp-img[data-mode="aspectFit"] { object-fit: contain; }
img.mp-img[data-mode="widthFix"] { width: 100%; height: auto; object-fit: fill; }
.mp-picker { position: relative; display: block; }
.mp-picker-ctl { position: absolute; left: 0; top: 0; width: 100%; height: 100%; opacity: 0; z-index: 2; border: 0; font-size: 16px; }
video.mp-camera { width: 100%; height: 100%; object-fit: cover; background: #000; }
.mp-webview { width: 100%; height: 100%; border: 0; background: #fff; }
#mp-overlay { position: absolute; left: 0; right: 0; top: 0; bottom: 0; pointer-events: none; z-index: 10000; }
#mp-overlay > * { pointer-events: auto; }
.mp-mask { position: absolute; left: 0; right: 0; top: 0; bottom: 0; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; }
.mp-dialog { width: 86%; max-width: 320px; background: #fff; border-radius: 12px; overflow: hidden; color: #111; }
.mp-dialog h3 { margin: 22px 20px 8px; font-size: 17px; text-align: center; font-weight: 600; }
.mp-dialog p { margin: 0 20px 16px; font-size: 15px; line-height: 1.5; text-align: center; color: #333; white-space: pre-wrap; }
.mp-dialog input { display: block; width: calc(100% - 40px); margin: 0 20px 16px; box-sizing: border-box; border: 1px solid #e5e7eb; border-radius: 8px; padding: 8px 10px; font-size: 15px; }
.mp-dialog-btns { display: flex; border-top: 1px solid #eee; }
.mp-dialog-btns button { flex: 1; height: 48px; font-size: 17px; background: #fff; }
.mp-dialog-btns button + button { border-left: 1px solid #eee; color: #576b95; }
.mp-toast { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); background: rgba(0,0,0,.78); color: #fff; border-radius: 8px; padding: 14px 16px; max-width: 70%; text-align: center; font-size: 14px; line-height: 1.4; }
.mp-loading { position: absolute; left: 0; right: 0; top: 0; bottom: 0; display: flex; align-items: center; justify-content: center; }
.mp-loading span { background: rgba(0,0,0,.78); color: #fff; border-radius: 8px; padding: 16px 18px; font-size: 14px; }
.mp-sheet { position: absolute; left: 0; right: 0; bottom: 0; background: #efefef; border-radius: 12px 12px 0 0; padding-bottom: env(safe-area-inset-bottom); }
.mp-sheet button { display: block; width: 100%; height: 52px; background: #fff; border-bottom: 1px solid #eee; font-size: 16px; }
.mp-sheet .mp-sheet-cancel { margin-top: 8px; border-bottom: 0; }
.mp-boot-err { padding: 24px 16px; color: #991b1b; font-size: 14px; white-space: pre-wrap; }
