* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

img {
    font-size: inherit;
}

input,
button {
    outline: none;
    border: none;
    background-color: transparent;
}

.layer {
    padding-top: 1.875em;
}

.layer .layer-header__title {
    font-size: 2.25em;
    line-height: 1.7142857143;
    font-weight: bold;
}

.layer .layer-header__sub-title {
    color: #477cff;
    font-size: 1.75em;
    font-weight: 500;
}

.layer .layer-header__desc {
    font-size: 1.125em;
    margin-top: 1em;
}

.layer .layer-main {
    padding-bottom: calc(100em / 16);
}

.checkbox-box .checkbox-box__title {
    font-size: max(14px, 1.125em);
    margin-bottom: 2em;
}

.checkbox-box .checkbox-box__content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5em;
}

.checkbox-box .checkbox-box__item {
    background-color: #f6f6f6;
    position: relative;
    cursor: pointer;
}

.checkbox-box .checkbox-box__item.active .checkbox-box__item-content {
    background-color: rgba(0, 0, 0, 0.5);
}

.checkbox-box .checkbox-box__item.active .checkbox-box__item-radio {
    opacity: 1;
}

.checkbox-box .checkbox-box__item {
    height: calc(285em / 16);
    display: flex;
    justify-content: center;
    align-items: center;
}

.checkbox-box .checkbox-box__item>img {
    max-width: calc(100% - 2.5em);
    max-height: calc(100% - calc(60em/16));
}

.checkbox-box .checkbox-box__item-content {
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 1.5em;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    transition: background 0.3s linear;
}

.checkbox-box .checkbox-box__item-content .inner-text {
    color: #fff;
    font-size: 1.75em;
    font-weight: bold;
    line-height: 1.7142857143;
}

.checkbox-box .checkbox-box__item-radio {
    --l: calc(40em/16);
    width: var(--l);
    height: var(--l);
    position: absolute;
    top: 1.25em;
    right: 1.25em;
    z-index: 2;
    background-color: #477cff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s linear;
}

.checkbox-box .checkbox-box__item-radio>img {
    max-width: calc(100% - 4px);
}

.checkbox-box+.checkbox-box {
    margin-top: 5em;
}

/* input-field */
.input-field {
    position: relative;
    width: max(200px, var(--w));
    font-size: max(14px, 1.125em);
    color: #9b9b9b;
    padding-right: var(--gap);
}

.input-field .input-field__label {
    display: block;
    padding: 1em 0;
}

.input-field.save-class {
    width: max(120px, calc(var(--w) / 1.8));
}

.input-field.save-class .input-field__label {
    color: #477cff;
}

.input-field .input-field__content {
    width: 100%;
    display: flex;
    align-items: center;
}

.input-field .input-field__wrapper {
    border: 1px solid rgba(0, 0, 0, 0.1);
    flex: 1 0 0;
    transition: all .5s;
}

.input-field .error .input-field__wrapper {
    border-color: #ff0000;
}

.input-field .input-field__wrapper>input {
    font-size: max(14px, calc(18em / 16));
    width: 100%;
    display: block;
    padding: 0.9375em 1.5em;
}

.input-field .input-field__unit {
    flex: 0 0 auto;
    margin-left: 5px;
}

/* form-box__radios */
.form-box__radios {
    width: 100%;
    font-size: max(14px, calc(18em / 16));
    flex: 0 0 auto;
}

.form-box__radios .title {
    margin-bottom: calc(10em / 16);
}

.form-box__radios .content {
    color: #333333;
    display: flex;
    gap: calc(12em / 16);
}

.form-box__radios .content .radio-item {
    width: calc(135em / 16);
    height: calc(115em/ 16);
    border-radius: calc(18em / 16);
    border: 1px solid #dfdfdf;
    padding: calc(16em / 16) calc(20em / 16);
    position: relative;
    transition: border .3s linear, color .3s linear;
    cursor: pointer;
}

.form-box__radios .content .radio-item.active {
    border-color: #477cff;
}

.form-box__radios .content .radio-item__content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.form-box__radios .content .radio-item__content p {
    transition: color .3s linear;
}

.form-box__radios .content .radio-item.active p {
    color: #477cff;
}

.form-box__radios .content .radio-item .icon {
    height: calc(34em / 16);
}

.form-box__radios .content .radio-item .icon img {
    height: 100%;
}

.form-box__radios .content .radio-item .inner-text {
    margin-top: auto;
}

