* {
    padding: 0%;
    margin: 0;
}

.bg {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 970px;
    background: #95E0F6 url("../images/bottle/web_bg.png") no-repeat center;
    background-size: cover;
}

.filter-show {
    filter: blur(7px);
}

.clearfix:after {
    content: "";
    display: block;
    clear: both;
}

input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder {
    color: #999999
}

input:-moz-placeholder,
textarea:-moz-placeholder {
    color: #999999
}

input::-moz-placeholder,
textarea::-moz-placeholder {
    color: #999999
}

input:-ms-input-placeholder,
textarea:-ms-input-placeholder {
    color: #999999
}

input,
textarea {
    font-family: "Helvetica Neue", Arial, "Hiragino Sans GB", "WenQuanYi Micro Hei", "Microsoft YaHei", "sans-serif";
    outline: none;
}

.bottle-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    overflow-y: auto;
    z-index:12;
    backdrop-filter:blur(7px);
}

.bottle-con {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* .sea-box{
    position: relative;
    top: 50%;
    left: 50%;
    width: 995px;
    height: 440px;
    transform: translate(-498px, -220px);
    background: url("../images/bottle/sea_web1.png") center no-repeat;
    background-size: contain;
    z-index: 1;  
} */
.sea-box {
    position: relative;
    top: 50%;
    left: 50%;
    width: 757px;
    height: 335px;
    transform: translate(-378px, -140px);
    background: url("../images/bottle/sea_web1.png") center no-repeat;
    background-size: contain;
    z-index: 1;
}

.grass-box {
    position: absolute;
    bottom: 23px;
    left: 0;
    width: 100%;
    height: 208px;
    background: url(../images/bottle/sea_web2.png) 42px 0 no-repeat;
    background-size: contain;
    z-index: 1;
    pointer-events: none;
}

.bottle-box:hover {
    cursor: pointer;
}

/**************** 收到的瓶子start ****************/
.receive-bottle-box {
    position: absolute;
    bottom: 142px;
    left: 296px;
}

    .receive-bottle-box img {
        display: block;
        width: 168px;
        animation: receive 4s infinite ease-in-out;
    }

.receive-box.show .receive-bottle-box img {
    animation: shake 0.5s infinite ease-in-out;
}

.receive-tip {
    position: absolute;
    top: -72px;
    left: 158px;
    width: 128px;
    height: 128px;
    background: url(../images/bottle/bubble.png) no-repeat;
    background-size: contain;
}

    .receive-tip p {
        font-weight: bold;
        color: #071824;
        font-size: 16px;
        width: 4em;
        line-height: 28px;
        margin: 34px 0 0 41px
    }

.bottle-page-close {
    position: absolute;
    right: calc(50% - 314px);
    top: calc(50% - 180px);
    text-align: center;
}

.close-con i {
    display: block;
    font-size: 32px;
    color: #999;
}

    .close-con i:hover {
        cursor: pointer;
        color: #73c6ff
    }

/* 漂流瓶回复 */
.reply-box {
    position: absolute;
    top: calc(50% - 375px);
    left: calc(50% - 310px);
    width: 610px;
    height: 750px;
    background: url(../images/bottle/paper.png) no-repeat center;
    background-size: contain;
    z-index: 2;
    transform: scale(0);
    opacity: 0;
}

    .reply-box.show {
        transition: 0.8s ease-in-out;
        transform: scale(1);
        opacity: 1;
    }

    .reply-box.hide {
        /* animation: replyhide 0.7s linear forwards; */
        transition: 0.8s ease;
        opacity: 1;
        transform: scale(0);
        transition: -webkit-transform 1s ease;
        transition: -moz-transform 1s ease;
        transition: -ms-transform 1s ease;
        transition: transform 1s ease;
        -webkit-transform-origin: calc(100% - 154px) calc(100% - 122px);
        -moz-transform-origin: calc(100% - 154px) calc(100% - 122px);
        -ms-transform-origin: calc(100% - 154px) calc(100% - 122px);
        -o-transform-origin: calc(100% - 154px) calc(100% - 122px);
        transform-origin: calc(100% - 154px) calc(100% - 122px);
    }

.reply-main {
    position: relative;
    margin: 80px 84px 0 109px;
}

.reply-user-box {
    border-bottom: 2px solid #fff;
    display: flex;
    align-items: center;
    padding-bottom: 26px;
}

    .reply-user-box img {
        width: 53px;
        height: 53px;
        box-sizing: border-box;
        border-radius: 50%;
        border: 1px solid rgba(255, 255, 255, 0.5);
        margin-right: 18px;
    }

    .reply-user-box .name {
        font-size: 24px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

.reply-detail,
.reply-input textarea {
    font-size: 16px;
    line-height: 28px;
}

.reply-detail {
    padding: 24px 12px 16px;
    height: 170px;
    border-bottom: 2px solid #fff;
    overflow-y: auto;
    text-align: justify;
    word-break:break-all;
}

.reply-input textarea {
    display: block;
    width: 100%;
    box-shadow: 4px 6px 6px 0px rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    border: none;
    background: #fff;
    height: 190px;
    resize: none;
    padding: 12px;
    box-sizing: border-box;
}

.reply-input {
    padding-top: 24px;
}

.reply-btn {
    width: 126px;
    padding: 4px 0 6px;
    font-size: 16px;
    color: #fff;
    border-radius: 20px;
    border: none;
    box-shadow: 0 4px 4px 0 #EBB5A5;
    background: linear-gradient(180deg, #F9B1B1, #FD6363);
    float: right;
    margin-top: 24px;
}

    .reply-btn:hover {
        cursor: pointer;
        background: #f6a090;
    }

.reply-box .close-con {
    position: absolute;
    right: -46px;
    top: -72px;
    text-align: center;
}

    .reply-box .close-con i:hover {
        color: #F9B1B1;
    }

.bottle-page::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.bottle-page ::-webkit-scrollbar {
    width: 6px;
    height: 12px;
    background-color: transparent;
}

.bottle-page ::-webkit-scrollbar-track {
    border-radius: 4px;
    background-color: transparent;
}

.bottle-page ::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background-color: rgba(144, 147, 153, 0.3);
}

    .bottle-page ::-webkit-scrollbar-thumb:hover {
        background-color: rgba(144, 147, 153, 0.5);
    }

/* 瓶子水面晃动动画 */
@keyframes receive {
    0% {
        transform: translate(0, 0) rotate(0);
    }

    50% {
        transform: translate(8px, 12px) rotate(3deg);
    }

    100% {
        transform: translate(0, 0) rotate(0);
    }
}

/* 点击瓶子摇动动画 */
@-webkit-keyframes shake {
    0% {
        -webkit-transform: none;
        transform: none;
    }

    15% {
        -webkit-transform: translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -20deg);
    }

    30% {
        -webkit-transform: translate3d(20%, 0, 0) rotate3d(0, 0, 1, 20deg);
    }

    45% {
        -webkit-transform: translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -10deg);
    }

    60% {
        -webkit-transform: translate3d(10%, 0, 0) rotate3d(0, 0, 1, 10deg);
    }

    75% {
        -webkit-transform: translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -5deg);
    }

    100% {
        -webkit-transform: none;
        transform: none;
    }
}

