/* zhenjie-html 公共样式
 * 遵循 h5-pc-max-width 规则：PC 上页面与所有弹层锁定 480px 居中，手机 ≤480px 全宽。
 * 遮罩用 fixed + left: calc(50vw - 240px)（相对视口锁到 480 栏），或 absolute（相对页面）。
 */

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

html, body {
  width: 100%;
  height: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  color: #333;
  background: #FFF0DE;
  overscroll-behavior: none;
}

/* 页面根容器：PC 居中 480px */
.page {
  position: relative;
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  background: linear-gradient(180deg, #FFF0DE 0%, #ffffff 100%);
  overflow-x: hidden;
}

/* PC：body flex 居中，锁定 480 栏 */
@media screen and (min-width: 481px) {
  body {
    display: flex;
    justify-content: center;
    background: #2A221C;
  }
  .page {
    box-shadow: 0 0 48px rgba(0, 0, 0, 0.45);
  }
}

/* 遮罩层（弹窗）：fixed + 锁 480 栏，PC 上不铺满整屏 */
.mask {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  z-index: 999;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 30px;
}

/* 通用按钮 */
.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  border-radius: 24px;
  background: #EF773B;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
}
.btn-primary:active { opacity: 0.85; }
.btn-primary.disabled { opacity: 0.55; pointer-events: none; }

/* 通用输入框 */
.field-input {
  width: 100%;
  height: 48px;
  border: none;
  outline: none;
  background: #f6f3ef;
  border-radius: 24px;
  padding: 0 18px;
  font-size: 15px;
  color: #3d2b1f;
}
.field-input::placeholder { color: #d2b4a0; }

/* 安全区 */
.safe-bottom { padding-bottom: env(safe-area-inset-bottom); }

/* 隐藏滚动条但可滚 */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { scrollbar-width: none; }
