﻿/* jQuery WeUI 单选/复选样式重写 */
.weui-check__label.weui-check__label-radio .weui-icon-checked,
.weui-check__label.weui-check__label-checkbox .weui-icon-checked {
  border: 1px solid #CCCCCC !important;
  background: #FFFFFF !important;
  transition: all 0.2s ease-in-out;
}

/* 单选按钮选中状态 */
.weui-check__label-radio.vux-checked .weui-icon-checked {
  background: #FFA500 !important;
  border-color: #FFA500 !important;
}

.weui-check__label-radio.vux-checked .weui-icon-checked:before {
  color: #FFFFFF !important;
  transform: scale(0.8) rotate(-45deg);
}

/* 复选按钮选中状态 */
.weui-check__label-checkbox.vux-checked .weui-icon-checked {
  background: #FFA500 !important;
  border-color: #FFA500 !important;
}

.weui-check__label-checkbox.vux-checked .weui-icon-checked:before {
  color: #FFFFFF !important;
  opacity: 1 !important;
  left: 2px;
  top: -2px;
}

/* 勾选符号统一样式 */
.weui-icon-checked:before {
  content: "";
  position: absolute;
  width: 6px;
  height: 12px;
  border: 2px solid transparent;
  border-left: 0;
  border-top: 0;
  transform: rotate(45deg) scale(0.5);
  transition: all 0.2s ease-in-out;
}
﻿/* 覆盖WeUI默认radio和checkbox样式 */
.weui_check:checked + .weui_icon_checked:before {
    color: #4CAF50 !important;
}

.weui_check + .weui_icon_checked:before {
    color: #4CAF50 !important;
}

.weui_cell {
    display: flex !important;
    align-items: center;
    gap: 8px;
}
body, html {
    height: 100%;
    -webkit-tap-highlight-color: transparent;
}

.demos-title {
    text-align: center;
    font-size: 34px;
    color: #3cc51f;
    font-weight: 400;
    margin: 0 15%;
}

.demos-sub-title {
    text-align: center;
    color: #888;
    font-size: 14px;
}

.demos-header {
    padding: 35px 0;
}

.demos-content-padded {
    padding: 15px;
}

.demos-second-title {
    text-align: center;
    font-size: 24px;
    color: #3cc51f;
    font-weight: 400;
    margin: 0 15%;
}

footer {
    text-align: center;
    font-size: 14px;
    padding: 20px;
}

    footer a {
        color: #999;
        text-decoration: none;
    }

.per80 {
    width: 80%;
}

.btn-success-important {
    color: #fff !important;
    background-color: #5cb85c !important;
    border-color: #4cae4c !important;
}

.input-group-addon-icon {
    padding: 0px !important;
    background-color: #fff;
}

.emailist {
    background-color: #fff;
    border-radius: 5px;
    border: solid 1px #d5d5d5;
    z-index: 9999 !important;
}

.emailist li {
    display: block;
    padding: 3px;
    margin: 5px 2px;
    border-bottom: solid 1px #d5d5d5;
    color: black;
}
/* PageGuide组件样式更新 */
/* 页面导航组件最终样式 */
.page-step {
    margin: 2px 0;
    display: flex;
    align-items: center;
}
.page-circle {
    width: 22px;
    height: 22px;
    margin: 0 8px;
    line-height: 22px;
    text-align: center;
}
.step-text {
    font-family: 'Microsoft YaHei', SimSun;
    font-size: 14px;
    padding: 0 5px;
    white-space: nowrap;
}
       

.weui_cells_title-big {
    color: green !important;
    font-size: 18px !important;
}

.weui_text_area_border {
    border: 0.5px solid #999 !important;
    margin-left:20%;
    margin-right:20%;
}
.font-size-18{
    font-size:25px !important;
}

