/* 易购商城 · 添加到桌面引导样式 */
body.mp-locked { overflow: hidden !important; }

.mp-fab {
  position: fixed;
  left: 14px;
  bottom: calc(88px + env(safe-area-inset-bottom));
  z-index: 2147483400;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 15px 0 12px;
  border: 0;
  border-radius: 999px;
  background: #8f1d24;
  color: #fff;
  font: 700 13px/1 system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  box-shadow: 0 10px 26px rgba(143, 29, 36, .38);
  cursor: pointer;
}
.mp-fab:active { transform: scale(.97); }

.mp-guide {
  position: fixed;
  inset: 0;
  z-index: 2147483600;
  font: 15px/1.5 system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #1d2b26;
  -webkit-tap-highlight-color: transparent;
}
.mp-mask { position: absolute; inset: 0; background: rgba(8, 10, 12, .72); }
.mp-guide--spot .mp-mask { display: none; }

.mp-panel {
  position: absolute;
  left: 12px;
  right: 12px;
  max-width: 520px;
  margin: 0 auto;
  max-height: calc(100% - 28px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  border-radius: 20px;
  padding: 17px 18px 15px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
  animation: mpRise .22s ease-out;
}
@keyframes mpRise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.mp-guide[data-panel="bottom"] .mp-panel { bottom: calc(env(safe-area-inset-bottom) + 14px); }
.mp-guide[data-panel="top"] .mp-panel { top: calc(env(safe-area-inset-top) + 14px); }

.mp-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fdecec;
  color: #8f1d24;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .01em;
}
.mp-panel h2 { margin: 10px 0 6px; font-size: 19px; line-height: 1.35; font-weight: 800; }
.mp-panel p { margin: 0; font-size: 14px; line-height: 1.65; color: #56665f; }
.mp-panel .mp-note { margin-top: 8px; font-size: 13px; color: #8a9791; }

.mp-check { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.mp-check__row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8f5ef;
}
.mp-check__num {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #8f1d24;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 22px;
  text-align: center;
}
.mp-check__body b { display: block; font-size: 15px; line-height: 1.45; color: #1d2b26; }
.mp-check__body small { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.5; color: #6d7a74; }

.mp-actions { display: flex; gap: 10px; margin-top: 15px; }
.mp-btn {
  flex: 1;
  min-height: 46px;
  border: 0;
  border-radius: 12px;
  font: 700 15px/1 system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  cursor: pointer;
}
.mp-btn--ghost { background: #f0f2f1; color: #64736c; }
.mp-btn--primary { background: #8f1d24; color: #fff; }
.mp-btn:active { transform: scale(.98); }

.mp-arrow-anchor { position: absolute; width: 46px; height: 60px; pointer-events: none; }
.mp-arrow { display: block; width: 46px; height: 60px; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .4)); }
.mp-arrow svg { display: block; animation: mpBob 1.05s ease-in-out infinite alternate; }
@keyframes mpBob { from { transform: translateY(-5px); } to { transform: translateY(5px); } }

.mp-arrow-anchor--bottom-center { left: 50%; margin-left: -23px; bottom: calc(env(safe-area-inset-bottom) + 66px); }
.mp-arrow-anchor--top-right { right: 6px; top: calc(env(safe-area-inset-top) + 0px); }

.mp-spot {
  position: absolute;
  border-radius: 999px;
  box-shadow: 0 0 0 9999px rgba(8, 10, 12, .72), 0 0 0 3px rgba(255, 209, 92, .95);
  pointer-events: none;
}

.mp-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: 520px;
  margin: 0 auto;
  padding: 10px 10px calc(env(safe-area-inset-bottom) + 10px);
  background: #eef0ef;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -14px 40px rgba(0, 0, 0, .4);
  animation: mpRise .22s ease-out;
}
.mp-sheet__title { padding: 4px 8px 8px; font-size: 12px; color: #7c8881; }
.mp-sheet__row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 52px;
  margin-bottom: 8px;
  padding: 0 15px;
  border-radius: 12px;
  background: #fff;
  font-size: 15px;
  color: #24312c;
}
.mp-sheet__row.is-target { background: #fffaeb; box-shadow: inset 0 0 0 2px #ffce55; }
.mp-sheet__ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: #f1f3f2;
  font-size: 13px;
}
.mp-sheet__row .mp-arrow { position: absolute; left: 50%; top: -56px; margin-left: -23px; }
.mp-sheet__cancel {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  margin-top: 6px;
  border-radius: 12px;
  background: #fff;
  color: #2f6fd0;
  font-weight: 700;
}

.mp-modal {
  position: absolute;
  left: 22px;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  max-width: 380px;
  margin: 0 auto;
  padding: 20px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(0, 0, 0, .5);
}
.mp-modal__app { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.mp-modal__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #8f1d24;
  color: #fff;
  font-weight: 800;
}
.mp-modal__q { margin: 14px 0 18px; font-size: 14px; color: #4a5a53; }
.mp-modal__btns { display: flex; gap: 10px; }
.mp-modal__btn {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 11px;
  background: #f0f2f1;
  color: #5b6a63;
  font-weight: 700;
}
.mp-modal__btn.is-primary { background: #8f1d24; color: #fff; }
.mp-modal__btn .mp-arrow { position: absolute; left: 50%; bottom: 44px; margin-left: -23px; }

.mp-toast {
  position: fixed;
  left: 50%;
  top: calc(env(safe-area-inset-top) + 16px);
  z-index: 2147483700;
  transform: translateX(-50%);
  max-width: 88vw;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(29, 43, 38, .94);
  color: #fff;
  font: 600 13px/1.4 system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .28);
}

@media (prefers-reduced-motion: reduce) {
  .mp-arrow svg, .mp-panel, .mp-sheet { animation: none !important; }
}

/* 从桌面图标打开时（无地址栏），顶部内容要让开状态栏，否则右上角关闭按钮点不到 */
html.mp-standalone section.support-widget > header {
  padding-top: calc(8px + env(safe-area-inset-top, 0px)) !important;
  min-height: 62px !important;
  box-sizing: border-box !important;
}
html.mp-standalone section.support-widget > header .support-widget-actions button,
html.mp-standalone section.support-widget > header button {
  margin-top: 0 !important;
}


.mp-modal--sheet {
  top: calc(env(safe-area-inset-top) + 8px);
  transform: none;
  padding: 0 0 16px;
  overflow: visible;
}
.mp-modal__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid #eceeed;
  font-size: 15px;
}
.mp-modal__bar b { font-size: 15px; }
.mp-modal__cancel { color: #2f6fd0; }
.mp-modal__add { position: relative; color: #2f6fd0; font-weight: 700; }
.mp-modal__add .mp-arrow { position: absolute; right: 6px; top: 26px; }
.mp-modal__field { display: flex; align-items: center; gap: 12px; padding: 16px 14px 2px; }
.mp-modal__meta b { display: block; font-size: 14px; }
.mp-modal__meta small { color: #8b968f; font-size: 12px; }

.mp-guide--spot { pointer-events: none; }
.mp-guide--spot .mp-panel { pointer-events: auto; }

.mp-arrow-anchor--bottom-right { right: 10px; bottom: calc(env(safe-area-inset-bottom) + 0px); }