.form-box__radios .content .radio-item .radio {
    --l: calc(24em / 16);
    width: var(--l);
    height: var(--l);
    border-radius: 50%;
    border: 1px solid #dfdfdf;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: calc(16em / 16);
    right: calc(20em / 16);
    z-index: 1;
    transition: all .3s linear;
}

.form-box__radios .content .radio-item.active .radio {
    border-color: #477cff;
    background-color: #477cff;
}

.form-box__radios .content .radio-item .radio img {
    max-width: calc(100% - 4px);
    opacity: 0;
    transition: opacity .3s linear;
}

.form-box__radios .content .radio-item.active .radio img {
    opacity: 1;
}

/*  */
.calculator {
    font-size: 16px;
    margin-top: 70px;
    padding-bottom: calc(70em / 16);
}

.calculator .calculator-wrapper {
    margin: auto;
    padding-top: calc(116em / 16);
    padding-left: 15%;
    padding-right: 15%;
}

.calculator-header__title {
    font-size: 3em;
    color: #477cff;
    font-weight: bold;
}

.form-layer .layer-main {
    padding-top: calc(50em / 16);
}

.form-layer .form-box {
    padding: 2.5em 1.875em 2.5em calc(56em / 16);
    background-color: rgba(246, 246, 246, 0.8);
}

.form-layer .form-box+.form-box {
    margin-top: calc(20em / 16);
}

.form-layer .form-box .form-box__header {
    font-size: max(14px, 1.5em);
    color: #666666;
    margin-bottom: 1.5em;
}

.form-layer .form-box .form-box__header .title {
    color: #000;
    font-size: max(14px, 1.5em);
    font-weight: bold;
    margin-bottom: .25em;
    position: relative;
}

.form-layer .form-box .form-box__header .title::before {
    content: '';
    width: calc(10em / 16);
    height: calc(10em / 16);
    position: absolute;
    top: 50%;
    left: calc(18em / -16);
    transform: translate(0, -50%);
    background-color: #477cff;
    border-radius: 50%;
}

.form-layer .form-box .form-box__content {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
}

.form-layer .form-box .form-box__inputs {
    --count: 3;
    --gap: calc(20em / 16);
    --w: calc(100% / var(--count));
    /* --w: calc((100% - calc(var(--gap) * calc(var(--count) - 1))) / var(--count)); */
    flex: 1 0 0;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
}

.form-layer .form-box .form-box__result {
    text-align: right;
    color: #000;
    font-size: max(14px, 1.125em);
    /* flex: 0 0 auto; */
    width: max(150px, calc(100vw / 1920 * 250));
}

.form-layer .form-box .form-box__result-value {
    font-size: calc(24em / 16);
    font-weight: bold;
    word-break: break-all;
}

.form-layer .form-box.submit-form .form-box__content {
    flex-direction: column;
    align-items: unset;
}

.form-layer .layer-main .submit-btn {
    --h: calc(50em / 16);
    width: max-content;
    /* height: var(--h); */
    max-width: 100%;
    color: #666666;
    padding: 15px 25px;
    display: block;
    border-radius: calc(1000em / 16);
    border: 1px solid rgba(0, 0, 0, 0.2);
    margin: calc(60em / 16) auto 0;
    transition: all .5s;
    font-size: max(16px, 1.4em);
}

.form-layer .layer-main .submit-btn:hover {
    background-color: #477cff;
    color: #fff;
}

.analyse-layer {
    box-shadow: 0 0 calc(10em / 16) 1px rgba(0, 0, 0, 0.1);
    padding-top: 0;
}

.analyse-layer .layer-header {
    padding: 0 calc(60em / 16);
}

.analyse-layer .layer-header .layer-header__title {
    font-weight: bold;
    font-size: calc(36em / 16);
    text-align: center;
    line-height: 1;
    padding: calc(60em / 16) 0 calc(40em / 16);
    position: relative;
    color: #000;
}

.analyse-layer .layer-header .layer-header__title::before {
    content: '';
    width: 100%;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.1);
    position: absolute;
    bottom: 0;
    left: 0;
}

.analyse-layer .layer-header .layer-header__title::after {
    content: '';
    width: calc(78em / 16);
    height: 2px;
    background-color: #477cff;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 0);
}

.analyse-layer .layer-main {
    padding: 0 calc(60em / 16) calc(80em / 16);
    display: flex;
}

.analyse-layer .total-box {
    width: 50%;
}

