* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
  color: #000;
  -webkit-tap-highlight-color: transparent;
}

.mp-nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 44px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: #fff;
  border-bottom: 1px solid #eee;
}

.mp-nav-back {
  border: none;
  background: none;
  font-size: 28px;
  line-height: 1;
  padding: 0 8px 0 0;
  cursor: pointer;
  color: #000;
}

.mp-nav-title {
  font-size: 17px;
  font-weight: 600;
}

.mp-page-root {
  padding-top: 44px;
  min-height: 100vh;
  max-width: 750px;
  margin: 0 auto;
}

#wx-ui-root {
  position: fixed;
  z-index: 10000;
  pointer-events: none;
}

#wx-ui-root .wx-toast,
#wx-ui-root .wx-modal-mask {
  pointer-events: auto;
}

.wx-toast {
  position: fixed;
  left: 50%;
  bottom: 80px;
  transform: translateX(-50%) translateY(20px);
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
}

.wx-toast--show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.wx-modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wx-modal {
  background: #fff;
  border-radius: 12px;
  width: min(320px, 86vw);
  padding: 20px;
}

.wx-modal-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.wx-modal-content {
  font-size: 14px;
  color: #333;
  margin-bottom: 16px;
  white-space: pre-wrap;
}

.wx-modal-input {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 16px;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
}

.wx-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.wx-modal-actions button {
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
}

.wx-modal-cancel {
  background: #f0f0f0;
}

.wx-modal-confirm {
  background: #07c160;
  color: #fff;
}

.wx-image-preview {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.wx-image-preview img {
  max-width: 96vw;
  max-height: 96vh;
  object-fit: contain;
}

.mp-picker {
  cursor: pointer;
}

div[scroll-y],
.scroll-y {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
