﻿html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

#app {
    max-width: 640px;
    margin: 0 auto;
    min-height: 100vh;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    font-family: Helvetica, Droidsansfallback, Droid Sans, Retina, arial, PingFangTC, "Microsoft JhengHei", Arial, sans-serif, "PingFangTC", "Microsoft JhengHei", Arial, sans-serif;
}

.bg {
    width: 100%;
    display: block;
}

.main_container {
    background: url(/Content/hand/bg.jpg);
    background-size: cover;
    min-height: 100vh;
    padding-bottom: 4.375rem;
    padding-top: 1px;
}

.upload_hand_container {
    height: auto;
    background: #E4D3B1;
    border-radius: 0.1875rem;
    border: 0.1875rem solid #C09B71;
    margin: 0.75rem;
    position: absolute;
    width: calc(100% - 1.5rem);
    margin-top: -42%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.0625rem;
}

.upload_hand_container_inner {
    width: calc(100% - 0.125rem);
    height: calc(100% - 0.125rem);
    border: 0.1875rem solid #C09B71;
    border-radius: 0.1875rem;
    box-sizing: border-box;
}


.please_upload {
    font-size: 1rem;
    color: #201011;
    line-height: 1.375rem;
    margin-top: 0.9375rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 0.625rem;
    font-size: 1.0625rem;
}

.hands_image {
    width: calc(100% - 2.5rem);
    margin: 0 1.25rem;
}

.hands_container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 三列布局 */
    gap: 0.625rem; /* 列间距为0.625rem */
    width: calc(100% - 1.25rem);
    margin: 0 0.625rem;
}

    .hands_container .hands_item {
        flex-shrink: 0;
    }

.hands_cover {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    object-fit: cover;
    display: block;
    border-radius: 0.25rem;
}

.hands_upload_btn {
    margin: 0 auto;
    width: 4rem;
    height: 1.75rem;
    background: #C51F2D;
    border-radius: 3.125rem 3.125rem 3.125rem 3.125rem;
    font-size: 0.875rem;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}


.hands_checked {
    display: flex;
    justify-content: center;
    margin: 0.5rem 0;
    align-items: center;
    font-size: 0.875rem;
}

    .hands_checked img {
        width: 1rem;
        height: 1rem;
        margin-right: 0.25rem;
    }

.hands_covered {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    object-fit: cover;
    box-sizing: border-box;
    border: 0.125rem solid #9C7B4E;
    border-radius: 0.25rem;
}

.hands_border {
    width: calc(100% - 1.25rem);
    margin: 0 0.625rem;
    height: 0.0625rem;
    background: #9C7B4E;
    transform: scaleY(0.5);
}


.hands_form_item {
    width: calc(100% - 1.25rem);
    margin: 0 0.625rem;
    display: flex;
    align-items: center;
    height: 2.5rem;
    font-size: 1rem;
    color: #201011;
    font-weight: bold;
    position: relative;
}

.hands_label {
    flex-shrink: 0;
}

.hands_check_container {
    display: flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    justify-content: flex-end;
    width: 100%;
    position: relative;
}

.hands_checked_item {
    margin-left: 1rem;
    display: flex;
    align-items: center;
    overflow-x: auto;
    scroll-snap-align: end;
}

.hands_checked_circle {
    width: 1rem;
    height: 1rem;
    background: #C09B71;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.25rem;
}

.hands_checked_circle_inner {
    width: 0.6875rem;
    height: 0.6875rem;
    background: #775A34;
    border-radius: 0.6875rem;
}


.hands_checked_item img {
    width: 0.375rem;
    height: 0.6875rem;
    margin-left: 0.5rem;
}

.hands_btn {
    width: 16.75rem;
    height: 3rem;
    margin-top: 0.9375rem;
    margin-left: calc(50% - 8.375rem);
    margin-bottom: 0.75rem;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(.9);
    }

    50% {
        transform: scale(1);
    }
}

.hands_banner {
    width: calc(100% - 1.25rem);
    margin: 0 0.625rem;
    margin-top: 10px;
    display: block;
}

.bg_container {
    background: url(/Content/hand/bg.jpg);
    background-size: cover;
}

.ex_hands {
    height: auto;
    border-radius: 0.75rem 0.75rem 0rem 0rem;
    width: 100%;
    position: absolute;
    transition: .3s;
    max-width: 640px;
}

.ex_title {
    font-size: 1.125rem;
    color: #201011;
    padding-top: 1.5rem;
    width: 100%;
    display: flex;
    justify-content: center;
    font-weight: bold;
}

.ex_close {
    position: absolute;
    right: 0.875rem;
    top: 0.875rem;
    width: 0.875rem;
    height: 0.875rem;
}

.ex_brief {
    font-size: 0.875rem;
    color: #C51F2D;
    line-height: 1.25rem;
    width: calc(100% - 1.5rem);
    margin: 0.75rem 0.75rem 0 0.75rem;
}

.ex_hands_list {
    width: calc(100% - 1.5rem);
    margin: 0.75rem 0.75rem 0 0.75rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 三列布局 */
    gap: 0.6875rem; /* 列间距为0.625rem */
}

.ex_hands_item {
    position: relative;
}

    .ex_hands_item img {
        width: 100%;
        display: block;
    }

