﻿body {
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-size: 100% 100%;
    background-attachment: fixed;
}

.box {
    width: 90%;
    margin: 0 auto;
    margin-top: 30px;

    flex: 1; /* 关键：占据剩余空间 */
    display: flex;
    flex-direction: column;
}

h1 {
    font-size: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.intro {
    /*padding: 0px 10px;*/
    border-radius: 10px;
    margin-bottom: 20px;
    text-align:left
}
.intro p{
    margin:0;
}
    .intro img {
        width: 100%;
    }

.text-center {
    text-align: center;
}

.headimg {
    width: 30px;
    height: 30px;
    border-radius: 15px;
    position: absolute;
    right: 10px;
}

.infolist {
    width: 100%;
    font-size: 13px;
    margin-bottom: 20px;
}

.list-desc-project {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: auto;
    border-bottom: 1px solid #dedede;
    padding: 8px 0px;
    position: relative;
}

.namelist {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

    .namelist .namebox {
        box-sizing: border-box;
        background: rgba(0, 0, 0, 0.03);
        border: transparent 2px solid;
        border-radius: 4px;
        margin: 0 10px 10px 0;
        /*width: calc(20% - 10px);*/
        cursor: pointer
    }

        .namelist .namebox .name {
            padding: 8px 6px;
            font-size: 14px;
            line-height: 20px;
            color: var(--text-color-secondary);
            word-break: break-all;
            text-align: center;
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            line-clamp: 3;
            -webkit-box-orient: vertical;
        }

            .namelist .namebox .name.active {
                border: 1px solid #07C160;
                position: relative;
            }

                .namelist .namebox .name.active::after {
                    content: '';
                    position: absolute;
                    top: 0;
                    right: 0;
                    width: 0;
                    height: 0;
                    border-style: solid;
                    border-width: 0 18px 18px 0;
                    border-color: transparent #2ecc71 transparent transparent;
                }

                .namelist .namebox .name.active::before {
                    content: '✓';
                    position: absolute;
                    top: -4px;
                    right: 1px;
                    color: white;
                    font-size: 8px;
                    font-weight: bold;
                    z-index: 2;
                }

form input,
form select,
form textarea {
    background: #fff;
    width: 100%;
    margin: 0;
    border: 1px solid #cfd1d8;
    box-shadow: 0 12px 30px -15px rgb(0 0 0 / 20%);
    padding-left: 15px;
    outline: none;
    font-size: 16px;
    border-radius: 32px;
    box-sizing: border-box;
}

form input {
    padding: 8px 10px;
}

form select {
    padding: 7.6px 10px;
}

.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        text-align: left;
        padding-left: 10px;
    }

/* 重置复选框组样式 */
.checkbox-group, .radio-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
    padding-left: 10px;
    padding-top: 10px;
}

/* 确保每个复选框和标签正确对齐 */
.checkbox-item, .radio-item {
    display: flex;
    align-items: center;
    /* 垂直居中对齐 */
}

    /* 修复默认复选框样式不一致的问题 */
    .checkbox-item input[type="checkbox"], .radio-item input[type="radio"] {
        margin: 0;
        /* 移除默认外边距 */
        width: 16px;
        /* 统一宽度 */
        height: 16px;
        /* 统一高度 */
    }

    /* 确保标签文本不会换行（可选） */
    .checkbox-item label, .radio-item label {
        white-space: nowrap;
        cursor: pointer;
        /* 鼠标悬停时显示手型指针 */
    }

.form-group .upcontainer {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
}
.upcontainer .upitem {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    position: relative;
}

.upcontainer img {
    vertical-align: middle;
    width: 25vw;
    height: 25vw;
}