.analyse-layer .total-box .total-box__content {
    padding: calc(60em / 16) 0;
}

.analyse-layer .total-box .total-box__content .data {
    --l: calc(285em / 16);
    width: var(--l);
    height: var(--l);
    font-size: max(16px, calc(18em / 16));
    border-radius: 50%;
    border: calc(16em / 16) solid #477cff;
    padding: calc(16em / 16);
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.analyse-layer .total-box .total-box__content .data strong {
    font-size: calc(36em / 16);
    font-weight: bold;
    vertical-align: baseline;
}

.analyse-layer .total-box .total-box__content .data sub {
    vertical-align: baseline;
}

.analyse-layer .total-box .total-box__footer {
    display: flex;
    flex-wrap: wrap;
}

.analyse-layer .total-box .total-box__footer .analyse-item {
    width: 50%;
    font-size: max(14px, calc(18em / 16));
    flex: 0 0 auto;
    padding-left: calc(70em / 16);
    padding-right: calc(20em / 16);
}

.analyse-layer .total-box .total-box__footer .analyse-item .title {
    margin-bottom: calc(16em / 16);
    position: relative;
}

.analyse-layer .total-box .total-box__footer .analyse-item .title::after {
    --l: calc(8em / 16);
    content: '';
    width: var(--l);
    height: var(--l);
    border-radius: 50%;
    background-color: #477cff;
    position: absolute;
    top: calc(6em / 16);
    left: calc(-12em / 16);
    z-index: 1;
}

.analyse-layer .total-box .total-box__footer .analyse-item .value strong {
    font-size: calc(24em / 16);
    font-weight: bold;
    word-break: break-all;
}

.analyse-layer .total-box .total-box__footer .analyse-item .value sub {
    vertical-align: baseline;
}

.active-blur {
    filter: blur(11px);
}

/* 隐藏所有数字输入框的增减按钮 */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type="number"] {
    -moz-appearance: textfield;
}

.label-float {
    position: absolute;
    top: 0;
    left: 0;
    transform: translateY(-100%);
}

.captcha-input-item {
    display: flex;
}

.captcha-input-item img {
    display: block;
    cursor: pointer;
}

@media screen and (max-width: 1800px) {
    .calculator {
        font-size: 14px;
    }
}

@media screen and (max-width: 1600px) {
    .calculator {
        font-size: 12px;
    }
}

@media screen and (max-width: 960px) {
    .calculator {
        font-size: 10px;
        margin-top: 50px;
    }

    .calculator .calculator-wrapper {
        padding-left: 10%;
        padding-right: 10%;
    }
}

@media screen and (max-width: 760px) {
    .calculator .calculator-wrapper {
        padding-left: 10%;
        padding-right: 10%;
    }

    .input-field {
        width: 100%;
    }
}

@media screen and (max-width: 750px) {
    .calculator-header__title {
        font-size: 2.5em;
    }

    .layer .layer-header__title {
        font-size: 2em;
    }

    .layer .layer-main {
        padding-bottom: calc(50em / 16);
    }

    .calculator .calculator-wrapper {
        padding-top: calc(58em / 16);
    }

    .checkbox-box+.checkbox-box {
        margin-top: 2.5em;
    }

    .checkbox-box .checkbox-box__content {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-layer .form-box .form-box__inputs,
    .form-layer .form-box .form-box__result {
        width: 100%;
    }

    .form-layer .form-box .form-box__inputs {
        --count: 2;
    }

    .input-field {
        padding-right: calc(12em / 16);
    }

    .input-field .input-field__wrapper input {
        padding: calc(12em / 16);
    }

    .form-layer .form-box .form-box__result {
        margin-top: calc(8em / 8);
    }

    .analyse-layer .layer-header,
    .analyse-layer .layer-main {
        padding: 0 calc(24em / 16);
    }

    .analyse-layer .layer-main {
        padding: 0 calc(24em / 16) calc(40em / 16);
    }

    .analyse-layer .layer-header .layer-header__title {
        padding: calc(24em / 16) 0 calc(16em / 16);
    }

    .analyse-layer .layer-main {
        flex-wrap: wrap;
    }

    .analyse-layer .layer-main .total-box {
        width: 100%;
    }

    .analyse-layer .total-box .total-box__content {
        padding: calc(30em / 16) 0;
    }

    .analyse-layer .total-box .total-box__footer .analyse-item {
        padding-left: calc(30em / 16);
    }
}