/* 信纸动画 */
@keyframes replyhide {
    0% {
        opacity: 1;
        transform-origin: 100% 100%;
    }


    100% {
        opacity: 0;
        transform: scale(0) skew(50deg, 12deg);
        transform-origin: calc(100% - 100px) calc(100% - 150px);
    }
}

/**************** 收到的瓶子end ****************/


/**************** 扔瓶子start ****************/

.drop-box {
    position: absolute;
    bottom: 184px;
    right: 416px;
    z-index: 2;
    pointer-events: none;
}

    .drop-box img {
        display: inline-block;
        width: 100%;
        opacity: 0;
    }

    .drop-box .drop1 {
        width: 24px;
        margin-bottom: 10px;
    }

    .drop-box img + img {
        width: 50px;
    }

.throw-box.show .drop-box .drop1 {
    animation: drop1 1s 2.8s ease-out forwards;
}

.throw-box.show .drop2 {
    animation: drop2 1.2s 2.1s ease-out forwards;
}

.throw-bottle-box {
    position: absolute;
    bottom: -110px;
    right: 146px;
    width: 150px;
    opacity: 0;
    z-index: 3;
    transform: scale(0);
}

    .throw-bottle-box img {
        display: block;
        width: 100%;
    }

.throw-box.show .throw-bottle-box {
    animation: throw 1.8s 0.3s ease-in-out forwards;
}

/* 圆形水波纹 */
.wave-box {
    position: absolute;
    bottom: 190px;
    right: 370px;
    height: 25px;
    width: 156px;
    z-index: 3;
    pointer-events: none;
}

.wave {
    position: absolute;
    left: 0px;
    top: 0px;
    height: 100%;
    width: 100%;
    transform-origin: center center;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    opacity: 0;
}

.throw-box.show .wave {
    animation: flow 1.2s linear forwards;
}

.throw-box.show .wave1 {
    animation-delay: 2s;
}

.throw-box.show .wave2 {
    animation-delay: 2.3s;
}

.throw-box.show .wave3 {
    animation-delay: 2.6s;
}

