/* 全局基础样式 */
* {
    box-sizing: border-box !important;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
}

/* 表单容器样式 */
.emapm-form {
    padding: 12px;
    max-width: 100%;
    margin: 0 auto;
}

/* 卡片式分组样式 - 移除多余分割线 */
.mint-cell-group {
    margin-bottom: 12px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.mint-cell-group:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* 分组标题样式优化 - 添加蓝色竖线装饰 */
.mint-cell-group-title {
    position: relative;
    padding: 12px 16px 10px 20px !important;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a !important;
    background: #fff;
}

.mint-cell-group-title::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 16px;
    background: #3b82f6;
    border-radius: 2px;
}

/* 单元格样式优化 - 移除多余分割线 */
.mint-cell {
    padding: 0;
    background: #fff;
    position: relative;
}

.mint-cell-wrapper {
    display: flex;
    align-items: center;
    min-height: 46px;
    border-bottom: 1px solid #f1f5f9 !important;
    border-top: 1px solid #f1f5f9 !important;
}

.mt-bColor-grey-lv5{
    border-color:#fff !important;
}

/* 最后一个单元格移除分割线 */
.mint-cell:last-child .mint-cell-wrapper {
    border-bottom: none !important;
}

/* 只有分组内的单元格才有分割线 */
.mint-cell-group .mint-cell:not(:last-child) .mint-cell-wrapper {
    border-bottom: 1px solid #f1f5f9;
}

.mint-cell-title {
    font-size: 14px;
    color: #334155;
    font-weight: 500;
}

.mint-cell-value {
    font-size: 14px;
    color: #64748b;
}

/* 必填标记样式 */
.mint-cell-require {
    color: #ef4444;
    margin-right: 2px;
}

/* 输入框样式 */
.mint-field-core {
    width: 100%;
    border: none;
    outline: none;
    font-size: 14px;
    color: #0f172a;
    background: transparent;
    padding: 0;
    line-height: 1.4;
}

.mint-field-core::placeholder {
    color: #94a3b8;
}

/* 文本域样式 */
.mint-textarea {
    padding: 11px 16px;
}

.mint-textarea-core {
    width: 100%;
    border: none;
    outline: none;
    font-size: 14px;
    color: #0f172a;
    line-height: 1.6;
    resize: vertical;
    background: transparent;
}

.mint-textarea-count {
    font-size: 12px;
    color: #94a3b8;
    text-align: right;
    padding: 6px 16px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
}

/* 选择器样式 */
.mint-cell.is-link .mint-cell-value {
    color: #0f172a;
    position: relative;
    padding-right: 20px;
}

.mint-cell-icon {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #cbd5e1;
    font-size: 16px;
}

/* 按钮样式 */
.mint-button {
    border: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.mint-button--large {
    width: 100%;
    margin: 8px 0;
}

.mt-btn-primary:active {
    opacity: 0.9;
    transform: scale(0.98);
}

.mt-btn-default {
    background: #f1f5f9;
    color: #334155;
}

.mt-btn-default:active {
    background: #e2e8f0;
}

.multiBtnDiv .multiDelBtn{
    font-size: 15px;
    color: #FFFFFF !important;
}

.multiBtnDiv button:last-child{
    margin-right: 80px;
}

.bh-color-primary{
    color:#165DFF !important;
}

/* 附件上传样式 */
.__em-attachment-list .mint-cell-value {
    display: flex;
    align-items: center;
}

.icon-tianjia {
    display: inline-block;
    width: 44px;
    height: 44px;
    border: 1px dashed #cbd5e1;
    border-radius: 6px;
    text-align: center;
    line-height: 44px;
    color: #94a3b8;
    font-size: 20px;
    transition: all 0.3s ease;
}

.icon-tianjia:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}

/* 选择器弹窗样式优化 - 修复层级问题 */
.selector-pick-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

/* 搜索栏样式优化 - 固定定位 */
.mint-search {
    background: #fff;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    position: relative;
}

