﻿body,
html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    /*font-size: 14px;*/
    font-size: calc(100vw /(270 / 10));
    height: 100%;
}

* {
    box-sizing: border-box;
}

main {
    height: 100%;
    width: 100%;
}

img {
    object-fit: scale-down;
    width: 100%;
}

.container {
    width: 100%;
    height: 100vh;
    overflow-y: auto;
    max-width: 500px;
    margin: 0 auto;
}

    .container .content-wrap {
        background-size: 100%;
        background-color: #FF2A60;
        background-image: url(../images/bg.png);
        background-repeat: no-repeat;
        color: #986643;
        display: flex;
        flex-direction: column;
        position: relative;
    }

    .head-title {
        width: 78%;
        margin: 11% auto 5%;
    }

.invitation-code-box,
.rule-box,
.income-box,
.extra-box {
    margin: 0 .7143rem;
    position: relative;
}

    .invitation-code-box .lett-box {
        position: absolute;
        top: 0;
        left: 50%;
        width: 83%;
        height: 100%;
        transform: translateX(-50%);
        display: flex;
        flex-direction: column;
    }

.lett-box .lett-logo {
    height: 34%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .lett-box .lett-logo img {
        height: 5rem;
        width: auto;
    }

.lett-box .lett-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    row-gap: 3rem;
}

    .lett-box .lett-text .title {
        color: #FE5A00;
        font-size: 1.95rem;
        font-weight: bold;
    }

.lett-box .lett-top {
    height: 50%;
    width: 100%;
    padding: .7143rem .7143rem 1.2857rem;
    display: flex;
    flex-direction: column;
}

.lett-top .logo {
    margin: 0 auto .5rem;
    height: 3.7rem;
    width: auto;
}

.lett-top .invite-box {
    display: flex;
    align-items: flex-start;
    column-gap: 0.5rem;
}

.lett-top .qrcode {
    flex: 0 40%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.shared-container {
    margin: 0.7143rem;
    position: relative;
}

.shared-wrap {
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: 2.6429rem;
    background-color: #fff;
    border-radius: .9286rem;
    padding: 2.5rem 1.5714rem 1.0714rem;
    width: 100%;
}

.shared-box {
    width: 100%;
    height: 100%;
    display: flex;
    overflow-x: auto;
    justify-content: space-around;
}

.shared-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 4rem;
}

    .shared-item div {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        height: 100%;
        color: inherit;
        padding: 0.5rem 0;
    }

    .shared-item img {
        width: 2.5rem;
        height: 2.5rem;
    }

    .shared-item span {
        margin-top: 0.35rem;
        font-size: .8rem;
        line-height: 0.8rem;
        text-align: center;
        word-wrap: break-word;
        display: inline-block;
        max-width: 4.15rem;
    }

#qrcode {
    padding: .7rem;
    border: 1px solid #E4E4E4;
    width: 6.2rem;
    height: 6.2rem;
}

    #qrcode > canvas {
        width: 100% !important;
        height: 100% !important;
    }

    #qrcode img {
        width: 100% !important;
        height: 100% !important;
    }

.lett-top .invitation-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: .65rem;
}

.invitation-text .tit {
    font-size: 0.85rem;
}

.invitation-text .invitation-code {
    font-size: 0.75rem;
    border: 1px solid #98664333;
    border-radius: 5px;
    background-color: #FFF8F3;
    padding: 5px;
    word-break: break-all;
    min-height: 3rem;
}

.invitation-text .copy-code {
    color: #FA2458;
    font-size: 0.85rem;
    cursor: pointer;
}

.lett-bot {
    flex: 0 0 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    row-gap: .7rem;
}

.copy-link {
    font-size: 1rem;
    color: #FA2458;
    cursor: pointer;
    margin-left: 1rem;
}

.rule-box {
    margin: .7143rem;
}

.content-title {
    width: 9.7857rem;
    height: 2.6429rem;
    line-height: 2.6429rem;
    position: absolute;
    left: 50%;
    transform: translateX(-4.8571rem);
    top: -1.1429rem;
    background-image: url(../images/title.png);
    background-repeat: no-repeat;
    background-size: contain;
    color: #fff;
    text-align: center;
    font-size: 1.1429rem;
}

.content-box {
    width: 100%;
    background-color: #fff;
    border-radius: .9286rem;
    margin-top: 2.6429rem;
    padding: 2.5rem 1.5714rem 1.0714rem;
}

    .content-box p {
        margin: 0;
        line-height: 1.7143rem;
        font-size: .9286rem;
    }

.details-box {
    display: flex;
    flex-direction: column;
    /*row-gap: .7143rem;*/
}