.ex_hands_item_check {
    width: 1rem;
    height: 1rem;
    background: #FFFFFF;
    border-radius: 0.1875rem 0.1875rem 0.1875rem 0.1875rem;
    border: 0.0625rem solid #C09B71;
    box-sizing: border-box;
    position: absolute;
    left: 0.5rem;
    top: 0.5rem;
}

.ex_hands_item_checked {
    width: 1rem !important;
    height: 1rem;
    position: absolute;
    left: 0.5rem;
    top: 0.5rem;
    display: inline-block !important;
}

.ex_btn_container {
    display: flex;
    width: calc(100% - 1.5rem);
    margin: 1.375rem 0.75rem 0.75rem 0.75rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 三列布局 */
    gap: 0.625rem;
}

.ex_btn {
    height: 2.5rem;
    background: #EDEDEB;
    border-radius: 0.5rem 0.5rem 0.5rem 0.5rem;
    font-size: 1rem;
    color: #201011;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.save {
    background: #C51F2D;
    color: #fff;
}

.s-loading {
    position: absolute;
    background: rgba(255, 255, 255, 0.3) !important;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment_bg {
    min-height: 100vh;
}


.payment_price {
    color: #C51F2D;
    width: 100%;
    display: flex;
    justify-content: center;
    font-size: 1.25rem;
    margin-top: 0.6875rem;
    height: 2.5rem;
    align-items: flex-end;
    font-weight: bold;
    margin-bottom: 0.6875rem;
}

.payment_item {
    width: calc(100% - 1.25rem);
    margin: 0 0.625rem;
    height: 2.5rem;
    background: #FFFFFF;
    border-radius: 0.1875rem 0.1875rem 0.1875rem 0.1875rem;
    display: flex;
    align-items: center;
    position: relative;
}

    .payment_item img {
        height: 1.25rem;
        margin-left: 0.75rem;
    }

.payment_item_active {
    width: calc(100% - 1.25rem);
    margin: 0 0.625rem;
    height: 2.5rem;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    position: relative;
    background: #FFFFFF;
    border-radius: 0.1875rem 0.1875rem 0.1875rem 0.1875rem;
}

    .payment_item_active::after {
        position: absolute;
        content: '';
        width: calc(100% - 0.125rem);
        height: calc(100% - 0.125rem);
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        border: 0.125rem solid #C51F2D;
        border-radius: 0.1875rem 0.1875rem 0.1875rem 0.1875rem;
    }

    .payment_item_active img {
        height: 1.25rem;
        margin-left: 0.75rem;
    }

.unlock_btn {
    width: 16.75rem;
    height: 3rem;
    margin-top: 1.1875rem;
    margin-left: calc(50% - 8.375rem);
    margin-bottom: 0.875rem;
    animation: pulse 1.5s infinite;
}

.bingo {
    width: 0.75rem;
    height: 0.625rem;
    position: absolute;
    right: 0.625rem;
}

.message_box {
    width: calc(100% - 1.5rem);
    margin: 0 0.75rem 0 0.75rem;
    height: auto;
    background: #E5D5B5;
    border-radius: 0.25rem 0.25rem 0.25rem 0.25rem;
    padding: 1rem 0 0.75rem;
}

.message_title {
    font-size: 1rem;
    color: #201011;
    line-height: 1.5rem;
    text-align: center;
    font-weight: bold;
    padding: 0 10px;
}

.message_btn_container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 0.75rem;
}

    .message_btn_container img {
        width: 6.5625rem;
        height: 3.5rem;
    }

.save_pdf {
    height: 1.0625rem;
    font-weight: 400;
    font-size: 0.875rem;
    color: #21A3DC;
    line-height: 1.25rem;
    width: 100%;
    text-align: center;
    font-weight: bold;
    margin-top: 0.75rem;
    text-decoration: underline;
}


.result_container {
    width: calc(100% - 1.5rem);
    margin: 0 0.75rem;
    margin-top: 0.75rem;
    margin-bottom: 1.25rem;
}

    .result_container img {
        width: 100%;
        display: block;
    }

.result_main_body {
    width: 100%;
    height: auto;
    position: relative;
}

    .result_main_body img {
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
    }

    .result_main_body .article {
        position: relative;
        z-index: 1;
        padding: 1px 1.875rem;
        min-height: 12.5rem;
        font-size: 1.125rem;
        line-height: 1.6;
        color: #775A34;
    }

.my_order {
    position: absolute;
    z-index: 2;
    background: #C51F2D;
    box-shadow: 0rem 0rem 0.1875rem 0.0625rem rgba(84,9,9,0.62);
    border-radius: 0.25rem 0.25rem 0.25rem 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    color: #FFFFFF;
    right: 0.75rem;
    top: 9.5%;
    padding: 0.3125rem 0.5rem;
}


@media(min-width:640px) {
    .hands_checked_item::-webkit-scrollbar {
        height: 5px;
    }

        .hands_checked_item::-webkit-scrollbar::-webkit-scrollbar-track {
            background: rgba(0,0,0,0);
        }

    .hands_checked_item::-webkit-scrollbar-thumb {
        background: rgba(0,0,0,0.4); /* 滑块颜色 */
        border-radius: 5px;
    }
}