.mint-searchbar {
    background: #fff;
    padding: 0px 16px;
    border-bottom: 1px solid #f1f5f9;
    height: 44px;
    box-sizing: border-box !important;
    display: flex;
    align-items: center;
    gap: 12px;
}

.mint-searchbar-inner {
    background: #f8fafc;
    border-radius: 20px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    height: 36px;
    border: 1px solid #e2e8f0;
    flex: 1;
}

.mint-searchbar-core {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    margin-left: 8px;
    color: #0f172a;
}

.mint-searchbar-core::placeholder {
    color: #94a3b8;
}

/* 搜索按钮样式 */
.mint-searchbar .mint-button {
    height: 32px;
    padding: 0 12px;
    font-size: 13px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* 内容区域样式 - 可滚动 */
.mint-box-group {
    background: #fff;
    border-radius: 0 0 12px 12px;
    flex: 1;
    overflow-y: auto;
    position: relative;
    z-index: 1001;
    padding-bottom: env(safe-area-inset-bottom);
}

/* 二级页面列表项样式 */
.mint-cell-group-content .mint-cell {
    padding: 0 !important;
}

.mint-cell-group-content .mint-cell:last-child {
    border-bottom: none;
}

/* 二级页面特殊样式 */
.mint-popup-bottom {
    width: 100%;
    max-height: 80vh;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* 操作按钮区域 - 固定在底部 */
.mint-popup-bottom .mint-actionsheet-button {
    position: sticky;
    bottom: 0;
    background: #fff;
    border-top: 1px solid #f1f5f9;
    z-index: 1003;
    padding: 12px 16px;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
}

/* 列表容器样式 */
.mint-popup-bottom .mint-cell-group {
    margin: 0;
    box-shadow: none;
    border-radius: 0;
    flex: 1;
    overflow-y: auto;
}

/* 多选组件底部确认框 */
.mint-selected-footer{
    z-index: 1001 !important;
}

/* 上传按钮样式 */
.__em-attachment-list .icon-tianjia{
    color:#1989fa !important;
}

.__em-file-info{
    float: right;
    margin-right: 10px;
}

.__em-file-info .__em-file-info_name{
    width: 250px;
}

.__em-file-info .__em-file-info_size a{
    color:#1989fa !important;
}

._em_upload_attachment_bt{
    color:#1989fa !important;
}

/* 响应式设计优化 */
@media screen and (max-width: 375px) {
    .emapm-form {
        padding: 8px;
    }
    
    .mint-cell-wrapper {
        padding: 10px 12px !important;
    }
    
    .mint-cell-title {
        flex: 0 0 80px;
        font-size: 13px;
    }
    
    .mint-cell-value {
        font-size: 13px;
    }
    
    .mint-cell-group-title {
        padding: 10px 12px 6px 18px;
        font-size: 14px;
    }
    
    .mint-cell-group-title::before {
        left: 10px;
        width: 2px;
        height: 14px;
    }

    /* 移动端二级页面优化 */
    .mint-searchbar {
        padding: 8px 12px;
        height: 52px;
    }
    
    .mint-searchbar-inner {
        height: 32px;
        padding: 6px 12px;
    }
    
    .mint-cell-group-content .mint-cell-wrapper {
        padding: 10px 12px !important;
    }
}

@media screen and (min-width: 768px) {
    .emapm-form {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .mint-popup-bottom {
        max-width: 500px;
        margin: 0 auto;
        border-radius: 12px;
        max-height: 70vh;
    }
}

/* 动画效果 */
.mint-cell-group {
    animation: fadeInUp 0.2s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

/* 交互反馈 */
.mint-cell:active {
    background-color: #f8fafc;
    transition: background-color 0.15s ease;
}

.mint-cell-group-content .mint-cell:active {
    background-color: #f8fafc;
}

/* 图标样式优化 */
.iconfont {
    font-family: "iconfont" !important;
    font-size: 14px;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 表单验证状态 */
.mint-cell.error .mint-cell-wrapper {
    border-left: 2px solid #ef4444;
}

.mint-cell.success .mint-cell-wrapper {
    border-left: 2px solid #10b981;
}

/* 滚动条样式 */
::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* 导航菜单样式优化 */
.flowTopMenus{
    background-color: #F7F8FA !important;
    height: 44px;
}

.flowTopMenus .mint-layout-lr-item{
    height: 100% !important;
    align-self: start;
}

.flowTopMenus .left-navtab .left-navtab-item .mint-tab-item-label{
    line-height: 18px !important;
    font-size: 18px !important;
    color:#666 !important;
}

.mint-navbar {
    background: #F5F7FA;
    border-bottom: 1px solid #f1f5f9;
    /* box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); */
    position: relative;
    z-index: 100;
}

.mint-navbar.left-navtab {
    display: flex;
    align-items: start;
    height: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.mint-tab-item {
    flex: 1;
    min-width: auto !important;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.mint-tab-item.left-navtab-item {
    border-radius: 4px;
    margin: 0 2px;
    height: 100%;
}

.mint-tab-item-label {
    transition: all 0.3s ease;
    position: relative;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    padding: 0 2px;
}

/* 选中状态样式 */
.mint-tab-item.is-selected {
    /* background: rgba(59, 130, 246, 0.1); */
    background:#E8F3FF;
    color:#2C5282 !important;
}

.mint-tab-item:not(.is-selected):active {
    background: rgba(0, 0, 0, 0.05);
    color:#2C5282 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* 数字标记样式 */
/* .totalSize {
    display: inline-block;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    border-radius: 8px;
    margin-left: 4px;
    padding: 0 4px;
    position: relative;
    top: -1px;
} */

/* 响应式适配 */
@media screen and (max-width: 375px) {
    .mint-navbar.left-navtab {
        height: 52px;
    }
    
    .mint-tab-item-label {
        font-size: 14px;
    }
    
    .mint-tab-item {
        padding: 0 8px;
    }
}

@media screen and (min-width: 768px) {
    .mint-navbar.left-navtab {
        height: 60px;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .mint-tab-item-label {
        font-size: 16px;
    }
}

/* 动画效果 */
.mint-tab-item {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 滚动条隐藏 */
.mint-navbar.left-navtab::-webkit-scrollbar {
    display: none;
}

.mint-navbar.left-navtab {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* 底部菜单样式优化 */
.mint-tabbar {
    background: #fff;
    border-top: 1px solid #f1f5f9;
    box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.05);
    height: 56px;
    display: flex;
    align-items: stretch;
}

.mint-tabbar > .mint-tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 4px 6px;
    color: #64748b !important;
    transition: all 0.3s ease;
    min-width: 0 !important;
    position: relative;
}

.mint-tabbar > .mint-tab-item:active {
    background-color: rgba(0, 0, 0, 0.05) !important;
}

.mint-tab-item-icon {
    font-size: 18px;
    margin-bottom: 2px;
    line-height: 1;
    flex-shrink: 0;
}

/* 底部菜单图标和文字的上下布局 */
.mint-tab-item {
    text-align: center;
}

.mint-tab-item .iconfont {
    font-size: 18px;
    display: block;
    margin-bottom: 1px;
}

/* 选中状态增强 */
.mint-tabbar > .mint-tab-item.is-selected .mint-tab-item-label {
    font-weight: 600;
}

/* emapflow下一步选择优化 */
.tg-select-value{
    padding-top: 0px !important;
}
.left{
    margin-bottom: 0px !important;

}

/* 部分产品表单左边距优化 */
.pjcssdogn .emapm-form .mint-cell-group-content, 
.pjd2uiuu3 .emapm-form .mint-cell-group-content, 
.pjpakpvj2 .emapm-form .mint-cell-group-content,
.pk2bgp1sn .emapm-form .mint-cell-group-content,
.pk2bj951i .emapm-form .mint-cell-group-content{
	padding-left: 0;
}