.datebox {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    .datebox .datebox-left {
        display: flex;
    }

    .datebox .dateinput {
        border: 1px solid #DCDFE6;
        padding: .3571rem .7143rem;
        border-radius: .3571rem;
    }

    .datebox .refresh {
        width: 3.7rem;
        border: 1px solid #FA2458;
        margin-left: 1.3rem;
        height: 2.285rem;
        flex: 0 0 auto;
        cursor: pointer;
        padding: 0;
    }

    .datebox .receivebtn {
        width: 6.5rem;
        margin-left: 1rem;
        border: 1px solid #FA2458;
        color: #FA2458;
        border-radius: 2.1429rem;
        height: 2.5rem;
        background: none;
        /*flex: 0 0 auto;*/
        cursor: pointer;
    }

.text-box {
    border: 1px solid #98664333;
    border-radius: .7143rem;
    padding: .8571rem;
    background-color: #FFF8F3;
    text-align: center;
    margin-top: .7143rem;
}

    .text-box span.last {
        margin-left: 1.0714rem;
    }

    .text-box span e {
        font-style: normal;
        margin-left: .2143rem;
        color: #FE5A00;
    }

    .text-box span i {
        font-style: normal;
        font-size: 1.2857rem;
        font-weight: bold;
    }

.return-box {
    margin: 10px 0;
}

.tips {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: .7143rem;
    margin-top: 0.1rem;
}

table {
    /*border: 1px solid #FA2458;*/
    border-collapse: collapse;
    width: 100%;
}

    table th,
    table td {
        padding: .3571rem;
        text-align: center;
        min-width: 2rem;
    }

    table th {
        background-color: #FA2458;
        font-weight: normal;
        color: #fff;
        font-size: .8571rem;
        border: 1px solid #FA2458;
    }

    table td {
        background-color: #FFF2F6;
        border: 1px solid #FA2458;
        font-size: .8571rem;
        font-weight: 700;
    }

        table td:nth-of-type(2n+1) {
            background-color: #FFF8F3;
        }

        table td:nth-of-type(2n) {
            color: #FA2458;
        }

        table td:nth-of-type(3) {
            color: #FE5A00;
        }

        table td a {
            cursor: pointer;
            text-decoration: underline;
        }

.popup-box {
    display: flex;
    column-gap: .2857rem;
    overflow: hidden;
}

.popup-left ul {
    display: flex;
    flex-direction: column;
    row-gap: .2857rem;
}

    .popup-left ul li {
        width: 5.7143rem;
        height: 2.8571rem;
        line-height: 2.8571rem;
        font-size: .8571rem;
        text-align: center;
        background: linear-gradient(94.96deg, #F1F4FF -0.86%, #BEDEFF 100%);
        border-radius: .2857rem;
        cursor: pointer;
    }

        .popup-left ul li.active {
            background: linear-gradient(94.96deg, #FD91AB -0.86%, #FB2458 100%);
            color: #fff;
        }

.income-box .records,
.income-box .subordinate-info {
    position: absolute;
    top: 0.5rem;
    text-decoration: underline;
    cursor: pointer;
}

.income-box .records {
    right: 1.7rem;
}

.income-box .subordinate-info {
    left: 1.7rem;
}

.popup-right {
    flex: 1;
    overflow-y: auto;
    height: 25rem;
}

    .popup-right table td {
        background-color: #FFF8F3;
        color: #FE5A00;
    }

        .popup-right table td:nth-of-type(2n+1) {
            background-color: #FFF2F6;
            color: #FA2458;
        }

.records-box {
    text-align: center;
    overflow: hidden;
}

    .records-box .title {
        font-size: 1.1rem;
    }

    .records-box .table-box {
        margin-top: .7rem;
        height: 16.5rem;
        overflow: auto;
    }

        .records-box .table-box table {
            width: max-content;
            min-width: 100%;
        }

            .records-box .table-box table th,
            .records-box .table-box table td {
                border: 1px solid #ee0a24;
            }

                .records-box .table-box table td .userid {
                    text-decoration: underline;
                    margin-right: 5px;
                    cursor: pointer;
                }

.extracontent-box {
    margin-top: .7143rem;
}

.extra-box .table-box {
    margin-top: .85rem;
}

.extra-box .extra-txt {
    display: flex;
    align-items: flex-end;
    color: #FF2A60;
}

    .extra-box .extra-txt .total {
        margin-left: 0.2rem;
    }

.extra-box table {
    margin-top: 0.45rem;
}

    .extra-box table td {
        background-color: #FFF8F3;
        color: #FE5A00;
    }

        .extra-box table td:nth-of-type(2n+1) {
            background-color: #FFF2F6;
            color: #FA2458;
        }

        .extra-box table td button {
            width: 5.5rem;
            border-radius: 3rem;
            border-width: 1px;
            border-style: solid;
            height: 1.4rem;
            line-height: 1;
            font-weight: 500;
            background-color: unset;
        }

            .extra-box table td button.yilingqu {
                color: #FE5A00;
                border-color: #FE5A00;
            }

            .extra-box table td button.lijilingqu {
                color: #FFF;
                border-color: #FA2458;
                background-color: #FA2458;
            }

            .extra-box table td button.weidabiao {
                color: #B3B3B3;
                border-color: #B3B3B3;
            }

.extra-box .datebox .records {
    text-decoration: underline;
    margin-left: 0.65rem;
}

.received-box {
    padding: 1.5rem 2rem;
    text-align: center;
}

    .received-box .amount-box {
        margin-top: 1rem;
    }

        .received-box .amount-box span {
            font-weight: 700;
            font-size: 1.6rem;
        }

        .received-box .amount-box b {
            font-size: 3rem;
        }

.periodbtn {
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border: 1px solid #dcdfe6;
    border-radius: 4px 0 0 4px;
}

.lastbtn {
    border-radius: 0 4px 4px 0;
}

.dateround {
    font-size: 0.8rem;
    color: #b3b3b3;
    margin-top: 3px;
}

    .dateround .text {
        margin-left: 2px;
    }


.subord-box .title {
    height: 3.5rem;
    line-height: 3.5rem;
    text-align: center;
    font-size: 1.3rem;
    border: 1px solid #ccc;
    background: #fff;
}

.subord-box .subord-content {
    padding: .8rem;
}

    .subord-box .subord-content .table-box {
        height: auto;
    }

    .subord-box .subord-content .copy {
        cursor: pointer;
    }

.pagination-box {
    margin-top: .7rem;
}

select {
    height: 2.2rem;
    border: 1px solid #b9b9b9;
    border-radius: 5px;
    color: #986643;
    outline: none;
    padding: 5px;
    width: 6rem;
    font-size: 1rem;
}

.suborddetail-box {
    margin-top: 1.5rem;
    display: flex;
}

    .suborddetail-box .custominput {
        padding: 0 0.48rem;
        border: 1px solid #b9b9b9;
        border-radius: 5px;
        height: 2.2rem;
        text-align: center;
    }

    .suborddetail-box .search {
        margin-left: 10px;
        display: flex;
    }

    .suborddetail-box .last-date {
        background-color: #fff;
        height: 2.15rem;
    }

    .suborddetail-box .search input {
        padding: 0 0.48rem;
        border: 1px solid #b9b9b9;
        border-radius: 5px;
        width: 7rem;
        height: 2.2rem;
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
        border-right-width: 0;
    }

        .suborddetail-box .search input::placeholder {
            color: #ccc;
        }

    .suborddetail-box .search .search-btn {
        height: 2.2rem;
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
    }

.last-date {
    padding: 0 .6rem;
    border: 1px solid #DCDFE6;
    border-radius: 4px;
    display: flex;
    align-items: center;
    column-gap: 4px;
    color: #969799;
}

.performance-top {
    display: flex;
    align-items: center;
    column-gap: 1rem;
    justify-content: center;
}

.performance-bottom {
    margin-top: 1rem;
    display: flex;
    justify-content: space-around;
}

.proportion-box {
    margin-top: .7143rem;
    padding: 0 0.6rem;
}

    .proportion-box .popup-box {
        height: 23rem;
        column-gap: 0.6rem;
    }

        .proportion-box .popup-box .popup-left {
            height: inherit;
        }

            .proportion-box .popup-box .popup-left ul {
                height: inherit;
                overflow: hidden;
                overflow-y: auto;
            }

        .proportion-box .popup-box .popup-right {
            height: inherit;
        }


/*@media (min-width: 430px) {
    html, body {
        font-size: 16px;
    }
}*/

@media (min-width: 500px) {

    html,
    body {
        font-size: calc(500px / (270 / 10));
    }

    #qrcode {
        width: 6.6rem;
        height: 6.6rem;
    }

    .van-popup--right {
        right: calc(50% - 500px / 2);
    }
}

@media (max-width: 320px) {
    #qrcode {
        padding: 0;
    }
}

.datebox .van-icon {
    color: #cbcbcb;
}

.van-tabs__nav--card {
    margin: 0;
}

.van-tabs--card > .van-tabs__wrap {
    text-align: center;
}

.van-field__control {
    color: #666;
}

.extracontent-box .van-hairline--surround:after {
    border-width: 0;
}

.extracontent-box .van-pagination__item--border:first-child:after {
    border-right-width: 0;
}

.van-empty {
    padding: 0;
}

.van-radio-group {
    margin-top: -3px;
}

.van-radio--horizontal {
    margin: 0;
}

.van-radio__icon {
    height: auto;
}

:root {
    --van-cell-line-height: 1.7143rem;
    --van-field-icon-size: 1.2857rem;
    --van-tabs-card-height: 2.7143rem;
    --van-calendar-popup-height: 70%;
    --van-font-size-sm: .8571rem;
    --van-font-size-md: 1rem;
    --van-font-size-lg: 1.1429rem;
    --van-padding-base: .35rem;
    --van-pagination-item-default-color: #FA2458;
    --van-pagination-item-disabled-background: none;
    --van-pagination-background: none;
}

::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-track-piece {
    /*background-color: rgba(0, 0, 0, 0.2);*/
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:vertical {
    height: 5px;
    background-color: rgba(125, 125, 125, 0.7);
    border-radius: 6px;
}

    ::-webkit-scrollbar-thumb:vertical:hover {
        background-color: rgba(125, 125, 125, 0.9);
        cursor: pointer;
    }

::-webkit-scrollbar-thumb:horizontal {
    width: 5px;
    background-color: rgba(125, 125, 125, 0.7);
    border-radius: 6px;
}

.van-dialog__confirm, .van-dialog__cancel {
    border: 1px solid #d7d7d7;
}