.upcontainer .upImg-delete {
    text-decoration: none;
    background-color: #ffc617;
    background-image: -webkit-linear-gradient(to top, #ffc617, #F2994A);
    background-image: linear-gradient(to bottom, #ffc617, #F2994A);
    background-repeat: no-repeat;
    background-size: cover;
    box-shadow: 0px 3px 5px #ffc617;
    -ms-box-shadow: 0px 3px 5px #ffc617;
    -moz-box-shadow: 0px 3px 5px #ffc617;
    -webkit-box-shadow: 0px 3px 5px #ffc617;
    border: none;
    border-radius: 20px;
    color: #fff;
    cursor: pointer;
    position: absolute;
    right: 0;
    top: 0;
    text-align: center;
    line-height: 30px;
    width: 30px;
    height: 30px;
}

.searchResult {
    margin-top: 20px;
    text-align: center;
    flex: 1;
    /* font-size:20px;
    background: #fff;
    border-radius: 20px;
    padding: 30px 10px;
    min-height: 200px;
    max-width: 80%;
    margin: auto;
    margin-bottom: 50px;
    border: 2px solid #007ae1;
    box-shadow: 0 12px 30px -15px rgb(0 0 0 / 20%);
    height: 45vh;*/
}

    .searchResult table {
        margin: auto;
        margin-bottom: 20px;
       /* background: #fff;
        color: #333;*/
    }

    .searchResult img {
        max-width: 100%;
    }

.btn-float-rb {
    right: 0px;
    bottom: 10px;
    position: fixed;
    z-index: 999;
}

#btn-jielong {
    min-width: 120px;
}

#btn-start,
#btn-reset,
.btn-float-rb,
#btn-save {
    background: linear-gradient(to right, #b67d0c, #FFAA00);
    border: 2px solid #FFAA00;
    text-align: center;
    color: #fff;
    cursor: pointer;
    margin: auto;
    outline: none;
    font-size: 14px;
    padding: 10px 12px;
    min-width: 100px;
    border-radius: 40px;
}

    #btn-start.disabled,
    #btn-reset:disabled,
    .btn-float-rb:disabled {
        pointer-events: none;
    }

    #btn-start.disabled,
    #btn-reset:disabled,
    .btn-float-rb:disabled {
        opacity: .65;
    }

hr {
    border: 1px solid #dedede
}
 

.frm1 input,
.frm1 select,
.frm1 textarea,  
.frm1 .location-container,
.frm1 #myname {
    border: 2px solid #FFAA00;
}

.frm1 #btn-start,
.frm1 #btn-save,
.frm1 .btn-float-rb {
    background: linear-gradient(to right, #b67d0c, #FFAA00);
    border: 2px solid #FFAA00;
    color: #fff;
}


.frm2 input,
.frm2 select,
.frm2 textarea,  
.frm2 .location-container,
.frm2 #myname {
    border: 2px solid #e9a77b;
}

.frm2 #btn-start,
.frm2 #btn-save,
.frm2 .btn-float-rb {
    background: linear-gradient(to right, #f7b733, #fc4a1a);
    border: 1px double #f7b733;
    color: #fff;
}


.frm3 input,
.frm3 select,
.frm3 textarea, 
.frm3 .location-container,
.frm3 #myname {
    border: 2px solid #6dd5fa;
}

.frm3 #btn-start,
.frm3 #btn-save,
.frm3 .btn-float-rb {
    background: linear-gradient(to right, #2980b9, #6dd5fa);
    border: 2px solid #6dd5fa;
    color: #fff;
}


.frm4 input,
.frm4 select,
.frm4 textarea,  
.frm4 .location-container,
.frm4 #myname {
    border: 2px solid #2ecc71;
}

.frm4 #btn-start,
.frm4 #btn-save,
.frm4 .btn-float-rb {
    background: linear-gradient(to right, #2ecc71, #3498db);
    border: 2px solid #2ecc71;
    color: #fff;
}


.frm5 input,
.frm5 select,
.frm5 textarea, 
.frm5 .location-container,
.frm5 #myname {
    border: 2px solid #e84393;
}

.frm5 #btn-start,
.frm5 #btn-save,
.frm5 .btn-float-rb {
    background: linear-gradient(to right, #6c5ce7, #2c3e50);
    border: 2px solid #e84393;
    color: #fff;
}


.frm6 input,
.frm6 select, .frm6 .goods-selected,
.frm6 textarea .frm6 #myname {
    border: 2px solid #c0392b;
}

.frm6 #btn-start,
.frm6 #btn-save,
.frm6 .btn-float-rb {
    background: linear-gradient(to right, #8e44ad, #c0392b);
    border: 2px solid #c0392b;
    color: #fff;
}

 
.foot {
    width: 100%;
    text-align: center;
    font-size: 13px;
    position: relative;
}

.searchResult tr td {
    text-align: left;
}


table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 5px 5px 0 0;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

th,
td {
    padding: 10px;
    text-align: left;
    box-shadow: 0 0 1px rgba(0, 0, 0, 0.2);
}

table tr td:first-child {
    text-align: right;
}

/*签名*/
.signature-container {
    width: 100%;
    max-width: 800px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    position: relative
}

#signatureCanvas {
    display: block;
    background-color: #f9f9f9;
    cursor: crosshair;
    width: 100%;
    height: 150px;
}

#clearBtn {
    padding: 6px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background-color: #f44336;
    position: absolute;
    right: 0px;
    bottom: 0px;
}