@keyframes throw {
    0% {
        bottom: -110px;
        right: 146px;
        opacity: 1;
        transform: scale(0) rotate(0);
    }

    25% {
        bottom: -110px;
        right: 146px;
        opacity: 1;
        transform: scale(1) rotate(0);
    }

    50% {
        opacity: 1;
    }
    /* 99% {
        bottom: 124px;
        right: 365px;
        opacity: 1;
        transform: scale(0.05) rotate(-1080deg);

    } */
    100% {
        bottom: 124px;
        right: 365px;
        opacity: 1;
        transform: scale(0) rotate(-1080deg);
    }
}

/* 水花 */
@keyframes drop1 {
    0% {
        opacity: 1;
        transform: scale(0) translateY(0);
    }

    50% {
        opacity: 1;
        transform: scale(1) translateY(-10px);
    }

    100% {
        opacity: 0;
        transform: scale(1) translateY(-10px);
    }
}

@keyframes drop2 {
    0% {
        opacity: 1;
        transform: scale(0) translateY(0);
    }

    50% {
        opacity: 1;
        transform: scale(1) translateY(-20px);
    }

    100% {
        opacity: 0;
        transform: scale(1) translateY(-20px);
    }
}

/* 水波 */

@keyframes flow {
    0% {
        opacity: 0;
        transform: scale(0.1);
    }

    50% {
        opacity: 1;
        transform: scale(0.7);
    }

    100% {
        opacity: 0;
        transform: scale(1);
    }
}

/**************** 扔瓶子end ****************/

/************** 分辨率较低pc端适配 **************/

@media only screen and (max-height: 720px) and (min-width: 768px) {

    .bottle-con {
        min-height: 605px;
    }

    .reply-box {
        position: absolute;
        top: calc(50% - 280px);
        left: calc(50% - 242px);
        width: 534px;
        height: 590px;
    }

    .reply-main {
        margin: 60px 88px 0 109px;
    }

    .reply-user-box {
        padding-bottom: 12px;
    }

    .reply-detail {
        height: 130px;
        padding: 12px 8px;
    }

    .reply-input {
        padding-top: 16px;
    }

        .reply-input textarea {
            height: 165px;
            padding: 8px;
        }

    .reply-btn {
        margin-top: 16px;
    }

    .reply-box.hide {
        transition: 0.8s ease;
        opacity: 1;
        transform: scale(0);
        transition: -webkit-transform 1s ease;
        transition: -moz-transform 1s ease;
        transition: -ms-transform 1s ease;
        transition: transform 1s ease;
        -webkit-transform-origin: calc(100% - 145px) calc(100% - 60px);
        -moz-transform-origin: calc(100% - 145px) calc(100% - 60px);
        -ms-transform-origin: calc(100% - 145px) calc(100% - 60px);
        -o-transform-origin: calc(100% - 145px) calc(100% - 60px);
        transform-origin: calc(100% - 145px) calc(100% - 60px);
    }
}


