/* 微信浏览器兼容性修复 */

/* 防止页面缩放导致白屏 */
html, body {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    touch-action: manipulation; /* 防止浏览器默认的双击缩放 */
}

/* 修复输入框在微信浏览器中的问题 */
input, textarea, select {
    /* font-size: 16px !important; 16px是iOS不会放大的最小字体大小 */
    max-height: none !important;
    -webkit-appearance: none; /* 移除iOS默认样式 */
    border-radius: 0; /* 移除iOS圆角 */
}

/* 修复表单元素在微信浏览器中的问题 */
.login_input, .adm_name, .adm_password, .adm_verify {
    -webkit-appearance: none; /* 移除iOS默认样式 */
    border-radius: 0; /* 移除iOS圆角 */
    /* font-size: 16px !important; */
}

/* 修复按钮在微信浏览器中的问题 */
.login_button {
    -webkit-appearance: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

/* 修复下拉框滚动问题 */
select {
    -webkit-overflow-scrolling: touch;
    overflow-y: auto !important;
}

/* 修复下拉框滚动问题 - 从purchase/index.css移动 */
.layui-form-select dl {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important; /* 启用iOS惯性滚动 */
}

/* 阻止触摸事件默认行为 */
.layui-form-select dl dd {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    touch-action: manipulation;
}

/* 修复弹出层在微信浏览器中的显示问题 */
.slider-captcha,
.layui-layer, .layui-layer-shade {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* 修复弹出层内容区域滚动问题 */
.layui-layer-content {
    -webkit-overflow-scrolling: touch;
    /*overflow-y: auto !important;*/
}