/* 佛山+ H5 基础样式：手机端用 rem（16px = 1rem），弹窗挂 #app */
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

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

html,
body {
  width: 100%;
  min-height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', sans-serif;
  background: #f6f1ec;
  color: #231815;
}

body {
  padding-bottom: env(safe-area-inset-bottom);
}

#app {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
}

button,
.btn {
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible {
  outline: 0.1875rem solid rgba(36, 107, 254, 0.28);
  outline-offset: 0.125rem;
}

input:focus,
input:focus-visible {
  outline: none;
}

button:active,
.btn:active {
  filter: brightness(0.96);
  transform: none;
}

.fs-toast {
  position: fixed;
  left: 50%;
  bottom: calc(1.35rem + env(safe-area-inset-bottom));
  z-index: 100000;
  max-width: 80%;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: rgba(35, 24, 21, 0.88);
  color: #fff;
  font-size: 0.875rem;
  line-height: 1.4;
  text-align: center;
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.fs-toast.is-show {
  opacity: 1;
}

/* 确认框 / mask：必须挂在 #app，不要放进带 transform 的 .page */
.fs-mask {
  position: fixed;
  inset: 0;
  z-index: 99990;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
}

.fs-mask::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(35, 24, 21, 0.55);
  pointer-events: none;
}

.fs-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 20rem;
  padding: 1.5rem 1.25rem 1.25rem;
  border-radius: 1rem;
  background: #fff;
}

.asset-map {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

/* 页内「打开佛山+」：可见按钮不绑 click，安卓用开放标签盖热区 */
.open-app-btn {
  position: relative;
}
.open-app-btn > .btn {
  pointer-events: none;
}
.open-app-hit {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}
wx-open-launch-app.open-app-hit {
  display: block;
}