/* 对话框居中样式 */
html body .weui-dialog,
html body .custom-dialog {
    position: fixed ; /* 保留 fixed 定位基础 */
    top: 50% ; /* 恢复 top 定位 */
    left: 50% ; /* 恢复 left 定位 */
    transform: translate(-50%, -50%) !important; /* 恢复 transform 居中 */
    /* width: 40% !important; */ /* 移除固定宽度限制 */
    /* max-width: 150px !important; */ /* 移除最大宽度限制 */
    margin: 0 !important; /* 保留 margin 重置 */
    /* width: 300px; 假设弹窗宽度 */
    /* height: 200px; 假设弹窗高度 */
    /* margin-left: -150px; */ /* 移除，与 transform 冲突 */
    /* margin-top: -100px; */ /* 移除，与 transform 冲突 */


    z-index: 9999 !important; /* 保留层级 */
    background-color: white !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    transition: all 0.3s cubic-bezier(0.25, 0.5, 0.5, 1) !important;
    transform-origin: center center !important;
    -webkit-transform-style: preserve-3d !important;
    transform-style: preserve-3d !important;
}


.weui-mask + .weui-dialog {
    transform: translate(-50%, -50%) !important; /* 恢复 transform 居中 */
    will-change: transform, top, left; /* 保留性能提示 */
    top: 50% !important; /* 恢复 top 定位 */
    left: 50% !important; /* 恢复 left 定位 */
    /* right: auto !important; */
    /* bottom: auto !important; */
    /* 增加物理像素对齐 */
    /* backface-visibility: hidden !important;
    -webkit-backface-visibility: hidden !important; */
}

/* 对话框内容居中 */
.weui-dialog__hd {
    text-align: center !important;
    padding: 1.2em 20px 0.5em !important;
}

.weui-dialog__bd {
    text-align: center !important;
    padding: 0 20px 0.8em !important;
}

.weui-dialog__ft {
    display: flex !important;
    justify-content: center !important;
    padding: 0 20px 1em !important;
}

/* modal居中样式 - 使用高优先级选择器并恢复 transform */
html body .weui_dialog.modal-center { /* 提高选择器优先级 */
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important; /* 恢复 transform */
    margin: 0 !important; /* 确保 margin 不干扰 */
    width: auto !important; /* 允许内容决定宽度，避免固定宽度问题 */
    max-width: 90% !important; /* 限制最大宽度，防止过宽 */
    z-index: 9999 !important;
}

/* 注释掉之前的简单规则 */
/*
.modal-center {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    /* transform: translate(-50%, -50%) !important; * /
    z-index: 9999 !important;
}
*/

/* 验证码错误提示样式 */
.input-group.authcode-group {
    position: relative;
    margin-bottom: 25px;
}

#authcode {
    border: 1px solid #ccc !important;
    width: 100%;
    padding: 10px 15px;
}

#authcode-error {
    display: none;
    position: absolute;
    left: 15px;
    top: calc(100% + 5px);
    color: #ff4444;
    font-size: 12px;
    width: calc(100% - 30px);
    background: #fff;
    padding: 5px 10px;
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    z-index: 10;
}

.input-group.authcode-group.error #authcode-error {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.input-group.authcode-group.error {
    margin-bottom: 35px;
}
/* 通用表单验证错误样式 */
.weui_cell {
    margin-bottom: 25px; /* 增加下边距以容纳错误信息 */
    position: relative;
}

.field-validation-error {
    display: block;
    position: absolute;
    left: 0; /* 与输入框左对齐 */
    top: 100%; /* 定位在输入框下方 */
    color: #ff4444;
    font-size: 12px;
    margin-top: 5px; /* 增加上边距，使其在边框外 */
    padding: 0; /* 移除内边距，避免影响对齐 */
    width: 100%; /* 宽度占满父容器 */
    text-align: left;
    line-height: 1.4;
}

.input-validation-error {
    border-color: #ff4444 !important;
}

.input-validation-error:focus {
    border-color: #ff0000 !important;
    box-shadow: 0 0 3px rgba(255,68,68,0.3);
}

/* 强制覆盖 jquery-weui 弹出框确定按钮颜色 */
html body .weui-dialog .weui_btn_primary {
    color: #FFA500 !important; /* 设置字体颜色为橙黄色 */
}