/******************** 移动端适配 ******************/
@media only screen and (max-width:767px) {
    html {
        font-size: calc(100vw / 37.5);
    }

    .bottle-page {
        width: 100vw;
        height: 100vh;
    }
    .bottle-con{
        min-height:49rem
    }
    .bottle-page-close {
        position: absolute;
        right: 2rem;
        top: 4rem;
        text-align: center;
    }

    .sea-box {
        position: absolute;
        top: auto;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 32.6rem;
        transform: none;
        background: url("../images/bottle/sea_move1.png") no-repeat;
        background-size: cover;
    }

    .grass-box {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 22.9rem;
        background: url("../images/bottle/sea_move2.png") no-repeat;
        background-size: cover;
    }

    .receive-bottle-box {
        bottom: 12.4rem;
        left: 8.6rem;
    }

        .receive-bottle-box img {
            width: 18rem;
        }

    .receive-tip {
        top: -5rem;
        left: 16.8rem;
        width: 10.7rem;
        height: 10.7rem;
    }

        .receive-tip p {
            font-size: 1.4rem;
            line-height: 2.2rem;
            margin: 3rem 0 0 3.4rem;
        }

    .reply-box {
        position: absolute;
        top: calc(50% - 24rem);
        left: 0;
        width: 100%;
        height: 46rem;
        background: url(../images/bottle/paper.png) no-repeat center;
        background-size: contain;
        z-index: 2;
        transform: scale(0);
        opacity: 0;
    }

        .reply-box.hide {
            transition: -webkit-transform 0.8s ease;
            transition: -moz-transform 0.8s ease;
            transition: -ms-transform 0.8s ease;
            transition: transform 0.8s ease;
            opacity: 1;
            transform: scale(0);
            -webkit-transform-origin: calc(100% - 12.8rem) calc(50% - 0.2rem);
            -moz-transform-origin: calc(100% - 12.8rem) calc(50% - 0.2rem);
            -ms-transform-origin: calc(100% - 12.8rem) calc(50% - 0.2rem);
            -o-transform-origin: calc(100% - 12.8rem) calc(50% - 0.2rem);
            transform-origin: calc(100% - 12.8rem) calc(50% - 0.2rem);
        }

    .reply-main {
        margin: 4rem 5.1rem 0 6.8rem;
    }

    .reply-user-box {
        padding-bottom: 1.2rem;
    }

        .reply-user-box img {
            width: 3.2rem;
            height: 3.2rem;
            margin-right: 1rem;
        }

        .reply-user-box .name {
            font-size: 1.4rem;
        }

    .reply-detail {
        padding: 1.2rem 0.8rem;
        height: 10rem;
    }

    .reply-input {
        padding-top: 1.2rem;
    }

        .reply-input textarea {
            border-radius: 0.8rem;
            height: 13.6rem;
            padding: 0.4rem 0.8rem;
        }

        .reply-detail,
        .reply-input textarea {
            font-size: 1.2rem;
            line-height: 2rem;
        }

    .reply-btn {
        padding: 0.4rem 0 0.6rem;
        width: 9rem;
        font-size: 1.2rem;
        margin-top: 1.2rem;
        box-shadow: 0 0.4rem 0.4rem 0 #ebb5a5;
    }

    .reply-box .close-con {
        right: -2.5rem;
        top: -5rem;
    }

    .close-con i {
        font-size: 2.8rem;
    }

    .throw-bottle-box {
        width: 18rem;
        bottom: calc(50vh - 6rem);
        right: 2rem;
    }

    .drop-box .drop1 {
        width: 2.4rem;
        margin-bottom: 0.8rem;
    }

    .drop-box img + img {
        width: 4rem;
    }

    .drop-box {
        bottom: 18.3rem;
        right: 18rem;
    }

    .wave-box {
        bottom: 18.8rem;
        right: 14rem;
        width: 14rem;
    }

    /* 移动端动画 */
    /* 收瓶子 */

    /* 点击瓶子摇动动画 */
    @-webkit-keyframes shake {
        0% {
            -webkit-transform: none;
            transform: none;
        }

        15% {
            -webkit-transform: translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -20deg);
        }

        30% {
            -webkit-transform: translate3d(20%, 0, 0) rotate3d(0, 0, 1, 20deg);
        }

        45% {
            -webkit-transform: translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -10deg);
        }

        60% {
            -webkit-transform: translate3d(10%, 0, 0) rotate3d(0, 0, 1, 10deg);
        }

        75% {
            -webkit-transform: translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -5deg);
        }

        100% {
            -webkit-transform: none;
            transform: none;
        }
    }

    /* 信纸动画 */
    @keyframes replyhide {
        0% {
            opacity: 1;
            transform: scale(1);
        }


        100% {
            opacity: 1;
            transform: scale(0);
            transform-origin: calc(100% - 11.8rem) calc(50% + 1rem);
        }
    }



    /* 扔瓶子 */
    @keyframes throw {
        0% {
            bottom: calc(50vh - 6rem);
            right: 2rem;
            opacity: 1;
            transform: scale(0) rotate(0);
        }

        25% {
            bottom: calc(50vh - 6rem);
            right: 2rem;
            opacity: 1;
            transform: scale(1) rotate(0);
        }

        50% {
            opacity: 1;
        }
        /* 99% {
            bottom: 10.3rem;
            right: 11rem;
            opacity: 1;
            transform: scale(0.02) rotate(-1080deg);

        } */
        100% {
            bottom: 10.2rem;
            right: 11rem;
            opacity: 1;
            transform: scale(0) rotate(-1080deg);
        }
    }

    /* 水花 */
    @keyframes drop1 {
        0% {
            opacity: 1;
            transform: scale(0) translateY(0);
        }

        50% {
            opacity: 1;
            transform: scale(1) translateY(-1rem);
        }

        100% {
            opacity: 0;
            transform: scale(1) translateY(-1rem);
        }
    }

    @keyframes drop2 {
        0% {
            opacity: 1;
            transform: scale(0) translateY(0);
        }

        50% {
            opacity: 1;
            transform: scale(1) translateY(-2rem);
        }

        100% {
            opacity: 0;
            transform: scale(1) translateY(-2rem);
        }
    }

    /* 波浪 */

    @keyframes flow {
        0% {
            opacity: 0;
            transform: scale(0.2);
        }

        50% {
            opacity: 1;
            transform: scale(0.7);
        }

        100% {
            opacity: 0;
            transform: scale(1);
        }
    }
}


@-moz-document url-prefix() {
    .format-container {
        scrollbar-width: thin;
    }
}