/*遮罩层*/
.overlay, .overlay2, .overlay3 {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.4s ease-out;
    max-height: 70vh;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

    .overlay.active, .overlay2.active, .overlay3.active {
        transform: translateY(0);
    }

.backdrop, .backdrop2, .backdrop3 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

    .backdrop.active, .backdrop2.active, .backdrop3.active {
        opacity: 1;
        visibility: visible;
    }

/* ===== 打卡字段样式（小程序风格） ===== */

.checkin-field {
    margin-bottom: 20px;
}

    .checkin-field .checkin-label {
        padding-left: 10px;
        display: block;
        font-size: 14px;
        color: #333;
        margin-bottom: 4px;
    }

        .checkin-field .checkin-label .required {
            color: #ff4d4f;
        }

    /* 打卡容器 - 模拟小程序的 location-container */
    .checkin-field .location-container {
        background: #fff;
        border-radius: 32px;
        padding: 10px 15px;
        box-shadow: 0 12px 30px -15px rgba(0, 0, 0, 0.2);
        box-sizing: border-box;
        transition: border-color 0.3s ease;
        cursor: pointer;
    }
 
    /* 打卡显示区域 */
    .checkin-field .location-display {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 4px;
        min-height: 40px;
    }

    /* 定位成功状态 */
    .checkin-field .location-status {
        width: 100%;
    }

    .checkin-field .location-success {
        display: flex;
        align-items: center;
        gap: 6px;
        margin-bottom: 2px;
        font-size: 15px;
        color: #52c41a;
        font-weight: 500;
    }

    /* 地址显示 */
    .checkin-field .location-address-display {
        font-size: 15px;
        color: #333;
        font-weight: 500;
        margin: 2px 0;
        word-break: break-all;
    }

    /* 距离显示 */
    .checkin-field .location-distance {
        font-size: 14px;
        color: #52c41a;
        margin: 2px 0;
    }

    /* 占位文字 */
    .checkin-field .location-placeholder {
        color: #999;
        font-size: 15px;
        flex: 1;
    }

    /* 范围信息 */
    .checkin-field .location-range-info {
        display: flex;
        flex-direction: column;
        font-size: 12px;
        color: #999;
        margin-top: 4px;
        gap: 2px;
        width: 100%;
    }

        .checkin-field .location-range-info span {
            display: block;
        }

    /* 错误提示 */
    .checkin-field .location-error {
        color: #ff4d4f;
        font-size: 13px;
        padding: 8px 0;
        text-align: center;
        border-top: 1px solid #f0f0f0;
        margin-top: 5px;
        line-height: 1.8;
    }

    /* 加载状态 */
    .checkin-field .location-loading {
        color: #ffa500;
        font-size: 14px;
        padding: 5px 0;
        text-align: center;
    }

    /* 标签样式 - 与小程序一致 */
    .checkin-field label {
        padding-left: 10px;
        display: block;
        font-size: 14px;
        color: #333;
        margin-bottom: 4px;
        font-weight: normal;
    }
     


/* 预览中的商品样式 */
.goods-field .goods-list-display {
    display: flex;
    flex-direction: column;
}

.goods-field .goods-item-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 8px;
    background: #fff;
    border-radius: 4px;
    border: 1px solid #e8e8e8;
}

    .goods-field .goods-item-display .goods-qty {
        color: #666;
    }

 

    .goods-field .goods-item-display .goods-name {
        font-weight: 500;
        min-width: 80px;
    }

    .goods-field .goods-item-display .goods-qty {
        color: #999;
        font-size: 13px;
        min-width: 60px;
    }

    .goods-field .goods-item-display .goods-select-wrap {
        display: flex;
        align-items: center;
       
    }

        .goods-field .goods-item-display .goods-select-wrap .goods-minus,
        .goods-field .goods-item-display .goods-select-wrap .goods-plus {
            width: 28px;
            height: 28px;
            border: 1px solid #d9d9d9;
            background: #fafafa;
           
            cursor: pointer;
            font-size: 16px;
            line-height: 26px;
            text-align: center;
            color: #333;
        }

            .goods-field .goods-item-display .goods-select-wrap .goods-minus:hover,
            .goods-field .goods-item-display .goods-select-wrap .goods-plus:hover {
                background: #e6f7ff;
                border-color: #40a9ff;
            }

        .goods-field .goods-item-display .goods-select-wrap .goods-selected {
            width: 40px;
            height: 28px;
            border: 1px solid #d9d9d9;
            border-radius: 0px;
            text-align: center;
            font-size: 14px;
 
        }

            .goods-field .goods-item-display .goods-select-wrap .goods-selected:focus {
                border-color: #40a9ff;
                outline: none;
            }

        .goods-field .goods-item-display .goods-select-wrap .goods-remain {
            color: #999;
            font-size: 12px;
            min-width: 55px;
        }

    .goods-field .goods-item-display.has-selected {
        border-color: #52c41a;
        background: #f6ffed;
    }